Skip to main content
POST
/
video
/
v1
/
videos
/
{videoId}
/
captions
/
generate
Generate a caption track
curl --request POST \
  --url https://api.voyant.travel/video/v1/videos/{videoId}/captions/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "language": "en",
  "label": "<string>"
}
'
{
  "data": {
    "id": "<string>",
    "videoId": "<string>",
    "organizationId": "<string>",
    "language": "<string>",
    "generated": true,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "label": "<string>",
    "errorMessage": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Voyant Cloud API token, passed as Authorization: Bearer <token>. Each token carries a fixed set of scopes; an operation rejects tokens missing its required scope.

Path Parameters

videoId
string
required

Body

application/json
language
string
required
Example:

"en"

label
string | null
Maximum string length: 120

Response

Caption generation started

data
object
required