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": false
}'
{
  "success": true,
  "result": {
    "id": "abcde12345abcde12345a",
    "language": "en-US",
    "label": "English",
    "kind": "subtitles",
    "url": "<string>"
  },
  "links": {},
  "errors": []
}

Authorizations

Authorization
string
header
required

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

Path Parameters

VIDEO_ID
string
required

ID of the video

Example:

"abcde12345abcde12345a"

Body

application/json
label
string

Their language as a string

Required string length: 1 - 20
Example:

"English"

language
enum<string>

Their language as a code

Available options:
de-DE,
en-AU,
en-GB,
en-US,
es-ES,
fr-FR,
it-IT
Example:

"en-US"

kind
enum<string>

Their type

Available options:
subtitles
Example:

"subtitles"

url
string

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

Maximum length: 200
auto_generated
boolean

Generate using AI

Example:

false

Response

200
application/json
Track
success
boolean
required
Example:

true

result
object
required
Example:
{}
errors
object[]
required
Example:
[]