Skip to Content

Errors and Downloads

Error shape, retries, and how files are served.

{ "error": { "code": "DOCUMENT_PREPARING", "message": "This PDF is still being prepared.", "retryAfterMs": 5000 } }

Retry

ResponseWhen to retry
409 DOCUMENT_PREPARINGAfter retryAfterMs
409 AUDIOBOOK_BUILDINGOnce the file is ready
429After the Retry-After header, in seconds
503The worker or a voice provider can't be reached. After Retry-After when the response has one
503 AUDIOBOOK_BUSYAnother request for the same document's audiobooks is still running

Ownership

IDs and operation streams are checked against the caller. Identical document content does not grant access to another user's uploads, events or audiobooks.

Files

Files are always sent as attachments, with a content type chosen from the file name, so a document cannot run as a page on the instance's origin.

Storage modeDocumentsAudiobooks
ProxyFile bytesFile bytes
Presigned307 to a short-lived URL303 to a short-lived URL

Follow redirects, and keep the resource URL rather than the signed destination. See Object storage.

On this page

Edit this page