Direct-storage plan for one immutable snapshot page
POST
/v1/datasets/download/presign-exact-batch
const url = 'https://example.com/v1/datasets/download/presign-exact-batch';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"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}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” x-api-key
string | null
Request Body required
Section titled “Request Body required ” 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
files
required
Array<object>
ExactDownloadFileBodyobject
path
required
string
manifest_id
required
string
logical_size
required
integer
chunk_count
required
integer
artifact_encoding
required
string
full_plaintext_digest
required
string
ttl_seconds
integer
Responses
Section titled “ Responses ”Successful Response
Media type application/json
Example generated
exampleValidation Error
Media type application/json
HTTPValidationError
object
detail
Array<object>
ValidationErrorobject
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": {} } ]}