Skip to main content
POST
Create upload token

Authorizations

Authorization
string
header
required

An API key from the dashboard, such as sk_live_…. It acts in its workspace.

Body

application/json
prefix
string
required

The token only records assets whose names start with this, such as recordings/u_42/.

expires_in
integer<uint64> | null

Seconds until it expires, from 60 to 86400; 900 (15 minutes) when absent.

Required range: x >= 0
max_size
integer<uint64> | null

The largest file it records, in bytes; any size assets allow when absent.

Required range: x >= 0
project_id
string | null

The project its assets go in; the workspace's default project when absent.

Response

Created

expires_at
string
required

RFC 3339.

max_size
integer<uint64>
required

The largest file it uploads, in bytes.

Required range: x >= 0
prefix
string
required

Every asset name it uploads starts with this.

project_id
string
required

The project its assets go in.

token
string
required

Send it as Authorization: Bearer <token> to PUT /v1/assets/{name}.