Download Ticket

Mint a short-lived signed link so a browser can stream an object without the bearer token.
EndpointMethodAdmin Required
/api/v1/objects/download-ticketPOSTNo
/api/v1/objects/download?ticket=...GETNo

A browser cannot put an Authorization header on an <a href>, an <img src> or a <video> element. A download ticket solves that: the authenticated POST returns a signed token describing exactly what may be downloaded, and the browser then fetches the plain GET URL with the ticket in the query. The object streams straight from the API - native download progress, seekable previews, nothing buffered in JavaScript.

The GET is the one console route not behind the bearer token: the ticket is the credential. It is an HMAC-signed, self-contained token, so any node in a cluster honours a ticket another node issued, and the issuing user's ownership of the bucket is checked again when it is redeemed.

Issue a ticket

POST /api/v1/objects/download-ticket

Request Body

bucket
string required
Name of the bucket. Must be owned by you.
keys
string[] required
Object keys to download. One key for a single file; several keys, or a key with a trailing /, for a ZIP archive - the same rules as Download Objects.
versionId
string
Specific version to download (single file only).
inline
boolean
Ask for Content-Disposition: inline so the browser displays the file instead of saving it. Honoured only for types a browser renders without executing anything: images (except SVG), video, audio, and PDF. Everything else is served as an attachment regardless. Default: false.
downloadName
string
File name the browser should save as, instead of the key's last path component - used when downloading an old version.

Response

{
    "ticket": "eyJidWNrZXQiOiJteS1idWNrZXQiLC....3q2-7wAAAAB",
    "expiresAt": "2025-01-15T10:35:00Z"
}
ticket
string
Opaque signed token. Put it in the ticket query parameter of the GET below.
expiresAt
string
ISO 8601 timestamp. Tickets live for 5 minutes - long enough for the browser to start the request; a transfer that has started is not cut off when the ticket expires.

Redeem a ticket

GET /api/v1/objects/download?ticket={ticket}

No Authorization header. The response is identical to Download Objects: the file itself for a single key, a streamed ZIP for several keys or a folder, with X-Content-Type-Options: nosniff and Cache-Control: private, no-store. A key ending in .pdf is served as application/pdf whatever type it was uploaded with, so the browser's viewer opens it.

Treat the ticket URL like the file itself for its lifetime: anyone who holds it can fetch the object until expiresAt, and it is not revoked by logging out or changing the password. It appears in whatever logs see the URL. Issue tickets right before use and do not store them.

Errors

StatusReason
400POST: no keys provided
401GET: missing ticket parameter
403GET: invalid, tampered or expired ticket
404Bucket not found (or no longer owned by the issuing user), object not found
500Download tickets are not configured (no signing key), or the object could not be read