Skip to main content
POST
Generate Upload Url

Authorizations

X-API-Key
string
header
default:sk_live_your_api_key_here
required

Workspace-scoped API key. Format: sk_live_{64 hex chars}

Headers

Api-Version
enum<string>
default:v1
required

API version. The gateway routes each request to that version.

Available options:
v1

Body

application/json

Request model for generating upload URL.

filename
string
required

Original filename. Its last path segment must be 1 to 255 characters.

Minimum string length: 1
contentType
string
required

MIME type (e.g., video/mp4)

Response

Successful Response

Response model for upload URL generation.

uploadUrl
string
required

Presigned upload URL. PUT the file to it once: it cannot overwrite the file, so request a new URL to replace it.

blobPath
string
required

Storage path for the uploaded file

expiresAt
string
required

ISO 8601 expiration timestamp