Skip to main content
POST
Python

Authorizations

Authorization
string
header
required

nia_sk_...

Body

application/json
content_type
string
required
Required string length: 1 - 256
sha256
string
required
Pattern: ^[0-9a-f]{64}$
size_bytes
integer
required
Required range: x <= 524288000
subject
Handle · object | null

Whose media it is. The object is stored under the subject's handle, so forget reaches it even if no event ever references it.

Response

The upload slot, valid until expires_at.

expires_at
string<date-time>
required
media_ref
string
required
upload_url
string
required

Presigned URL. Upload the bytes with PUT.

upload_headers
Upload Headers · object

Send exactly these headers with the upload; the store refuses other bytes.