Video SubtitlesCreate Content Subtitle
Video Subtitles

Create Content Subtitle

Associates the provided subtitle for the content with the mentioned language_code

If a new subtitle is uploaded with the same language_code, existing one is replaced with the new one

curl -X POST "https://api.videograph.ai/video/services/api/v1/contents/example_string/subtitles" \
  -H "Content-Type: application/json" \
  -H "Accept: example_string" \
  -H "Authorization: Basic YOUR_CREDENTIALS" \
  -d '{
  "url": "example_string",
  "name": "John Doe",
  "language_code": "example_string",
  "support_closed_captions": true
}'
{
  "status": "Success",
  "message": "Updated video details",
  "code": 200,
  "data": {
    "url": "https://d133d5ts749j6w.cloudfront.net/ane/HSHM2586532201040000_ACTA_HD.scc",
    "name": "English US",
    "language_code": "en_US",
    "support_closed_captions": false,
    "uuid": "subtitleid"
  }
}
POST
/video/services/api/v1/contents/{CONTENT_ID}/subtitles
POST
Security Scheme
Basic Authentication
Usernamestring
Required

Username for basic authentication

Passwordpassword
Required

Password for basic authentication

Content-Typestring
Required

The media type of the request body

Options: application/json
urlstring
Required

Provide source url of Subtitle file. Supported formats include SRT & VTT.

namestring
Required

Name of subtitle ex-English US

language_codestring
Required

Mention Language code ex-en_US

support_closed_captionsboolean
Required

Does your subtitle support closed captions (CC), allowed values true/false

Request Preview
Response

Response will appear here after sending the request

Authentication

basicAuth
header
Authorizationstring
Required

Basic authentication credentials. Provide username and password encoded in Base64 format: Basic base64(username:password)

Path Parameters

Headers

Body

application/json
urlstring
Required

Provide source url of Subtitle file. Supported formats include SRT & VTT.

namestring
Required

Name of subtitle ex-English US

language_codestring
Required

Mention Language code ex-en_US

support_closed_captionsboolean
Required

Does your subtitle support closed captions (CC), allowed values true/false

Responses

Was this page helpful?
Built with Documentation.AI

Last updated Dec 29, 2025