POST /v1/uploads stages a file for a granular operation. It does not put
the file in a workspace. Ordinary uploads stay until explicit deletion; Zero retention remains separate.
For a durable corpus, use workspace uploads instead.
- Python
- TypeScript
- curl
Inputs
Ordinary uploads stay until explicit deletion. Zero-retention uploads use isolated temporary staging and are deleted automatically.
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.
Next
Delete an unused upload
UseDELETE /v1/uploads/{upload_id}, Python documents.delete_upload, TypeScript documents.deleteUpload, or ndi upload-delete UPLOAD_ID. The console Files page also offers Delete for tracked uploads. A used upload returns 409 storage_conflict, and keeps returning it after its consuming jobs are deleted. Delete the consuming jobs instead; NDI then erases the upload in the background. Workspace deletion leaves standalone uploads intact.