POST
Error

Authorizations

apikey
string
header
required

Your publishable (pb_pk_…) or secret (pb_sk_…) key.

Authorization
string
header
required

The signed-in person's access token.

Path Parameters

bucket
string
required
key
string
required

Body

application/json
method
string
default:GET

GET to download, PUT to upload.

Pattern: ^(GET|PUT)$
expires_in
integer
default:300

Seconds the URL works for.

Required range: 1 <= x <= 604800
content_type
string
default:""

Content type the upload must declare.

max_bytes
integer
default:0

Largest upload in bytes. 0 means the bucket's limit.

Required range: x >= 0

Response

Success.

url
string<uri>
required
expires_at
integer
required

When it stops being valid.

method
string
required