Skip to main content
POST
Create an upload URL

Authorizations

Authorization
string
header
required

Your API key: Authorization: Bearer aircaps_sk_...

Response

Upload URL created.

id
string
required

Use as file_id after the upload.

Example:

"file_01k6z3m4q8w7e5r2t1y0u9i8o7"

object
enum<string>
required
Available options:
file
upload_url
string
required

Presigned URL: PUT the raw file bytes here.

method
enum<string>
required
Available options:
PUT
upload_expires_at
string<date-time>
required

Upload before this (one hour).

expires_at
string<date-time>
required

The file is deleted after this (24 hours).

max_size_bytes
integer
required
Example:

5368709120