Upload a file against an upload-session token
Changed onAccepts the file for an upload session. This route is public: no Authorization header is required or read, because the single-use, short-lived session token in the path IS the credential. The token is claimed atomically after the storage-quota check, so a second request with the same token gets 404 even if it races the first. A quota rejection returns 413 without consuming the token. Tenant AI policy can reduce extraction to store-only; that response has status uploaded and ingestion_target: upload.
Send the file as multipart/form-data in the file field. The default size cap is 500 MB. On success the document is stored and extraction is enqueued when permitted; the returned status is normally queued (uploaded when the queue is temporarily unavailable or policy permits storage only). Use ingestion_target to distinguish those cases: an extract target can be retried with POST /v1/extract.
Request
- Base URLhttps://api.talonic.com
- Authnone required
Path parameters
Single-use upload token minted by POST /v1/documents/upload-session.
Request body multipart/form-data
The file to upload (500 MB default cap).
Response
File accepted; extraction is enqueued when tenant policy permits it.
Document status after upload, normally queued.
Effective target after tenant policy. upload stores only; extract permits Markdown extraction; ingest processes the file into the workspace.
Example response
{
"document_id": "f0e1d2c3-b4a5-9687-8765-432109876543",
"status": "queued",
"filename": "invoice-2026-04.pdf"
}Changes
- info
added the non-success response with the status
- info
added the required property
ingestion_targetto the response with the status
- info