Download Ticket
| Endpoint | Method | Admin Required |
|---|---|---|
/api/v1/objects/download-ticket | POST | No |
/api/v1/objects/download?ticket=... | GET | No |
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
/, for a ZIP archive - the same rules as Download Objects.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.Response
{
"ticket": "eyJidWNrZXQiOiJteS1idWNrZXQiLC....3q2-7wAAAAB",
"expiresAt": "2025-01-15T10:35:00Z"
}
ticket query parameter of the GET below.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.
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
| Status | Reason |
|---|---|
400 | POST: no keys provided |
401 | GET: missing ticket parameter |
403 | GET: invalid, tampered or expired ticket |
404 | Bucket not found (or no longer owned by the issuing user), object not found |
500 | Download tickets are not configured (no signing key), or the object could not be read |