Skip to main content
POST
/
videos
/
captions
Add captions
curl --request POST \
  --url https://rawugc.com/api/v1/videos/captions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "videoId": "vid_jh7a3b9xq2pn4r8k",
  "language": "en"
}
'
{
  "videoId": "<string>",
  "url": "<string>",
  "version": 123,
  "operation": "<string>",
  "creditsUsed": 123
}

Authorizations

Authorization
string
header
required

Use your API key from the RawUGC dashboard. Include as: Authorization: Bearer YOUR_API_KEY

Body

application/json
videoId
string
required

Video identifier (vid_xxx format)

language
string

Language code for captions (e.g. 'en', 'es'). Defaults to auto-detect.

Response

Captions added successfully

Response from a video editing operation (captions, overlay)

videoId
string

Unique identifier for the new version (vid_xxx format)

url
string<uri>

URL to download the edited video

version
integer

Version number of the edit (2 for first edit, etc.)

operation
string

Operation that was performed (e.g. 'caption', 'overlay')

creditsUsed
number

Credits deducted for this operation