Documents

Upload a file against an upload-session token

Changed on

Accepts 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.

post/v1/upload/{token}

Request

  • Base URL
    https://api.talonic.com
  • Auth
    none required

Path parameters

token, string uuid required

Single-use upload token minted by POST /v1/documents/upload-session.

Request body multipart/form-data

object required
file, string binary required

The file to upload (500 MB default cap).

Response

File accepted; extraction is enqueued when tenant policy permits it.

object required
document_id, string uuid required
status, string required

Document status after upload, normally queued.

filename, string required
ingestion_target, 'upload' | 'extract' | 'ingest' required

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_target to the response with the status