> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# POST /v0/history/bulk/updates

> **Under Development, do not use in production yet** Get download URLs and metadata for update history objects available for bulk download, between two record times. Note that the returned objects may include also updates outside of the requested record time range (since only full objects are served from storage), but guaranteed to include all updates in the requested range.

**Under Development, do not use in production yet** Get download URLs and metadata for update history objects available for bulk download, between two record times. Note that the returned objects may include also updates outside of the requested record time range (since only full objects are served from storage), but guaranteed to include all updates in the requested range.

OpenAPI

[Added 0.5.18](#history-added-0-5-18)

[Updated 0.10.3](#history-updated-0-10-3)

```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl --request POST \
  --url 'https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/history/bulk/updates' \
  --header 'Content-Type: application/json' \
  --data '{
  "start_record_time": "2026-01-01T00:00:00Z",
  "end_record_time": "2026-01-01T00:00:00Z",
  "next_page_token": "<string>",
  "page_size": 123,
  "daml_value_encoding": "compact_json"
}'
```

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
import json
import requests

url = "https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/history/bulk/updates"
headers = {'Content-Type': 'application/json'}
payload = json.loads(r'''{
  "start_record_time": "2026-01-01T00:00:00Z",
  "end_record_time": "2026-01-01T00:00:00Z",
  "next_page_token": "<string>",
  "page_size": 123,
  "daml_value_encoding": "compact_json"
}''')
response = requests.request(
    "POST", url, headers=headers, json=payload
)

print(response.text)
```

```javascript JavaScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
const response = await fetch('https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/history/bulk/updates', {
  method: 'POST',
  headers: {
  "Content-Type": "application/json"
},
  body: JSON.stringify({
  "start_record_time": "2026-01-01T00:00:00Z",
  "end_record_time": "2026-01-01T00:00:00Z",
  "next_page_token": "<string>",
  "page_size": 123,
  "daml_value_encoding": "compact_json"
}),
});

console.log(await response.text());
```

```php PHP theme={"theme":{"light":"github-light","dark":"github-dark"}}
<?php
$curl = curl_init();

curl_setopt_array($curl, [
    CURLOPT_URL => 'https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/history/bulk/updates',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_POSTFIELDS => <<<'JSON'
{
  "start_record_time": "2026-01-01T00:00:00Z",
  "end_record_time": "2026-01-01T00:00:00Z",
  "next_page_token": "<string>",
  "page_size": 123,
  "daml_value_encoding": "compact_json"
}
JSON,
    CURLOPT_HTTPHEADER => [
        "Content-Type: application/json"
    ],
]);

$response = curl_exec($curl);
echo $response;
```

```go Go theme={"theme":{"light":"github-light","dark":"github-dark"}}
package main

import (
  "bytes"
  "fmt"
  "io"
  "net/http"
)

func main() {
  req, _ := http.NewRequest("POST", "https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/history/bulk/updates", bytes.NewBufferString(`{
  "start_record_time": "2026-01-01T00:00:00Z",
  "end_record_time": "2026-01-01T00:00:00Z",
  "next_page_token": "<string>",
  "page_size": 123,
  "daml_value_encoding": "compact_json"
}`))
  req.Header.Set("Content-Type", "application/json")
  response, _ := http.DefaultClient.Do(req)
  defer response.Body.Close()
  body, _ := io.ReadAll(response.Body)
  fmt.Println(string(body))
}
```

```java Java theme={"theme":{"light":"github-light","dark":"github-dark"}}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

var request = HttpRequest.newBuilder()
    .uri(URI.create("https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/history/bulk/updates"))
    .header("Content-Type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("""
{
  "start_record_time": "2026-01-01T00:00:00Z",
  "end_record_time": "2026-01-01T00:00:00Z",
  "next_page_token": "<string>",
  "page_size": 123,
  "daml_value_encoding": "compact_json"
}
"""))
    .build();
var response = HttpClient.newHttpClient().send(
    request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

```ruby Ruby theme={"theme":{"light":"github-light","dark":"github-dark"}}
require 'net/http'
require 'uri'

uri = URI('https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/history/bulk/updates')
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request.body = <<~JSON
{
  "start_record_time": "2026-01-01T00:00:00Z",
  "end_record_time": "2026-01-01T00:00:00Z",
  "next_page_token": "<string>",
  "page_size": 123,
  "daml_value_encoding": "compact_json"
}
JSON
response = Net::HTTP.start(uri.hostname, uri.port) do |http|
  http.request(request)
end
puts response.body
```

```json 200 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "object_refs": [
    {
      "url": "<string>",
      "digest": "<string>"
    }
  ],
  "next_page_token": "<string>"
}
```

```json 400 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "error": "<string>"
}
```

```json 404 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "error": "<string>"
}
```

```json 501 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "error": "<string>"
}
```

## Body

application/json

**start\_record\_time** `string` *required*

OpenAPI type: `string (date-time)`.

The returned objects must include all updates with record time greater than start\_record\_time (but may also include updates before it).

**end\_record\_time** `string` *required*

OpenAPI type: `string (date-time)`.

The returned objects must include all updates with record time at most end\_record\_time (but may also include updates after it).

**next\_page\_token** `string`

The pagination token returned from a previous call to this endpoint with the same arguments.

**page\_size** `number` *required*

OpenAPI type: `integer (int32)`.

The maximum number of objects returned for this request.

Minimum: 1; Maximum: 1000.

**daml\_value\_encoding** `object`

OpenAPI type: `DamlValueEncoding`.

How daml values should be encoded in the response. "compact\_json" is a compact, human-readable JSON encoding. It is the same encoding as the one used in the HTTP JSON API (v1) or the JavaScript codegen. "protobuf\_json" is a verbose JSON encoding that is more difficult to parse, but contains type information, i.e., the values can be parsed losslessly without having access to the Daml source code. "ledger\_api\_json" is the JSON encoding of the JSON Ledger API (v2). It is identical to "compact\_json", with two differences: numeric values can be written in a different notation (e.g., "0.0000000000" instead of "0E-10"), and trailing fields of Daml records that are null are omitted. Daml upgrades can add optional fields at the end of a record. With "compact\_json", values created before such an upgrade can be returned with or without the new fields (as null) depending on the version of the app that serves the request. This encoding returns the same JSON regardless of the version. Optional and defaults to "compact\_json". Not all endpoints support all encodings. Requests for an encoding that an endpoint does not support are rejected.

Allowed values: `compact_json`, `protobuf_json`, `ledger_api_json`.

## Responses

### 200

ok

application/json

**object\_refs** `BulkStorageObjectRef[]` *required*

The list of references to the bulk storage objects containing the updates.

**child attributes**

**url** `string` *required*

The URL from which the bulk storage object can be downloaded.

**digest** `string` *required*

The sha256 digest of the bulk storage object, for verification of integrity and consistency across SVs.

**next\_page\_token** `string`

When requesting the next page of results, pass this as `after` to the next `ListBulkUpdateHistoryObjectsRequest` invocation. Will be absent when there are no more pages.

### 400

not found

application/json

**error** `string` *required*

### 404

not found

application/json

**error** `string` *required*

### 501

not implemented

application/json

**error** `string` *required*

## History

Updated
`0.10.3`

The POST /v0/history/bulk/updates operation changed in this snapshot.

Updated
`0.10.0`

The POST /v0/history/bulk/updates operation changed in this snapshot.

Added
`0.5.18`
