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
expires_at
string<date-time>
required
file_name
string
required
size_bytes
integer
required
upload_id
string<uuid>
required