Skip to Content
API reference

Delivery API

Playback, from the media URL (`base_url`): HLS playlists, posters and subtitle files.

Signed playback IDs take an ES256 token your backend signs; public ones take none.

Signed HLS master playlist

GET /v/{token}/{pid}/master.m3u8

401 token_expired: fetch a new token. 403 denied: stop.

Authentication: None.

Served from the media URL (base_url), not the public URL.

Parameters

NameInTypeRequiredDescription
tokenpathstringyesES256 JWT signed with the app's key: header kid; claims sub (playback ID), aud (v, or t for posters only), iat, exp, optional vid.
pidpathstringyesPlayback ID

Response 200

OK

#EXTM3U
#EXT-X-MEDIA:TYPE=AUDIO,URI="out_01jwmgegachysgyeayn62q1gdp/audio/index.m3u8",GROUP-ID="a",NAME="audio"
#EXT-X-STREAM-INF:BANDWIDTH=5400000,RESOLUTION=1920x1080,AUDIO="a"
out_01jwmgegachysgyeayn62q1gdp/1080p/index.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1200000,RESOLUTION=854x480,AUDIO="a"
out_01jwmgegachysgyeayn62q1gdp/480p/index.m3u8

Errors

Public HLS master playlist

GET /p/{pid}/master.m3u8

Only for a public playback ID.

Authentication: None.

Served from the media URL (base_url), not the public URL.

Parameters

NameInTypeRequiredDescription
pidpathstringyesPlayback ID

Response 200

OK

#EXTM3U
#EXT-X-MEDIA:TYPE=AUDIO,URI="out_01jwmgegachysgyeayn62q1gdp/audio/index.m3u8",GROUP-ID="a",NAME="audio"
#EXT-X-STREAM-INF:BANDWIDTH=5400000,RESOLUTION=1920x1080,AUDIO="a"
out_01jwmgegachysgyeayn62q1gdp/1080p/index.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1200000,RESOLUTION=854x480,AUDIO="a"
out_01jwmgegachysgyeayn62q1gdp/480p/index.m3u8

Errors

StatusCode
403denied
404not_found
429rate_limited

Signed poster

GET /v/{token}/{pid}/poster.jpg

A t token is enough.

Authentication: None.

Served from the media URL (base_url), not the public URL.

Parameters

NameInTypeRequiredDescription
tokenpathstringyesES256 JWT signed with the app's key: header kid; claims sub (playback ID), aud (v, or t for posters only), iat, exp, optional vid.
pidpathstringyesPlayback ID

Response 200

OK

Errors

Public poster

GET /p/{pid}/poster.jpg

A public playback ID's poster, a JPEG of a frame near the start.

Authentication: None.

Served from the media URL (base_url), not the public URL.

Parameters

NameInTypeRequiredDescription
pidpathstringyesPlayback ID

Response 200

OK

Errors

StatusCode
403denied
404not_found
429rate_limited

A track's sidecar VTT

GET /v/{token}/{pid}/tracks/{track_id}.vtt

A ready track's WebVTT file, for players that show subtitles from a sidecar file rather than the playlist. A chapters track's file is at the same path.

Authentication: None.

Served from the media URL (base_url), not the public URL.

Parameters

NameInTypeRequiredDescription
tokenpathstringyesES256 JWT signed with the app's key: header kid; claims sub (playback ID), aud (v, or t for posters only), iat, exp, optional vid.
pidpathstringyesPlayback ID
track_idpathstringyes

Response 200

OK

WEBVTT

00:00:00.000 --> 00:00:04.200
Today we look at three ways to sort a list.

Errors

A public track's sidecar VTT

GET /p/{pid}/tracks/{track_id}.vtt

A public playback ID's track as WebVTT.

Authentication: None.

Served from the media URL (base_url), not the public URL.

Parameters

NameInTypeRequiredDescription
pidpathstringyesPlayback ID
track_idpathstringyes

Response 200

OK

WEBVTT

00:00:00.000 --> 00:00:04.200
Today we look at three ways to sort a list.

Errors

StatusCode
403denied
404not_found
429rate_limited

On this page