POST
/
videos
/
{VIDEO_ID}
/
tracks
curl --request POST \
  --url https://api.vidbeo.com/v2/videos/{VIDEO_ID}/tracks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "label": "English",
  "language": "en-US",
  "kind": "subtitles",
  "url": "<string>",
  "auto_generated": true
}'
{
  "success": true,
  "result": {
    "id": "abcde12345abcde12345a",
    "language": "en-US",
    "label": "English",
    "kind": "subtitles",
    "url": "<string>"
  },
  "links": {},
  "errors": []
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

VIDEO_ID
string
required

ID of the video

Body

application/json
label
string

Their language as a string

language
enum<string>

Their language as a code

Available options:
de-DE,
en-AU,
en-GB,
en-US,
es-ES,
fr-FR,
it-IT
kind
enum<string>

Their type

Available options:
subtitles
url
string

The URL of a WebVTT .vtt file we can fetch the subtitles from

auto_generated
boolean

Generate using AI

Response

200 - application/json
success
boolean
required
result
object
required
links
object
required
errors
object[]
required