Skip to content

Direct-storage plan for one immutable snapshot page

POST
/v1/datasets/download/presign-exact-batch
curl --request POST \
--url https://example.com/v1/datasets/download/presign-exact-batch \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "repo_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "commit_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "snapshot_digest": "example", "files": [ { "path": "example", "manifest_id": "example", "logical_size": 1, "chunk_count": 1, "artifact_encoding": "safetensors", "full_plaintext_digest": "example" } ], "ttl_seconds": 3600 }'

Authenticate exact commit-entry tuples, then mint shared-Xorb GETs.

x-api-key
string | null
Media type application/json
DownloadExactBatchBody
object
name
required
string
repo_id
required
string format: uuid
commit_id
required
string format: uuid
snapshot_digest
required
string
/^[0-9a-f]{64}$/
files
required
Array<object>
>= 1 items <= 4096 items
ExactDownloadFileBody
object
path
required
string
>= 1 characters <= 4096 characters
manifest_id
required
string
/^[0-9a-f]{64}$/
logical_size
required
integer
>= 1
chunk_count
required
integer
>= 1 <= 4294967295
artifact_encoding
required
string
Allowed values: safetensors compressed_tensors gguf parquet video mcap npy npz generic
full_plaintext_digest
required
string
/^[0-9a-f]{64}$/
ttl_seconds
integer
default: 3600 >= 60 <= 3600

Successful Response

Media type application/json
Example generated
example

Validation Error

Media type application/json
HTTPValidationError
object
detail
Array<object>
ValidationError
object
loc
required
Location
Array<string | integer>
msg
required
Message
string
type
required
Error Type
string
input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}