Skip to main content
Workspace files.upload is a single multipart POST. The Python and TypeScript SDKs switch to a resumable upload session automatically at 32 MiB. Call the session routes yourself when you need to resume after a drop or stream from a source that is not in memory. The workspace .txt ceiling is 1 GiB. A file at that boundary is uploaded as four 256 MiB parts; it cannot use the 512 MiB single-request route. Other document formats keep their existing format-specific ceilings.

Session lifecycle

  1. POST .../upload-sessions — returns session_id, session_token, chunk_size, total_parts
  2. PUT .../parts/{part_number} — send each chunk with X-Upload-Token
  3. GET .../upload-sessions/{session_id} — list landed parts after a drop
  4. POST .../complete — concatenates parts and writes the ledger row (a Job)
  5. DELETE .../upload-sessions/{session_id} — abort and reclaim staged parts
The session token is not your API key. Send it as X-Upload-Token on every session request: parts, complete, GET (resume) and DELETE (abort). Default session TTL is a server default; ttl_seconds is optional on create. POST .../upload-sessions accepts Idempotency-Key. Retrying with the same key, workspace and body returns the original session_id and session_token; the session keeps its original expiry. Reusing the key with a different workspace, path, total_size_bytes, labels, graph_inclusion, on_conflict or source_modified_at returns 422 invalid_request; use a fresh key.

When to use which

For .txt, the 1 GiB contract covers workspace storage, ingestion, search/read, and Parse. Split, Extract, and Ground currently reject .txt sources above 256 MiB because those operations still materialize text in memory. Uploading still does not ingest. Call ingest after the complete job succeeds.