Chapters

Upload a chapter

Changed on

Upload a VTT file to add chapters to your video. Chapters help break the video into sections. Read our tutorial for more details.

post/videos/{videoId}/chapters/{language}

Request

  • Base URL
    https://ws.api.video
  • URL
    https://ws.api.video/videos/{videoId}/chapters/{language}
  • Auth
    HTTP basic

Path parameters

videoIdstring required

The unique identifier for the video you want to upload a chapter for.

languagestring required

A valid BCP 47 language representation.

Request body multipart/form-data

filestring binary required

The VTT file describing the chapters you want to upload.

Response

Success

uristring
srcstring

The link to your VTT file, which contains your chapters information for the video.

languagestring

Example response

{
  "src": "https://cdn.api.video/vod/vi3N6cDinStg3oBbN79GklWS/chapters/fr.vtt",
  "language": "language",
  "uri": "uri"
}

Changes