Skip to content

DocsAPI referenceClient

Create an upload with a client token

The body and answer of POST /v1/uploads, within the token's upload grant, counted over its chain. An Idempotency-Key makes a retry answer the same upload (200) for 24 hours, after a refresh too.

POST /v1/client/uploads

Needs an API key: Authorization: Bearer $VIDEXO_API_KEY.

Parameters

Parameters
NameInTypeDescription
idempotency-key headerstring, up to 255 characters

Body CreateUploadRequest

Body fields
NameTypeDescription
filename requiredstring, up to 105 characters
size_bytes requiredintegerExact byte length. At most 100 MB and the plan input limit.
content_type string, up to 128 charactersDefault application/octet-stream.

Request

bash
curl -X POST "$VIDEXO_API_URL/v1/client/uploads" \
  -H "Authorization: Bearer $CLIENT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "filename": "input.mp4",
  "size_bytes": 52428800,
  "content_type": "video/mp4"
}'

Response

201 JSON
{
  "id": "up_0123456789abcdef01234567",
  "input_url": "videxo://uploads/up_0123456789abcdef01234567",
  "upload_url": "https://api.videxo.io/v1/uploads/up_0123456789abcdef01234567?account=acc_7Gq2x9LmTnV4&expires=1793800800&signature=example",
  "upload_url_expires_at": "2026-11-04T13:00:00.000Z",
  "expires_at": "2026-11-05T12:00:00.000Z",
  "max_size_bytes": 100000000
}

Responses

Responses
StatusBodyWhen
200UploadThe upload this Idempotency-Key created earlier.
201UploadPUT the exact file bytes to upload_url, then hand input_url to your server for the job.
400Probleminvalid_request: a field outside the grant (content_type, size_bytes)
401Problemauthentication_failed (missing_client_token, invalid_client_token, client_token_expired, client_token_superseded, client_token_revoked)
403Problempermission_denied (client_token_required, token_scope, origin_not_allowed, account_disabled)
409Problemconflict (idempotency_key_reused)
413Problemlimit_exceeded (token_uploads, upload_size, request_body_size)
429Problemrate_limited, with Retry-After in seconds