Catalogue API
The Catalogue API manages what plays on screens: playlists with draft and published versions, feeds (media channels) that put playlists on a schedule and reach spaces, layout and canvas templates, and live control (announcements, studio broadcasts, emergency messages). This page covers the content side; ticket groups, banners and rail menus are in the Catalogue ticketing API.
Resources¶
| Resource | What it is |
|---|---|
| Playlist | An ordered list of media items. It has one live version, at most one draft, and any number of historical versions. |
| Canvas template | A reusable screen layout (aspect ratio, zones) a playlist is created with. |
| Feed | A media channel: a base playlist, a schedule of time blocks, and the spaces and target groups it reaches. The Tellyboard sidebar calls it a feed; the API calls it media-channels. |
| Time block | A window in a feed's schedule that plays a playlist (or one playlist per zone). |
| Release | A saved copy of a feed's settings (base playlist, operating hours, layout), live or scheduled. |
| Layout template | The zones a feed's screen is divided into. |
| Announcement, studio broadcast, emergency broadcast | Transient content you send to a space, target group or screen right now. |
How content reaches a display¶
A display plays a playlist through a feed that is assigned to its space. The steps, in order:
- Create a playlist and add media (
POST /playlists,POST /playlists/{playlistId}/media). - Create a feed with the playlist as
basePlaylistId(POST /media-channels). It plays when no time block applies. - Optionally schedule other playlists with time blocks (
POST /media-channels/{channelId}/time-blocks). - Assign the feed to a space (
POST /media-channels/{channelId}/spaces). Every device in that space gets the content; devices that connect later get it too.
Create a time block:
curl -X POST "https://<API_HOST>/api/v1/media-channels/<FEED_ID>/time-blocks" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "X-Organization-ID: <ORG_ID>" \
-H "X-User-ID: <USER_ID>" \
-H "Content-Type: application/json" \
-d '{"name": "Lunch promo", "block_type": "scheduled", "playlist_id": "<PLAYLIST_ID>", "start_time": "11:30", "end_time": "13:30", "recurrence": "daily"}'
You get 201 Created with { "id": "<TIME_BLOCK_ID>" }. Times are Asia/Bangkok time.
Assign the feed to a space:
curl -X POST "https://<API_HOST>/api/v1/media-channels/<FEED_ID>/spaces" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "X-Organization-ID: <ORG_ID>" \
-H "X-User-ID: <USER_ID>" \
-H "Content-Type: application/json" \
-d '{"spaceId": "<SPACE_ID>"}'
You get 201 Created. Assigning the same feed twice is safe. Space IDs come from the Spatial API; to put a device in a space, see Pair a display.
Authentication and permissions¶
All routes need a bearer token. See Authentication.
The routes on this page are scoped by headers, not by a path segment, so send X-Organization-ID on every call. Routes with the workspace in the path, such as /displays/{workspaceId} in the Provisioning API, take the organization from your token instead. See API conventions. Add X-Workspace-ID to limit playlists to one workspace, and X-User-ID where the endpoint says it is required (it is recorded as the author).
| Action | Needs |
|---|---|
| Any route on this page | A valid token for the organization in X-Organization-ID |
| Create or change a feed, time block, release or draft, assign a feed to a space | X-User-ID as well |
| Publish a playlist draft | A valid access token |
Base path¶
https://<API_HOST>/api/v1/playlists/…
https://<API_HOST>/api/v1/media-channels/{channelId}/…
https://<API_HOST>/api/v1/live-control/…
This is CoreAPI. {channelId} is a feed ID. The ticketing side is under https://<API_HOST>/api/… and is described in its own page.
Capabilities¶
- Playlists: create, update, delete, replace items, reorder
- Playlist drafts, versions, publish and rollback
- Canvas templates for multi-zone playlists
- Feeds with zone assignments, space assignment and target links
- Time-block schedules, including one playlist per zone
- Feed releases (live or scheduled), drafts and saved draft versions
- Fallback settings per feed
- Live control: announcements, studio broadcasts, emergency broadcast, publishing targets, conflict report
- VOD playlists (planned)
Object model¶
Playlist¶
| Field | Type | Meaning |
|---|---|---|
id |
UUID, read-only | Playlist ID. |
name |
string | Display name. Required on create. |
description |
string | Free text. |
status |
draft or active |
Legacy: don't build on it. To tell what is live and what is being edited, use playlist versions and readyState. Default draft. |
version |
integer, read-only | Number of the live version. |
canvasTemplateId |
UUID or null | Canvas template the playlist was created with. Copies aspectRatio, multiZone and zoneCount onto the playlist. |
readyState |
test or ready, read-only |
State of the current draft. |
totalDuration |
integer, read-only | Sum of the live items' durations, in seconds. |
mediaCount |
integer, read-only | Items in the live version. |
The full field list, including usage counts, is in the Endpoints section.
{
"id": "b2a7e4c9-3f61-4c8d-9e25-71d0a6f4c3e8",
"name": "Lobby morning loop",
"status": "active",
"version": 3,
"totalDuration": 90,
"mediaCount": 3,
"canvasTemplateId": "3d6f2b8e-9a1c-4f5d-b7e3-8c2a4f6d1e97",
"aspectRatio": "16:9",
"multiZone": false,
"readyState": "test"
}
Playlist item¶
Items belong to one version of a playlist. Each has mediaId, position (play order from 0), zoneIndex (0 for single-zone), duration in seconds, plus name, mediaType, url and thumbnailUrl copied from the media.
Feed¶
| Field | Type | Meaning |
|---|---|---|
id |
UUID, read-only | Feed ID. |
name |
string | Display name. Required on create. |
orientation |
landscape or portrait |
Default landscape. |
deliveryMode |
string | How content reaches the screen. Default pre-cached. |
layoutTemplateId |
UUID or null | Layout template of the feed. |
basePlaylistId |
UUID or null | Plays when no time block applies. On create it also creates the first zone assignment. |
operationStart, operationEnd |
HH:MM |
Daily operating window. |
approvalStatus |
string | See Lifecycle and states. Default draft. |
status |
string | Operational status. Default Active. |
scheduleTimeMode |
local or anchored |
Stored preference. It does not change when time blocks play: they always use Asia/Bangkok time. |
{
"id": "e91f3c27-6b4a-4f0d-8c53-2a7e9d1b6f05",
"name": "Lobby feed",
"orientation": "landscape",
"deliveryMode": "pre-cached",
"basePlaylistId": "b2a7e4c9-3f61-4c8d-9e25-71d0a6f4c3e8",
"operationStart": "08:00",
"operationEnd": "22:00",
"approvalStatus": "approved",
"liveVersion": 3
}
Time block¶
Time blocks use Asia/Bangkok time
Time blocks (start_date, end_date, start_time, end_time) are always evaluated in Asia/Bangkok time (UTC+7). The feed's timezone and scheduleTimeMode and the display's own time zone are ignored. Convert local times to Asia/Bangkok before you create a block.
Time block fields use snake_case, unlike the rest of the API.
| Field | Type | Meaning |
|---|---|---|
name |
string | Display name. |
block_type |
enum | override, event-override, scheduled, playlist or default. Decides which block wins. |
playlist_id |
UUID or null | Playlist to play. |
zone_assignments |
array | Create only: {zone_id, playlist_id, items} per zone, for multi-zone feeds. Non-empty items make the server create a playlist for that zone. |
start_date, end_date |
YYYY-MM-DD |
Date range. Defaults: today; start_date for once, else 2099-12-31. |
start_time, end_time |
HH:MM |
Time window in Asia/Bangkok time. end_time is exclusive and must be later than start_time. |
recurrence |
enum | once (default), daily, weekdays, weekends or custom. |
recurrence_days |
array | For custom: Mon, Tue, Wed, Thu, Fri, Sat, Sun. |
priority |
integer | Higher wins among blocks of the same rank. Default 10. |
{
"name": "Lunch promo",
"block_type": "scheduled",
"playlist_id": "b2a7e4c9-3f61-4c8d-9e25-71d0a6f4c3e8",
"start_date": "2026-12-01",
"end_date": "2027-02-28",
"start_time": "11:30",
"end_time": "13:30",
"recurrence": "custom",
"recurrence_days": ["Mon", "Wed", "Fri"],
"priority": 20
}
Live control targets¶
Announcements, studio broadcasts and emergency broadcasts take targetType and targetId.
targetType |
targetId is |
|---|---|
space |
A location ID at any level (venue, building, floor or space; see the place hierarchy). Reaches every device below it. |
group |
A custom target group ID from the Spatial API. |
screen |
An endpoint ID. |
GET /api/v1/live-control/targets lists the venues and custom groups you can pick. A create call saves the item and sends it to the devices at once; sentCount and total show how many devices got it, and warning is set if the item was saved but sending failed.
Lists¶
The content routes on this page don't paginate and have no page or limit parameter. A list route returns every
item as a bare JSON array, with no success or meta wrapper, and an empty array when there is nothing.
| List | Order |
|---|---|
| Playlists | By name |
| Feeds, feed releases, playlist versions, saved draft versions | Newest first |
| A feed's activity | The 50 most recent events, newest first |
curl "https://<API_HOST>/api/v1/playlists" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "X-Organization-ID: <ORG_ID>" \
-H "X-Workspace-ID: <WORKSPACE_ID>"
[
{
"id": "b2a7e4c9-3f61-4c8d-9e25-71d0a6f4c3e8",
"organizationId": "4f0c2a9e-1b7d-4e55-9a3c-2d8e6f1a7b90",
"workspaceId": "7c3e9b21-5a4f-4d8e-b6c1-0e2f8a9d3b44",
"name": "Lobby morning loop",
"description": "Weekday mornings",
"status": "active",
"version": 3,
"totalDuration": 90,
"mediaCount": 3,
"canvasTemplateId": "3d6f2b8e-9a1c-4f5d-b7e3-8c2a4f6d1e97",
"aspectRatio": "16:9",
"multiZone": false,
"zoneCount": 1,
"feedCount": 1,
"endpointCount": 4,
"venueCount": 1,
"draftVersion": { "version": 4, "readyState": "test" }
}
]
Lifecycle and states¶
Playlist versions¶
A playlist has one live version at all times, at most one draft, and any number of historical versions. Items belong to a version, so editing a draft never changes what plays.
| From | Action | To |
|---|---|---|
| (new) | POST /playlists |
live (empty) |
live |
POST /playlists/{playlistId}/draft |
A draft with readyState test, copied from live |
draft |
POST …/media?target=draft |
Same draft, items replaced |
draft |
PATCH …/ready |
readyState ready |
draft |
POST …/publish-draft |
The draft becomes live; the old live version becomes historical |
historical |
POST …/rollback |
That version becomes live again; the current live becomes historical |
historical |
POST …/draft/rollback |
Its items are copied into the draft; live is unchanged |
POST …/media replaces every item of the targeted version: always send the full list. Without target, it acts on the live version.
Feed approval¶
approvalStatus moves through draft, pending_review, approved or rejected, then active. Rejected feeds go back to draft when edited. Set it with PUT /media-channels/{channelId}; an approval or rejection records your X-User-ID and the time.
Which time block plays¶
Every 15 seconds the server picks one block per feed from the blocks whose date, recurrence and time window match now (Asia/Bangkok time, see the warning above). It picks by rank first, then by priority, then the most recently created block.
block_type |
Rank |
|---|---|
override, event-override |
10 (wins) |
scheduled, playlist |
5 |
default |
1 |
With no matching block, the feed plays its base playlist (or the zone assignment). A block with neither playlist_id nor zone_assignments never plays. After the winning block changes, devices in the feed's spaces that are online (seen in the last 5 minutes) get the new content, and a device that reconnects gets the current content again.
Feed releases¶
A release is scheduled until its effectiveAt, then live; a newer live release makes the old one superseded. A scheduled release can be cancelled. Releases capture the base playlist, operating hours, time zone and layout, not time blocks.
Errors¶
CMS routes return { "error": "<reason>" }. Token and scope failures return { "success": false, "error": "<reason>" }. A path that doesn't exist returns the same shape with a plain-text message, for example Cannot GET /api/v1/nothing.
| Status | Example error |
When it happens and what to do |
|---|---|---|
| 400 | Invalid request, Missing X-User-ID header, Invalid canvasTemplateId, No fields to update |
Fix the body or headers. |
| 401 | Unauthorized - sign in required |
Send a valid token. |
| 403 | Forbidden - the organization or workspace is not yours |
Use IDs of your own organization and workspace. |
| 404 | Playlist not found, Channel not found, Time block not found |
The ID doesn't exist in your organization. |
| 409 | A draft is already attached to this playlist |
Publish or discard the existing draft, or edit it. |
| 500 | Failed to … |
Retry later. |
Bodies as returned:
400. Also { "error": "Missing X-User-ID header" }.
401.
403.
404. Some routes say Playlist not found or permission denied.
409.
500.
Endpoints¶
Related¶
- Catalogue ticketing API
- Spatial API: spaces, endpoints and target groups that feeds and live control reach
- Provisioning API: devices
- Conventions
- Changelog