POST /v1/uploads stages a file for a granular operation. It does not put
the file in a workspace. Use each handle for a single job: bytes are
deleted after that job finishes.
For a durable corpus, use workspace uploads instead.
- Python
- TypeScript
- curl
Inputs
Default TTL is 24 hours; the cap is 7 days.
Result
The SDK
create_upload / createUpload return value is itself a valid
source for document operations.
Errors
file_too_large(413) — over the upload size capunsupported_file_type(422) — rejected during upload when no granular operation supports the format, when a conclusive byte signature conflicts with the filename extension, or when the selected operation does not support an otherwise stageable formatupload_expired(409) — handle expired
Content-Type, and it does not read the full file before streaming it. When inspection
is inconclusive, formats such as CSV, JSON, and legacy Office files fall back to their
filename extension.