Pular para o conteúdo principal
POST
/
videos
/
upload
Start an upload
curl --request POST \
  --url https://api.cut.pro/api/v1/videos/upload \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "file_name": "<string>",
  "file_size": 123,
  "content_type": "<string>"
}
'
{
  "video_id": "<string>",
  "upload_url": "<string>",
  "expires_in": 123
}

Autorizações

X-Api-Key
string
header
obrigatório

Corpo

file_name
string
obrigatório

Original file name. Used to detect the extension and as a fallback title.

file_size
number
obrigatório

Size of the file in bytes. Must be <= 2 GB.

content_type
string

MIME type — defaults to video/mp4. Must match the bytes you PUT.

Resposta

Response for status 200

video_id
string
obrigatório

Generated video ID. Pass it to POST /videos/upload/complete after the PUT.

upload_url
string
obrigatório

Presigned PUT URL — upload the raw bytes here.

expires_in
number
obrigatório

Seconds until upload_url expires.

Última modificação em 6 de junho de 2026