POST

Authorizations

x-api-key
string
header
required

Body

multipart/form-data
file
file
required
expires_in_seconds
number

Seconds from upload until the file expires and its bytes become permanently unavailable. Must be between 3600 (one hour) and 7776000 (ninety days).

Response

Success.

id
string
required

Unique object identifier.

The format and length of IDs may change over time.

created_at
string
required

RFC 3339 datetime string representing when the file was created.

filename
string
required

Original filename of the uploaded file.

mime_type
string
required

MIME type of the file.

size_bytes
number
required

Size of the file in bytes.

type
string
required

Object type.

For files, this is always "file".

Allowed value: "file"
downloadable
boolean

Whether the file can be downloaded.

expires_at
string | null

RFC 3339 datetime string representing when the file will expire and become unavailable for download. Null if the file does not expire. For files uploaded with expires_in_seconds, this is the upload time plus that value.