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.

ttl_seconds
integer | null

How long this upload is retained (seconds). Capped at MAX_UPLOAD_TTL_SECONDS. Defaults to DEFAULT_UPLOAD_TTL_SECONDS. Bytes are deleted at job completion, so the TTL is only the ceiling for an upload that was never consumed.

Required range: 1 <= x <= 604800

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. Bytes are deleted at job completion, not at expires_at; the TTL is the ceiling for an upload that was never consumed.

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>
required

When an unused upload is deleted. Consumed uploads are removed when their job finishes.

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.