POST

承認

x-api-key
string
header
必須

ボディ

multipart/form-data
file
file
必須
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).

レスポンス

Success.

id
string
必須

Unique object identifier.

The format and length of IDs may change over time.

created_at
string
必須

RFC 3339 datetime string representing when the file was created.

filename
string
必須

Original filename of the uploaded file.

mime_type
string
必須

MIME type of the file.

size_bytes
number
必須

Size of the file in bytes.

type
string
必須

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.