Skip to main content
POST
create_upload

Authorizations

X-API-Key
string
header
required

Body

multipart/form-data
file
file
required

The document to stage for a granular operation.

Response

Successful Response

Returned by POST /v1/uploads on success.

upload_id is the handle passed to :class:~ndi_service.app.platform_api.contracts.UploadSource. Ordinary bytes stay until explicit deletion; Zero retention remains separate.

content_hash
string
required

SHA-256 hex digest of the staged bytes. Confirms the upload is the file you sent, not a workspace file id.

expires_at
string<date-time> | null
required

Zero retention cleanup deadline; null for ordinary uploads kept until explicit deletion.

file_name
string
required

Original filename as received.

size_bytes
integer
required

Byte length of the staged file, after upload completes.

upload_id
string<uuid>
required

Handle to pass as source.upload_id on a later document operation.