Logo
api.video's Public API Documentation

Upload a caption

POST {{baseUrl}}/videos/:videoId/captions/:language

Upload a VTT file to add captions to your video. More information can be found here

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status OK

{ "uri": "<string>", "src": "<string>", "srclang": "<string>", "default": false }



Curl
curl -X POST 'https://ws.api.video/videos/:videoId/captions/:language' -H 'Content-Type: multipart/form-data' -H 'Accept: application/json' -F '{"name"=>"file", "value"=>"<string>", "datatype"=>"string"}='

ENDPOINTS