Skip to main content
An upload grant lets an untrusted client POST bytes into one workspace. Your backend mints the grant; the browser redeems it with X-Upload-Token instead of X-API-Key. The grant is short-lived and single-use where Redis is on.

Constraints

Redeem against upload_url only. Do not send your API key to the browser. After the redeem job succeeds, ingest as usual. If a redeem returns 503 storage_unavailable, the grant is spent even though the error is retryable, because some bytes may have been written. Your backend mints a new grant for the retry.

Transient grants (Zero retention)

REST only; the SDKs do not expose transient yet. A grant minted with transient: true returns an upload_url ending in /transient-uploads. POST the multipart file part only, with no metadata; the file name must match the last segment of path and the size must equal total_size_bytes. The bytes go to isolated temporary staging and are deleted automatically. The response carries an upload_id to use as an {"type":"upload"} document source. The grant works once, only for its workspace, and is refused (401) on /files and /upload-sessions.