Skip to main content
POST
/
libraries
/
{libraryId}
/
videos
/
{videoId}
/
subtitles
Create Subtitle
curl --request POST \
  --url https://api.tenbyte.io/v1/stream/libraries/{libraryId}/videos/{videoId}/subtitles \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form title=enlish.srt \
  --form language=dn \
  --form file='@example-file'
{
  "id": "5c24d2b3-8c17-4d58-b96e-18b7cb9e2a41",
  "video_id": "c36f981d-9b53-4f45-9b4f-3d03a94e2a63",
  "title": "English Subtitle",
  "language": "en",
  "path": "en.vtt",
  "created_at": "2025-11-10T12:40:00Z",
  "updated_at": "2025-11-10T12:45:00Z",
  "deleted_at": null
}

Authorizations

Authorization
string
header
required

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

Path Parameters

libraryId
string
required

Unique identifier of the library.

videoId
string
required

Unique identifier of the targeted video resource.

Body

multipart/form-data
title
string
required

The display name of the subtitle file (e.g., English).

Example:

"enlish.srt"

language
string
required

Language code of the subtitle (e.g., en, es, fr).

Example:

"dn"

file
file
required

The actual subtitle file to upload, usually in .srt or .vtt format.

Response

id
string
required
video_id
string
required
title
string
required
language
string
required
path
string
required
created_at
string
required
updated_at
string
required
deleted_at
string
required