Skip to main content
POST
get an upload URL

Authorizations

Authorization
string
header
required

An API key (es_live_…) from Settings, under API keys, or an OAuth access token.

Headers

x-workspace-id
string

The workspace this one call acts in, when it is not the key's own.

Body

application/json
file_name
string
required
content_type
string
required
file_size
number
required

Bytes.

workspace_id
string

Response

OK

upload_url
string
required

PUT the bytes here with the same content type.

r2_key
string
required

Passed back to confirm.

expires_in
number
required

Seconds.