Skip to main content
POST
Upload a caption file

Authorizations

X-Auth-Token
string
header
required

API key created in the dashboard or via POST /v1/api/api-keys. Keys are prefixed pn_ and do not expire until revoked.

Path Parameters

videoId
string
required

Video ID (GUID)

Example:

"657bb740-a71b-4529-a012-528021c31a92"

Body

multipart/form-data
file
file
required

Caption file (.vtt, .srt, .ssa or .ass)

srclang
string
required

Language code, for example en

Example:

"en"

label
string
required

Display label shown in the player

Example:

"English"

Response

Caption saved

message
string
Example:

"success"