Playback API
The Playback API manages the channels of a workspace: live or scheduled streams that run on one or more streamer nodes, plus the presets they are built from. It also manages channel groups, the ordered lineups with channel numbers that playout devices and TV guides receive.
Resources¶
| Resource | What it is |
|---|---|
| Channel | A named stream, live (a real-time source) or scheduled (plays media files). Starts as draft; must be ready to join a channel group. |
| Origin | One place a channel runs: a streamer node and the source it ingests. A channel has one or more. An external relay channel has one origin on a relay node instead. |
| Streamer | A node of your organization that runs channels. An organization admin decides which streamers each workspace may use. |
| Transcoding preset | A reusable rendition ladder, audio settings and ingest tuning that you copy into a channel at creation. |
| Ingest preset | A reusable multicast source address (host and port). |
| Channel group | An ordered lineup of ready channels, each with a channel number. A published group is what devices receive. |
| Channel images | Two logos and a poster per channel. The server makes an EPG thumbnail from the poster. |
Authentication and permissions¶
Every route needs Authorization: Bearer <ACCESS_TOKEN>. See Authentication.
Permissions are checked against your role in the workspace in the path.
| Action | Permission |
|---|---|
| Read channels, origins, health, streamers, channel groups, presets and preset history | workspace:channels:view |
| Create, update, delete, star or set the status of channels; upload images; check a relay source | workspace:channels:manage |
| Create, update, publish, delete and push channel groups; set their lineup | workspace:channels:manage |
| Create, update or delete transcoding and ingest presets | workspace:settings:manage |
GET /channel-groups also accepts the token of a paired playout device in the same workspace: it then returns the
published groups in the device format. Devices get their token from pairing, see the
Provisioning API.
Base path¶
Served by CoreAPI:
{workspaceId} is the workspace you act in (the Quickstart shows where to find it). Shared
rules (hosts, status codes, pagination fields) are in API conventions.
The routes you use most, relative to the base path (all of them are in Endpoints):
| To | Route |
|---|---|
| List the streamer nodes a channel can use | GET /streamers |
| Create a live or scheduled channel | POST /channels |
| List channels, or read one | GET /channels, GET /channels/{id} |
Set a channel to draft or ready |
PATCH /channels/{id}/status |
| Check a channel's health | GET /channels/{id}/health |
| Create a channel group, then set its channels | POST /channel-groups, PUT /channel-groups/{id}/channels |
| Push a channel group to devices | POST /channel-groups/{id}/push |
| Manage transcoding and ingest presets | /transcoding-presets, /ingest-presets |
For the steps in order, follow Create a live channel.
Capabilities¶
- Live channels from a UDP source, on one or more streamers, with per-origin failure reporting
- Scheduled channels that loop a media playlist, and fallback content for live channels
- External relay channels: someone else's HLS or DASH stream served through your relay node
- Transcoding presets (rendition ladders, passthrough) and ingest presets, both with version history
- Channel images: light and dark logos, poster, generated EPG thumbnail
- Channel groups with channel numbers, publishing, a device-payload preview and push to devices in spaces
- Health probes per channel and for the whole workspace
- Changing a channel's source or transcoding after creation (planned; today you delete and recreate the channel)
- Ingest modes other than UDP and relay: SRT, RTMP, HLS or DASH pull (planned)
Object model¶
Channel¶
| Field | Type | On create | Description |
|---|---|---|---|
id |
integer | read-only | Channel ID. |
sid |
integer | required | Service ID. Must not be used by any other existing channel, in any workspace; a duplicate currently fails with 500 (a known issue; it will return 409). Listing channels shows only your workspace. A deleted channel's sid is free again. |
name |
string | required | Display name. At creation it also sets the stream ID (News 24 → news_24.stream), which never changes. |
type |
string | required, write-once | live: a real-time source. scheduled: plays media files. A relay channel is live. |
status |
string | read-only | draft at creation, then ready or back with PATCH /channels/{id}/status. |
sourceType |
string | read-only | streamer (ingested by your streamers) or external_relay. |
quality |
string | read-only | FHD (1080 and up), HD (720 and up), SD, or empty, from the tallest rendition of the preset or playlist. |
ingestConfig |
object | required, write-once | Streamer input settings. See Ingest and transcode settings. Not used for a relay. |
transcodeConfig |
object | required, write-once | Transcoder settings, or {} to pass the source through. Not used for a relay. |
transcodingPresetId |
integer | optional, write-once | The preset the settings came from. Kept for reference and the quality label. |
mediaPlaylistId |
integer | optional, write-once | Scheduled channels: a ready media playlist of the workspace to loop. |
fallbackPlaylistId |
integer | optional, request only | Live channels: a ready media playlist to play when the source fails. |
origins |
array | required | Where the channel runs. See Origin. |
description |
string | optional | Synopsis. Update it with the synopsis field. |
primaryGenre |
string | optional | Main genre. The first category devices filter on. |
genres, languages, keywords, tags, customGroups |
string arrays | optional | Guide metadata. genres are also categories on devices. |
contentProvider |
string | optional | Who provides the content. |
starred |
boolean | read-only | Favourite flag, flipped with POST /channels/{id}/star. Default false. |
brand |
object | read-only | logoLightUrl, logoDarkUrl, posterUrl, epgThumbUrl. A key is absent until that image exists. |
scheduledPlaylistKey |
string | read-only | Always scheduled: the schedule slot the Scheduling API fills. |
createdAt, updatedAt |
string | read-only | ISO 8601, UTC. |
Text fields (description, primaryGenre, contentProvider) are absent from responses when empty.
{
"id": 42,
"sid": 101,
"name": "News 24",
"type": "live",
"status": "ready",
"sourceType": "streamer",
"quality": "HD",
"starred": false,
"description": "Rolling news, 24 hours a day.",
"primaryGenre": "news",
"genres": ["world"],
"languages": ["en"],
"transcodingPresetId": 3,
"scheduledPlaylistKey": "scheduled",
"ingestConfig": {
"chunkDuration": "2s", "fragmentDuration": "1s", "netTimeout": "500ms",
"forceClean": true, "failoverCount": 1,
"timedAlternativeUrl": "pl:///scheduled", "scheduled": []
},
"transcodeConfig": {
"*": {
"dropVideoSource": true, "dropAudioSource": true,
"video": [{ "codec": "libx264", "width": 1280, "height": 720, "bitrate": 3000000,
"preset": "veryfast", "profile": "high", "gopSize": 50, "rc_mode": "vbr", "fps": 25 }],
"audio": [{ "codec": "aac", "bitrate": 128000 }]
}
},
"origins": [{
"id": 88, "channelId": 42, "streamerId": 4, "ingestMode": "udp",
"ingestUrl": "udp://239.0.0.1:5000?fifo_size=1000000&overrun_nonfatal=1",
"streamId": "news_24.stream",
"playbackUrl": "https://tv.example.com/news_24.stream/manifest.mpd",
"playbackUrlHls": "https://tv.example.com/news_24.stream/master.m3u8",
"status": "active"
}],
"brand": { "logoDarkUrl": "https://media.example.com/playtelly/channels/8c1f0a52/42/brand/logo_dark-1731740000.png" },
"createdAt": "2026-11-02T07:45:00Z",
"updatedAt": "2026-11-02T07:50:00Z"
}
Origin¶
| Field | Type | On create | Description |
|---|---|---|---|
streamerId |
integer | required for udp |
A streamer from GET /streamers with role ingest. null for a relay. |
ingestMode |
string | optional | udp (default) or external_relay. |
ingestUrl |
string | required | udp: a udp://host:port source, optionally with a query string (see the note below the table), or udp://0.0.0.0:19999 for a scheduled channel that has no live source. pl:///<playlistKey>: plays a playlist as the source. Only the scheme (udp or pl) is checked: any other scheme fails with 400. Relay: the external .m3u8 or .mpd URL. |
streamId |
string | read-only | Stream name on the streamer, from the channel name. The same on every origin. |
playbackUrl |
string | read-only | DASH manifest URL. Empty for an HLS relay. |
playbackUrlHls |
string | read-only | HLS playlist URL. |
publicPlaybackUrl |
string | read-only | In channel group detail only: the DASH URL on the streamer's public host. |
status |
string | read-only | active once the streamer accepted the stream. |
The query string on a udp:// URL, for example ?fifo_size=1000000&overrun_nonfatal=1, is optional. The API only checks the scheme and passes the URL to the streamer unchanged; the channel health probe ignores the query string. The streamer defines what each option does.
An origin is created only when its streamer accepts the stream. A UDP origin on a streamer whose role isn't
ingest fails and is reported in failures.
Ingest and transcode settings¶
The server doesn't expand a preset for you: copy the preset's values into ingestConfig and transcodeConfig.
Both are sent to the streamer as they are.
ingestConfig key |
Type | Description |
|---|---|---|
chunkDuration, fragmentDuration, netTimeout |
string | Durations such as 2s, 1s, 500ms. From the transcoding preset. |
forceClean, dropSecondAudio |
boolean | From the transcoding preset. forceClean: true keeps the stream clean of DRM even when DRM is configured. |
failoverCount |
integer | Consecutive source failures before the streamer switches to another source URL. The streamer applies it to DASH pull sources only, so it has no effect on a UDP source. |
publishers |
array | Extra outputs the streamer pushes, for example [{"url": "udp://239.0.0.2:5000"}]. |
timedAlternativeUrl, scheduled |
reserved | Added by the server on every channel: the slot the Scheduling API fills. Don't send them. |
defaultUrl, default, fallback |
reserved | Added by the server from mediaPlaylistId (pl:///default) or fallbackPlaylistId (pl:///fallback). |
Any filePath you put in ingestConfig must be a file of this workspace's media, or the request fails with 400.
transcodeConfig has one key, "*" (all inputs), built from a transcoding preset:
| Key | Built from |
|---|---|
dropVideoSource, dropAudioSource |
true: output only the renditions below, not the source tracks |
video |
The preset's filterChain entries first, then one object per videoRenditions rung (codec, width, height, bitrate, preset, profile, gopSize, rc_mode, fps) |
audio |
[{"codec": <audioCodec>, "bitrate": <audioBitrate>}] |
Send {} for a preset with passthroughMode: full: the source passes through without re-encoding.
Transcoding preset¶
| Field | Type | On create | Description |
|---|---|---|---|
id |
integer | read-only | Preset ID. |
name |
string | required | Display name. |
code |
string | optional | Unique across all presets, deleted ones included. Generated (ws-…) when omitted. |
passthroughMode |
string | optional | "" (default): re-encode. full: no re-encode. video: video passes through, audio is encoded. Both passthrough modes empty videoRenditions and filterChain. |
videoRenditions |
array | required unless passthrough | Rungs with label, width, height, codec, bitrate (bits/s), fps, gopSize, preset, profile, rc_mode. |
filterChain |
array | optional | Filters run before the ladder, for example {"filter": "bwdif", "args": "mode=0:parity=auto:deint=all"} to deinterlace. |
audioCodec, audioBitrate, audioSampleRate, audioChannels |
string, integer, integer, string | optional | Defaults aac, 128000, 48000, stereo. |
chunkDuration, fragmentDuration, netTimeout |
string | required | Ingest tuning copied into a channel's ingestConfig. |
forceClean, dropSecondAudio |
boolean | optional | Default false. |
isDefault |
boolean | optional | Marks the default choice. Default false. |
isSystem |
boolean | read-only | true for a shared preset: visible in every workspace, read-only. |
version |
integer | read-only | 1 at creation, plus 1 on every update. Earlier versions are in /history. |
inUseCount |
integer | read-only | In the list: channels of this workspace that use the preset. |
inUse |
array | read-only | In the detail: those channels' id and name. |
PUT replaces the whole preset: a field you leave out is saved as empty, 0 or false. Changing a preset never
changes existing channels.
Ingest preset¶
| Field | Type | On create | Description |
|---|---|---|---|
id |
integer | read-only | Preset ID. |
name |
string | required | Display name. |
udpHost |
string | required | Source address, for example 239.0.0.1. |
udpPort |
integer | optional | Default 5000. |
transport |
string | optional | Default udp. |
code |
string | optional | Unique across all presets. Generated when omitted. |
status |
string | optional | Free-text label. Default Broadcast Ready. |
isDefault |
boolean | optional | The default preset can't be deleted. Default false. |
isSystem, version |
boolean, integer | read-only | As for transcoding presets. |
lastProbeResult, lastProbedAt |
object, string | read-only | What the source looked like at the last probe. Absent if never probed. |
To use an ingest preset, set each origin's ingestUrl to udp://<udpHost>:<udpPort>.
Channel group¶
| Field | Type | On create | Description |
|---|---|---|---|
id |
integer | read-only | Group ID. |
name |
string | required | Display name. |
description |
string | optional | Free text. "" on update clears it. |
status |
string | read-only on create | draft at creation; published through PUT /channel-groups/{id}. |
version |
integer | read-only | 1 at creation. Goes up on publishing and on every lineup change while published. |
channels |
array | read-only | Memberships: channelId, lcn (the channel number) and, in the detail, the full channel. Set with PUT /channel-groups/{id}/channels. |
facets |
object | read-only | Counts of categories, languages and channelTypes, for guide tabs. |
{
"id": 7,
"name": "Hotel lineup",
"description": "Channels for guest rooms",
"status": "published",
"version": 3,
"channels": [{ "id": 310, "channelGroupId": 7, "channelId": 42, "lcn": 1 }],
"facets": {
"total": 1,
"categories": [{ "key": "news", "label": "News", "count": 1 }],
"languages": [{ "key": "en", "label": "En", "count": 1 }],
"channelTypes": [{ "key": "live", "label": "Live", "count": 1 }]
},
"createdAt": "2026-11-02T08:00:00Z",
"updatedAt": "2026-11-10T09:30:00Z"
}
Devices receive each channel of a published group as a playout channel: id, chno (the channel number),
name, image URLs, url (DASH), urlHls (HLS relays only), channelType, the guide metadata and categories
(primaryGenre then genres, lower case). GET /channel-groups/{id}/payload shows the exact object; the
Endpoints section lists every field.
Channel images¶
| Slot | Upload | Stored as |
|---|---|---|
logo_light, logo_dark |
PNG, JPEG or WebP, at least 256x256, square within 3%, at most 4 MB | 512x512 PNG |
poster |
PNG, JPEG or WebP, at least 640x360, 16:9 within 3%, at most 4 MB | 1920x1080 JPEG, plus a 400x225 EPG thumbnail |
Each upload gets a new URL, so a replaced image is never served from a cache.
Lists¶
Two lists are paginated with page (from 1, default 1) and limit (default 10, maximum 100; larger values
become 100): channels (GET /channels, filters type and starred=true) and channel groups
(GET /channel-groups, filter status). Both return the newest first, by creation time. Every other list is not
paginated and returns all items: transcoding presets and ingest presets (ordered by ID), streamers (ordered by
name) and a channel's group memberships.
curl "https://<API_HOST>/api/v1/playback/{workspaceId}/channels?type=live&limit=1" \
-H "Authorization: Bearer <ACCESS_TOKEN>"
{
"success": true,
"data": [
{
"id": 42,
"sid": 101,
"name": "News 24",
"type": "live",
"status": "ready",
"sourceType": "streamer",
"quality": "HD",
"starred": false,
"primaryGenre": "news",
"languages": ["en"],
"scheduledPlaylistKey": "scheduled",
"origins": [{
"id": 88, "channelId": 42, "streamerId": 4, "ingestMode": "udp",
"ingestUrl": "udp://239.0.0.1:5000", "streamId": "news_24.stream",
"playbackUrl": "https://tv.example.com/news_24.stream/manifest.mpd",
"status": "active"
}],
"createdAt": "2026-11-02T07:45:00Z",
"updatedAt": "2026-11-02T07:50:00Z"
}
],
"meta": {
"count": 1,
"total": 3,
"page": 1,
"limit": 1,
"total_pages": 3,
"has_next": true,
"has_prev": false,
"timestamp": "2026-11-18T09:30:00Z"
}
}
The channel list also carries each channel's group memberships. The unpaginated lists use the envelope
{ "success": true, "data": [ … ] } without meta.
Lifecycle¶
Channel
| Status | Meaning | Next |
|---|---|---|
draft |
Created. The stream runs on its origins, but the channel can't join a channel group. | ready with PATCH /channels/{id}/status |
ready |
Finished. Can join channel groups. | Back to draft, the same way |
Changing the status changes nothing on the streamer. A ready channel that goes back to draft blocks publishing
and pushing every group it belongs to.
Channel group
| Status | Meaning | Next |
|---|---|---|
draft |
Being built. Devices don't receive it. Its payload can be previewed. | published with PUT /channel-groups/{id}, when it has at least one channel and all are ready |
published |
Devices receive it. version goes up at publishing and on every lineup change. |
draft the same way; then devices stop receiving it |
Pushing (POST /channel-groups/{id}/push) delivers a published group to devices in the spaces you name.
Channel health
GET /channels/{id}/health runs a live probe on every call, so it isn't a cheap status read. For a UDP source it asks the streamer to open the source and waits up to 4 seconds for it to start running; the whole call is cut off after 6 seconds. It always returns a result: it doesn't wait for the channel to become healthy.
| Field | Value | Meaning |
|---|---|---|
status |
healthy |
The streamer received the UDP source within the 4-second probe. |
status |
unhealthy |
The streamer didn't start receiving the source in that time: the source isn't arriving, or the address is wrong. For a relay channel, the relay playlist didn't answer or isn't a valid playlist. |
status |
unknown |
There is nothing to probe: the channel has no origin with a streamer, or the source is udp://0.0.0.0:… or pl:///…. |
outputRunning |
true |
The channel's own stream is running on the streamer and has renditions. Independent of status, and the only signal that applies to every channel type. |
The code sets no polling interval and no time for a new channel to turn healthy. Because each call opens a temporary probe stream on the streamer, wait for a call to return before you send the next one, and poll every 10 seconds or less often (a recommendation, not a limit the API enforces).
Errors¶
Errors have the body { "success": false, "error": "<message>" }. A 401 or 403 from the sign-in check has
{ "message": "<message>" }.
| Status | When | What to do |
|---|---|---|
400 |
A field is missing or invalid; an ID in the body (streamerId, a preset, a playlist, a channel in a lineup) isn't in this workspace; a channel in a lineup isn't ready; an image has the wrong type or shape; a relay source can't be relayed. |
Read error, fix the request. |
401 |
No valid access token. | Sign in again or refresh the token. |
403 |
Your role lacks the permission, you aren't a member of the workspace, or you tried to change a system preset. | Ask an organization admin for the role; copy a system preset instead of changing it. |
404 |
The channel, group or preset doesn't exist in this workspace. | Check the ID and the workspace. |
409 |
Publishing or pushing a group that is empty or has channels that are missing or not ready; pushing a draft group; deleting a preset that channels use, or the default ingest preset; a preset code already used; after the fix, a duplicate sid. |
Fix the group's lineup, publish it, or choose another preset or code. |
413 |
An image is larger than 4 MB. | Send a smaller file. |
500 |
Most often a duplicate sid when creating a channel. This is a known issue: after the fix it returns 409. |
Retry with a different sid. |
502 |
Every origin failed when creating a channel (nothing is kept), the relay couldn't be set up, or an image couldn't be stored. | Read failures[].response or error, fix and retry. |
503 |
Pushing a group: devices couldn't be reached. | Retry later. |
Example bodies:
400, and the same shape for 404 ("channel not found", "channel group not found") and 409
("publish the channel group before pushing it to devices").
401. The text after the dash changes with the cause (for example Invalid token format).
403 from the permission check. A 403 for a system preset uses the { "success": false, "error": "<message>" }
shape.
500 on a database failure. Other 500 replies carry their own message in error.
When some origins fail and others succeed, the channel is created (201) and failures lists the failed origins
with the streamer's reply in response.
Endpoints¶
Related¶
- Create a live channel
- Change a channel's details
- Relay an external HLS or DASH stream
- Publish a channel group to devices
- Scheduling API: what plays on a scheduled channel and when
- Media API: media and the playlists a scheduled channel loops
- Changelog