Skip to main content
Async upload accepts one or more files and returns immediately with file IDs. Processing continues in the background.

Prerequisites

  • API key (API keys)
  • Channel ID as queueId (Channels)
  • Document type mapped to an agent on that channel

Upload

POST /api/v1/queues/{queueId}/files with multipart field files (repeat for multiple files). Optional form fields: documentTypeKey, documentCount. Response 202 includes queueId, optional batchId, and fileIds. Try it in the API reference: Upload files.

Get results

  • Poll list/get file or document endpoints until publicStatusKey is a terminal snake key such as ready or failed. Polling does not emit webhooks. File responses include pageCount after normalize (pages in the original PDF). A file downloadUrl is the original upload. A document downloadUrl is null on list and get until that document’s PDF is stored. The document link is never the file link. When the file is one document covering every page, the PDF bytes may equal the upload.
  • Or subscribe to webhooks for document.ready / document.failed (and other dotted event keys you enable)
  • Download original bytes with GET /api/v1/files/{fileId}/content (API key). A document PDF is GET /api/v1/documents/{documentId}/content, and only after that document is ready and its PDF is stored. That call reads the stored document PDF, not the file object. On document.ready, use the top-level url for that PDF. Document events do not include original_file. See Webhooks.

Limits

Maximum request size is 200 MB for async upload. Prefer async for multi-file or multi-document packs.