# Broadcasts

Streaming to a Channel: an Uplink session makes it Ready, Go live starts a Broadcast, and Stop ends it.

Part of the [Celerbeam API and MCP reference](https://celerbeam.com/docs/api/index.md). HTML version: https://celerbeam.com/docs/api/broadcasts/

## List Broadcasts

`GET /v1/organisations/{organisation_id}/broadcasts`

The Organisation's Broadcasts, newest first, by `started_at`. Members, Admins and the Platform admin. `channel_id` narrows it to one Channel, `state` to live or ended ones, and `from` (inclusive) and `to` (exclusive) to a range of start times. A page can hold fewer items than `limit` and still have a `next_cursor`. Each Broadcast says who streamed it, how many Viewers watched it, and its watch sessions by class.

- MCP tool: `list_broadcasts` (read-only)
- Auth: Bearer token (`bearerAuth`)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `organisation_id` | path | `OrganisationId` | yes | Organisation ID. |
| `cursor` | query | `string` | no | The `next_cursor` from the previous page. Omit it for the first page. At least 1 character. |
| `limit` | query | `integer` | no | The most items to return. 1 to 100. Default `50`. |
| `channel_id` | query | `ChannelId` | no | Only this Channel's Broadcasts. |
| `state` | query | `BroadcastState` | no | Only Broadcasts in this state. |
| `from` | query | `Timestamp` | no | Only Broadcasts that started at or after this time. |
| `to` | query | `Timestamp` | no | Only Broadcasts that started before this time. |

### Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | One page of Broadcasts. | `BroadcastPage` (`application/json`) |
| 400 | The request is malformed or fails validation (`invalid_request`), or an ID has the wrong prefix for its field (`invalid_id`). `errors` names each invalid field. | `Problem` (`application/problem+json`) |
| 401 | No valid bearer token (`unauthenticated`). Header `WWW-Authenticate`: The bearer challenge, per RFC 6750. | `Problem` (`application/problem+json`) |
| 403 | The caller can see the resource, but their Role doesn't allow this operation (`forbidden`). The attempt is audited with `result=denied`. | `Problem` (`application/problem+json`) |
| 404 | The resource doesn't exist, or the caller can't see it (`not_found`). The two are never told apart. | `Problem` (`application/problem+json`) |

## Get a Broadcast

`GET /v1/organisations/{organisation_id}/broadcasts/{broadcast_id}`

One Broadcast. Members, Admins and the Platform admin see any of them, with who streamed it, how many Viewers watched it, and its watch sessions by class. A Viewer sees one only while it is live, and without its `uplink_session_id`, `streamed_by`, `viewers` or `watch_sessions`; an ended one is 404 to them.

- MCP tool: `get_broadcast` (read-only)
- Auth: Bearer token (`bearerAuth`)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `organisation_id` | path | `OrganisationId` | yes | Organisation ID. |
| `broadcast_id` | path | `BroadcastId` | yes | Broadcast ID. |

### Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | The Broadcast. | `Broadcast` (`application/json`) |
| 400 | The request is malformed or fails validation (`invalid_request`), or an ID has the wrong prefix for its field (`invalid_id`). `errors` names each invalid field. | `Problem` (`application/problem+json`) |
| 401 | No valid bearer token (`unauthenticated`). Header `WWW-Authenticate`: The bearer challenge, per RFC 6750. | `Problem` (`application/problem+json`) |
| 403 | The caller can see the resource, but their Role doesn't allow this operation (`forbidden`). The attempt is audited with `result=denied`. | `Problem` (`application/problem+json`) |
| 404 | The resource doesn't exist, or the caller can't see it (`not_found`). The two are never told apart. | `Problem` (`application/problem+json`) |

## Rename a Broadcast

`POST /v1/organisations/{organisation_id}/broadcasts/{broadcast_id}/rename`

Gives a Broadcast a new title, live or ended. Members, Admins and the Platform admin. While it is live, Viewers see the new title straight away. A blank title gets 400 `title_required`. Records one `broadcast.renamed` audit event with the title before and after, and pushes `channel.state_changed` if it is live; renaming to the same title changes nothing and records nothing.

- MCP tool: `rename_broadcast` (destructive: clients ask before running it)
- Auth: Bearer token (`bearerAuth`)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `organisation_id` | path | `OrganisationId` | yes | Organisation ID. |
| `broadcast_id` | path | `BroadcastId` | yes | Broadcast ID. |

### Request body

`RenameBroadcastRequest`, as `application/json`. Required.

### Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | The renamed Broadcast. | `Broadcast` (`application/json`) |
| 400 | The request is malformed or fails validation (`invalid_request`), or an ID has the wrong prefix for its field (`invalid_id`). `errors` names each invalid field. | `Problem` (`application/problem+json`) |
| 401 | No valid bearer token (`unauthenticated`). Header `WWW-Authenticate`: The bearer challenge, per RFC 6750. | `Problem` (`application/problem+json`) |
| 403 | The caller can see the resource, but their Role doesn't allow this operation (`forbidden`). The attempt is audited with `result=denied`. | `Problem` (`application/problem+json`) |
| 404 | The resource doesn't exist, or the caller can't see it (`not_found`). The two are never told apart. | `Problem` (`application/problem+json`) |
| 409 | The change breaks a uniqueness rule or the resource's current state (`conflict`). | `Problem` (`application/problem+json`) |

## Stop a Broadcast

`POST /v1/organisations/{organisation_id}/broadcasts/{broadcast_id}/stop`

Takes the Broadcast off air, and the Channel goes back to `ready`, with the top title of its run sheet, if any, as Up next. Any Member or Admin, and the Platform admin. Viewers are disconnected and never told why. A Broadcast that has already ended gets 409 `not_live`. Records one `broadcast.stopped` audit event, and pushes `broadcast.ended` and `channel.state_changed`.

- MCP tool: `stop_broadcast` (destructive: clients ask before running it)
- Auth: Bearer token (`bearerAuth`)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `organisation_id` | path | `OrganisationId` | yes | Organisation ID. |
| `broadcast_id` | path | `BroadcastId` | yes | Broadcast ID. |

### Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | The stopped Broadcast, `ended`. | `Broadcast` (`application/json`) |
| 400 | The request is malformed or fails validation (`invalid_request`), or an ID has the wrong prefix for its field (`invalid_id`). `errors` names each invalid field. | `Problem` (`application/problem+json`) |
| 401 | No valid bearer token (`unauthenticated`). Header `WWW-Authenticate`: The bearer challenge, per RFC 6750. | `Problem` (`application/problem+json`) |
| 403 | The caller can see the resource, but their Role doesn't allow this operation (`forbidden`). The attempt is audited with `result=denied`. | `Problem` (`application/problem+json`) |
| 404 | The resource doesn't exist, or the caller can't see it (`not_found`). The two are never told apart. | `Problem` (`application/problem+json`) |
| 409 | The change breaks a uniqueness rule or the resource's current state (`conflict`). | `Problem` (`application/problem+json`) |

## Go live

`POST /v1/organisations/{organisation_id}/channels/{channel_id}/go-live`

Starts a Broadcast on a Ready Channel, with a title, and the Channel becomes `live`. Any Member or Admin, and the Platform admin, not only the one streaming. Without a title it uses the Up next title, which it clears either way. Without a Ready Uplink session the answer is 409 `not_ready`; without a title or an Up next title, 400 `title_required`. Records one `broadcast.went_live` audit event, and pushes `broadcast.started` and `channel.state_changed`.

- MCP tool: `go_live` (not destructive)
- Auth: Bearer token (`bearerAuth`)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `organisation_id` | path | `OrganisationId` | yes | Organisation ID. |
| `channel_id` | path | `ChannelId` | yes | Channel ID. |

### Request body

`GoLiveRequest`, as `application/json`. Required.

### Responses

| Status | Description | Body |
| --- | --- | --- |
| 201 | The new Broadcast, `live`. | `Broadcast` (`application/json`) |
| 400 | The request is malformed or fails validation (`invalid_request`), or an ID has the wrong prefix for its field (`invalid_id`). `errors` names each invalid field. | `Problem` (`application/problem+json`) |
| 401 | No valid bearer token (`unauthenticated`). Header `WWW-Authenticate`: The bearer challenge, per RFC 6750. | `Problem` (`application/problem+json`) |
| 403 | The caller can see the resource, but their Role doesn't allow this operation (`forbidden`). The attempt is audited with `result=denied`. | `Problem` (`application/problem+json`) |
| 404 | The resource doesn't exist, or the caller can't see it (`not_found`). The two are never told apart. | `Problem` (`application/problem+json`) |
| 409 | The change breaks a uniqueness rule or the resource's current state (`conflict`). | `Problem` (`application/problem+json`) |

## Get a Channel's run sheet

`GET /v1/organisations/{organisation_id}/channels/{channel_id}/run-sheet`

The titles lined up for the Channel's next Broadcasts, and its Up next title. Members, Admins and the Platform admin. A Channel that never had one has an empty run sheet.

- MCP tool: `get_run_sheet` (read-only)
- Auth: Bearer token (`bearerAuth`)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `organisation_id` | path | `OrganisationId` | yes | Organisation ID. |
| `channel_id` | path | `ChannelId` | yes | Channel ID. |

### Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | The run sheet. | `RunSheet` (`application/json`) |
| 400 | The request is malformed or fails validation (`invalid_request`), or an ID has the wrong prefix for its field (`invalid_id`). `errors` names each invalid field. | `Problem` (`application/problem+json`) |
| 401 | No valid bearer token (`unauthenticated`). Header `WWW-Authenticate`: The bearer challenge, per RFC 6750. | `Problem` (`application/problem+json`) |
| 403 | The caller can see the resource, but their Role doesn't allow this operation (`forbidden`). The attempt is audited with `result=denied`. | `Problem` (`application/problem+json`) |
| 404 | The resource doesn't exist, or the caller can't see it (`not_found`). The two are never told apart. | `Problem` (`application/problem+json`) |

## Set a Channel's run sheet

`PUT /v1/organisations/{organisation_id}/channels/{channel_id}/run-sheet`

Replaces the Channel's run sheet. Members, Admins and the Platform admin. After each Stop, the top title becomes Up next, so whoever runs the Broadcasts only presses Go live and Stop. If the Channel is `ready` with no Up next title, the top title becomes Up next straight away. Records one `channel.run_sheet_set` audit event, and pushes `channel.state_changed`; setting the same titles changes nothing and records nothing.

- MCP tool: `set_run_sheet` (destructive: clients ask before running it)
- Auth: Bearer token (`bearerAuth`)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `organisation_id` | path | `OrganisationId` | yes | Organisation ID. |
| `channel_id` | path | `ChannelId` | yes | Channel ID. |

### Request body

`SetRunSheetRequest`, as `application/json`. Required.

### Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | The run sheet as stored. | `RunSheet` (`application/json`) |
| 400 | The request is malformed or fails validation (`invalid_request`), or an ID has the wrong prefix for its field (`invalid_id`). `errors` names each invalid field. | `Problem` (`application/problem+json`) |
| 401 | No valid bearer token (`unauthenticated`). Header `WWW-Authenticate`: The bearer challenge, per RFC 6750. | `Problem` (`application/problem+json`) |
| 403 | The caller can see the resource, but their Role doesn't allow this operation (`forbidden`). The attempt is audited with `result=denied`. | `Problem` (`application/problem+json`) |
| 404 | The resource doesn't exist, or the caller can't see it (`not_found`). The two are never told apart. | `Problem` (`application/problem+json`) |
| 409 | The change breaks a uniqueness rule or the resource's current state (`conflict`). | `Problem` (`application/problem+json`) |

## Start an Uplink session

`POST /v1/organisations/{organisation_id}/channels/{channel_id}/uplink-sessions`

Connects a streaming laptop to the Channel, which becomes `ready`: Members can preview it, but no Viewer can see it until someone goes live. The top title of the Channel's run sheet, if any, becomes Up next. Members, Admins and the Platform admin. A Channel has at most one active Uplink session: a second Start gets 409 `channel_in_use`, with `started_by`. The session goes to a relay that isn't draining, and stays on it until it ends, with its Broadcasts and their Viewers; 503 `unavailable` if every relay is draining. Records one `uplink_session.started` audit event, and pushes `channel.state_changed`.

- MCP tool: `start_uplink_session` (not destructive)
- Auth: Bearer token (`bearerAuth`)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `organisation_id` | path | `OrganisationId` | yes | Organisation ID. |
| `channel_id` | path | `ChannelId` | yes | Channel ID. |

### Request body

`StartUplinkSessionRequest`, as `application/json`. Required.

### Responses

| Status | Description | Body |
| --- | --- | --- |
| 201 | The new Uplink session, `ready`. | `UplinkSession` (`application/json`) |
| 400 | The request is malformed or fails validation (`invalid_request`), or an ID has the wrong prefix for its field (`invalid_id`). `errors` names each invalid field. | `Problem` (`application/problem+json`) |
| 401 | No valid bearer token (`unauthenticated`). Header `WWW-Authenticate`: The bearer challenge, per RFC 6750. | `Problem` (`application/problem+json`) |
| 403 | The caller can see the resource, but their Role doesn't allow this operation (`forbidden`). The attempt is audited with `result=denied`. | `Problem` (`application/problem+json`) |
| 404 | The resource doesn't exist, or the caller can't see it (`not_found`). The two are never told apart. | `Problem` (`application/problem+json`) |
| 409 | The change breaks a uniqueness rule or the resource's current state (`conflict`). | `Problem` (`application/problem+json`) |
| 503 | Unavailable | `Problem` (`application/problem+json`) |

## Get an Uplink session

`GET /v1/organisations/{organisation_id}/uplink-sessions/{uplink_session_id}`

One Uplink session. Members, Admins and the Platform admin. A session whose laptop stopped renewing its sender ticket reads as `ended`, with `end_reason` `lost`, from a minute after the last ticket expired.

- MCP tool: `get_uplink_session` (read-only)
- Auth: Bearer token (`bearerAuth`)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `organisation_id` | path | `OrganisationId` | yes | Organisation ID. |
| `uplink_session_id` | path | `UplinkSessionId` | yes | Uplink session ID. |

### Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | The Uplink session. | `UplinkSession` (`application/json`) |
| 400 | The request is malformed or fails validation (`invalid_request`), or an ID has the wrong prefix for its field (`invalid_id`). `errors` names each invalid field. | `Problem` (`application/problem+json`) |
| 401 | No valid bearer token (`unauthenticated`). Header `WWW-Authenticate`: The bearer challenge, per RFC 6750. | `Problem` (`application/problem+json`) |
| 403 | The caller can see the resource, but their Role doesn't allow this operation (`forbidden`). The attempt is audited with `result=denied`. | `Problem` (`application/problem+json`) |
| 404 | The resource doesn't exist, or the caller can't see it (`not_found`). The two are never told apart. | `Problem` (`application/problem+json`) |

## End an Uplink session

`POST /v1/organisations/{organisation_id}/uplink-sessions/{uplink_session_id}/end`

Disconnects the streaming laptop, and the Channel goes `offline`. Members, Admins and the Platform admin. A live Broadcast is stopped first, with its own `broadcast.stopped` event and `broadcast.ended` push. An Up next title that never went live goes back to the top of the run sheet. Records one `uplink_session.ended` audit event, and pushes `channel.state_changed`. A session that has already ended gets 409 `conflict`.

- MCP tool: `end_uplink_session` (destructive: clients ask before running it)
- Auth: Bearer token (`bearerAuth`)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `organisation_id` | path | `OrganisationId` | yes | Organisation ID. |
| `uplink_session_id` | path | `UplinkSessionId` | yes | Uplink session ID. |

### Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | The ended Uplink session. | `UplinkSession` (`application/json`) |
| 400 | The request is malformed or fails validation (`invalid_request`), or an ID has the wrong prefix for its field (`invalid_id`). `errors` names each invalid field. | `Problem` (`application/problem+json`) |
| 401 | No valid bearer token (`unauthenticated`). Header `WWW-Authenticate`: The bearer challenge, per RFC 6750. | `Problem` (`application/problem+json`) |
| 403 | The caller can see the resource, but their Role doesn't allow this operation (`forbidden`). The attempt is audited with `result=denied`. | `Problem` (`application/problem+json`) |
| 404 | The resource doesn't exist, or the caller can't see it (`not_found`). The two are never told apart. | `Problem` (`application/problem+json`) |
| 409 | The change breaks a uniqueness rule or the resource's current state (`conflict`). | `Problem` (`application/problem+json`) |

## Issue a sender ticket

`POST /v1/organisations/{organisation_id}/uplink-sessions/{uplink_session_id}/sender-tickets`

A ticket to send an Uplink session's video, for 600 s, on the stream it should use right now: its Ready stream, or the live Broadcast's (`stream`). Ask again after `refresh_after`. Only the User who started the session, on the session's device. Each one keeps the session alive: a minute after the last one expires, the session is lost. Records one `uplink_session.ticket_issued` audit event. A session that has ended gets 409 `conflict`.

- MCP tool: `issue_sender_ticket` (not destructive)
- Auth: Bearer token (`bearerAuth`)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `organisation_id` | path | `OrganisationId` | yes | Organisation ID. |
| `uplink_session_id` | path | `UplinkSessionId` | yes | Uplink session ID. |

### Request body

`IssueSenderTicketRequest`, as `application/json`. Optional.

### Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | The ticket, where to use it, and which stream to send on. | `TicketBundle` (`application/json`) |
| 400 | The request is malformed or fails validation (`invalid_request`), or an ID has the wrong prefix for its field (`invalid_id`). `errors` names each invalid field. | `Problem` (`application/problem+json`) |
| 401 | No valid bearer token (`unauthenticated`). Header `WWW-Authenticate`: The bearer challenge, per RFC 6750. | `Problem` (`application/problem+json`) |
| 403 | The caller can see the resource, but their Role doesn't allow this operation (`forbidden`). The attempt is audited with `result=denied`. | `Problem` (`application/problem+json`) |
| 404 | The resource doesn't exist, or the caller can't see it (`not_found`). The two are never told apart. | `Problem` (`application/problem+json`) |
| 409 | The change breaks a uniqueness rule or the resource's current state (`conflict`). | `Problem` (`application/problem+json`) |

## Set the Up next title

`PUT /v1/organisations/{organisation_id}/uplink-sessions/{uplink_session_id}/up-next-title`

Sets the title of the session's next Broadcast while it is `ready`. Viewers see it as "Up next", and Go live uses it when given no title. Members, Admins and the Platform admin. A blank title gets 400 `title_required`. A live session gets 409 `conflict` (rename the Broadcast instead), and so does an ended one. Records one `uplink_session.title_set` audit event, and pushes `channel.state_changed`; setting the same title changes nothing and records nothing.

- MCP tool: `set_up_next_title` (destructive: clients ask before running it)
- Auth: Bearer token (`bearerAuth`)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `organisation_id` | path | `OrganisationId` | yes | Organisation ID. |
| `uplink_session_id` | path | `UplinkSessionId` | yes | Uplink session ID. |

### Request body

`SetUpNextTitleRequest`, as `application/json`. Required.

### Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | The Uplink session, with its new `up_next_title`. | `UplinkSession` (`application/json`) |
| 400 | The request is malformed or fails validation (`invalid_request`), or an ID has the wrong prefix for its field (`invalid_id`). `errors` names each invalid field. | `Problem` (`application/problem+json`) |
| 401 | No valid bearer token (`unauthenticated`). Header `WWW-Authenticate`: The bearer challenge, per RFC 6750. | `Problem` (`application/problem+json`) |
| 403 | The caller can see the resource, but their Role doesn't allow this operation (`forbidden`). The attempt is audited with `result=denied`. | `Problem` (`application/problem+json`) |
| 404 | The resource doesn't exist, or the caller can't see it (`not_found`). The two are never told apart. | `Problem` (`application/problem+json`) |
| 409 | The change breaks a uniqueness rule or the resource's current state (`conflict`). | `Problem` (`application/problem+json`) |

## Clear the Up next title

`DELETE /v1/organisations/{organisation_id}/uplink-sessions/{uplink_session_id}/up-next-title`

Removes the session's Up next title, so Viewers no longer see one and Go live needs a title again. The run sheet is left as it is. Members, Admins and the Platform admin. A live or ended session gets 409 `conflict`. Records one `uplink_session.title_cleared` audit event, and pushes `channel.state_changed`; a session with no Up next title changes nothing and records nothing.

- MCP tool: `clear_up_next_title` (destructive: clients ask before running it)
- Auth: Bearer token (`bearerAuth`)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `organisation_id` | path | `OrganisationId` | yes | Organisation ID. |
| `uplink_session_id` | path | `UplinkSessionId` | yes | Uplink session ID. |

### Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | The Uplink session, with no `up_next_title`. | `UplinkSession` (`application/json`) |
| 400 | The request is malformed or fails validation (`invalid_request`), or an ID has the wrong prefix for its field (`invalid_id`). `errors` names each invalid field. | `Problem` (`application/problem+json`) |
| 401 | No valid bearer token (`unauthenticated`). Header `WWW-Authenticate`: The bearer challenge, per RFC 6750. | `Problem` (`application/problem+json`) |
| 403 | The caller can see the resource, but their Role doesn't allow this operation (`forbidden`). The attempt is audited with `result=denied`. | `Problem` (`application/problem+json`) |
| 404 | The resource doesn't exist, or the caller can't see it (`not_found`). The two are never told apart. | `Problem` (`application/problem+json`) |
| 409 | The change breaks a uniqueness rule or the resource's current state (`conflict`). | `Problem` (`application/problem+json`) |

## Schemas

### OrganisationId

Organisation ID.

Type: `string`. Exactly 18 characters. Pattern `^ORG[a-z0-9]{15}$`. Example: `ORG8hfaw8hfpwhjf94`.

### ChannelId

Channel ID.

Type: `string`. Exactly 18 characters. Pattern `^CHN[a-z0-9]{15}$`. Example: `CHN8hfaw8hfpwhjf94`.

### BroadcastState

`live`: on air. `ended`: stopped.

Type: `string`. One of `live`, `ended`.

### Timestamp

UTC, with milliseconds and a `Z` suffix.

Type: `string (date-time)`. Pattern `^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$`. Example: `2026-11-28T14:27:03.412Z`.

### BroadcastPage

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | `array of Broadcast` | yes |  |
| `next_cursor` | `string \| null` | yes | An opaque cursor for the next page, or `null` on the last page. |

### CursorPage

One page of a list. A list response combines this with its own `items` through `allOf`. Pass `next_cursor` back as `cursor` to get the next page; it is `null` on the last page.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | `array of any` | yes |  |
| `next_cursor` | `string \| null` | yes | An opaque cursor for the next page, or `null` on the last page. |

### Broadcast

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `BroadcastId` | yes | Broadcast ID. |
| `organisation_id` | `OrganisationId` | yes | Organisation ID. |
| `channel_id` | `ChannelId` | yes | Channel ID. |
| `uplink_session_id` | `UplinkSessionId \| null` | yes | The Uplink session it ran in. `null` for Viewers, who never see sessions. |
| `title` | `BroadcastTitle` | yes | What Viewers see it called. Leading and trailing spaces are removed. |
| `state` | `BroadcastState` | yes | `live`: on air. `ended`: stopped. |
| `started_at` | `Timestamp` | yes | UTC, with milliseconds and a `Z` suffix. |
| `ended_at` | `Timestamp \| null` | yes | When it stopped, or `null` while it is live. |
| `streamed_by` | `UplinkSessionStarter \| null` | yes | Who streamed it: who started the Uplink session it ran in, which isn't always who pressed Go live. `null` for Viewers. |
| `viewers` | `integer \| null` | yes | How many Viewers watched it: the distinct Viewer Memberships with a `viewer` watch segment for it. Members and Admins watching are counted in `watch_sessions.team`, and Platform admins in `watch_sessions.platform` (for Platform admins only), not here. It grows while the Broadcast is live. `null` for Viewers. At least 0. Example: `58`. |
| `watch_sessions` | `BroadcastWatchSessions \| null` | yes | How many watch sessions watched it, by the class their segments were stamped with when watching was admitted (ADR 0007 §6, §6a). `null` for Viewers. |

### BroadcastId

Broadcast ID.

Type: `string`. Exactly 18 characters. Pattern `^BRD[a-z0-9]{15}$`. Example: `BRD8hfaw8hfpwhjf94`.

### UplinkSessionId

Uplink session ID.

Type: `string`. Exactly 18 characters. Pattern `^UPL[a-z0-9]{15}$`. Example: `UPL8hfaw8hfpwhjf94`.

### BroadcastTitle

What Viewers see it called. Leading and trailing spaces are removed.

Type: `string`. 1 to 100 characters. Example: `Kempton · Race 3 · 14:20`.

### UplinkSessionStarter

Who pressed Start.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `user_id` | `UserId` | yes | User ID. |
| `name` | `string` | yes | How to show them. Their email, until Users have names. Example: `mike@northgate.example`. |

### UserId

User ID.

Type: `string`. Exactly 18 characters. Pattern `^USR[a-z0-9]{15}$`. Example: `USR8hfaw8hfpwhjf94`.

### BroadcastWatchSessions

Watch sessions that watched a Broadcast, by class.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `viewer` | `integer` | yes | Watch sessions of Viewers. At least 0. |
| `team` | `integer` | yes | Watch sessions of Members and Admins. At least 0. |
| `platform` | `integer \| null` | yes | Watch sessions of Platform admins, Celerbeam's staff: never invoiced (ADR 0007 §6a). `null` unless the caller is a Platform admin: an Organisation never sees Celerbeam's own watching. At least 0. |

### Problem

An RFC 9457 problem details object, sent as `application/problem+json`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `type` | `string (uri-reference)` | yes | A URI identifying the problem type. `about:blank` when `code` says enough. Example: `about:blank`. |
| `title` | `string` | yes | A short, human-readable summary of the problem type. Example: `Not found`. |
| `status` | `integer` | yes | The HTTP status code. 400 to 599. Example: `404`. |
| `code` | `string` | yes | A stable, snake_case machine code. Clients branch on this, never on `title`. Pattern `^[a-z][a-z0-9]*(_[a-z0-9]+)*$`. Examples: `not_found`, `invalid_id`. |
| `detail` | `string` | no | A human-readable explanation of this occurrence. |
| `instance` | `string (uri-reference)` | no | The request path that produced the problem. |
| `request_id` | `string` | yes | Links the problem to the request logs and any audit event. |
| `started_by` | `UplinkSessionStarter` | no | `channel_in_use` only: who started the Channel's active Uplink session. |
| `reason` | `string` | no | `session_ended` only: `idle` (unused past its window) or `signed_out` (by another session, e.g. after a password change). One of `idle`, `signed_out`. |
| `errors` | `array of ProblemFieldError` | no | One entry per invalid field, for `invalid_request` and `invalid_id`. |
| `retry_after_seconds` | `integer` | no | `rate_limited` only: how long to wait before trying again, in seconds. At least 0. |

### ProblemFieldError

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `pointer` | `string` | no | A JSON Pointer into the request body, e.g. `/first_admin_email`. |
| `parameter` | `string` | no | The name of the path, query or header parameter, e.g. `organisation_id`. |
| `detail` | `string` | yes | What is wrong with the field. |

### RenameBroadcastRequest

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `title` | `string` | yes | The new title. Leading and trailing spaces are removed. At most 100 characters. Example: `Kempton · Race 3 · 14:25`. |

### GoLiveRequest

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `title` | `string` | no | The Broadcast's title. Without one, or with only spaces, it is the Channel's Up next title; with neither, the answer is 400 `title_required`. At most 100 characters. Example: `Kempton · Race 3 · 14:20`. |

### RunSheet

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `organisation_id` | `OrganisationId` | yes | Organisation ID. |
| `channel_id` | `ChannelId` | yes | Channel ID. |
| `titles` | `array of BroadcastTitle` | yes | The titles still to come, in order. The next one loads as Up next after each Stop, and leaves this list. |
| `up_next_title` | `BroadcastTitle \| null` | yes | The Channel's Up next title while it is `ready`, as on the Channel, or `null`. It has already left `titles`. |

### SetRunSheetRequest

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `titles` | `array of string` | yes | The whole run sheet, in order; it replaces the one there. Each title is trimmed, and blank ones are left out. An empty list clears it. Example: `["Kempton · Race 4 · 14:55","Kempton · Race 5 · 15:30","Kempton · Race 6 · 16:05"]`. |

### StartUplinkSessionRequest

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `device_id` | `DeviceId` | yes | The app install that will stream. |

### DeviceId

Device ID.

Type: `string`. Exactly 18 characters. Pattern `^DEV[a-z0-9]{15}$`. Example: `DEV8hfaw8hfpwhjf94`.

### UplinkSession

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `UplinkSessionId` | yes | Uplink session ID. |
| `organisation_id` | `OrganisationId` | yes | Organisation ID. |
| `channel_id` | `ChannelId` | yes | Channel ID. |
| `device_id` | `DeviceId` | yes | The app install streaming. Only it gets sender tickets for the session. |
| `state` | `UplinkSessionState` | yes | `ready`: connected and sending, but no Viewer can see it. `live`: one of its Broadcasts is on air. `ended`: it is over. |
| `started_by` | `UplinkSessionStarter` | yes | Who pressed Start. |
| `started_at` | `Timestamp` | yes | UTC, with milliseconds and a `Z` suffix. |
| `live_broadcast_id` | `BroadcastId \| null` | yes | The Broadcast live in this session, or `null` while it is Ready or ended. |
| `ended_at` | `Timestamp \| null` | yes | When it ended, or `null` while it is active. |
| `end_reason` | `string \| null` | yes | `ended`: a Member pressed End session. `lost`: the laptop stopped renewing its sender ticket, and the session ended when the last one expired. `null` while it is active. One of `ended`, `lost`, `null`. |
| `up_next_title` | `BroadcastTitle \| null` | yes | The title of its next Broadcast, which Viewers see as "Up next" while it is `ready`, or `null` if none is set. |

### UplinkSessionState

`ready`: connected and sending, but no Viewer can see it. `live`: one of its Broadcasts is on air. `ended`: it is over.

Type: `string`. One of `ready`, `live`, `ended`.

### IssueSenderTicketRequest

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `device_id` | `DeviceId` | no | The device streaming. The app sends it as `X-Celerbeam-Device` instead; one or the other is required, and it must be the Uplink session's device. |

### TicketBundle

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `ticket_b64` | `string` | yes | The signed 188-byte ticket (C2), base64. Sent to the relay as it is, in `admit`. Pattern `^[A-Za-z0-9+/]{251}=$`. |
| `stream_id` | `StreamNumber` | yes | The stream's number on the wire (ADR 0004, "compact numeric stream numbers"). |
| `relay` | `TicketRelay` | yes | The relay to admit to, and its UDP address for this ticket (uplink for senders, downlink otherwise). |
| `expires_at` | `Timestamp` | yes | When the relay stops accepting the ticket. |
| `refresh_after` | `Timestamp` | yes | When to ask for the next ticket. |
| `watermark_code` | `WatermarkCode \| null` | yes | The Watermark code to draw, signed into the ticket. Viewer class only; `null` for senders and team. |
| `watermark_opacity` | `WatermarkOpacityValue \| null` | yes | How opaque to draw the Watermark code: the Organisation's `watermark_opacity`, from 0.3 to 1. With the code only; `null` for senders and team. The app never draws it below 0.3. |
| `watch_session_id` | `WatchSessionId \| null` | yes | The watch session, for viewer and preview tickets; `null` for a sender's. |
| `uplink_session_id` | `UplinkSessionId \| null` | yes | The Uplink session, for a sender's ticket; `null` otherwise. |
| `stream` | `TicketStream` | yes | Which stream the ticket is for. For a sender's ticket, the stream to send on right now: the Ready stream, or the live Broadcast's. |

### StreamNumber

The stream's number on the wire (ADR 0004, "compact numeric stream numbers").

Type: `integer`. 1 to 4294967295.

### TicketRelay

The relay to admit to, and its UDP address for this ticket (uplink for senders, downlink otherwise).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | The relay's name in the Backend's configuration, e.g. `local-1`. 1 to 64 characters. |
| `host` | `string` | yes | 1 to 253 characters. |
| `port` | `integer` | yes | 1 to 65535. |

### WatermarkCode

The 8-digit code drawn over the video for this Viewer, unique in the Organisation. It is not an ID (ADR 0004): people read it off a frame and type it in.

Type: `string`. Pattern `^[1-9][0-9]{7}$`. Example: `48207193`.

### WatermarkOpacityValue

How opaque the Watermark code is drawn, from 0.3 (the floor, C11's 30%) to 1 (opaque).

Type: `number`. 0.3 to 1. Example: `0.45`.

### WatchSessionId

Watch session ID.

Type: `string`. Exactly 18 characters. Pattern `^SSN[a-z0-9]{15}$`. Example: `SSN8hfaw8hfpwhjf94`.

### TicketStream

Which stream the ticket is for. For a sender's ticket, the stream to send on right now: the Ready stream, or the live Broadcast's.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `kind` | `string` | yes | One of `ready`, `broadcast`. |
| `broadcast_id` | `BroadcastId \| null` | yes | The Broadcast, for a `broadcast` stream; `null` for the Ready stream. |

### SetUpNextTitleRequest

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `title` | `string` | yes | The next Broadcast's title. Leading and trailing spaces are removed. At most 100 characters. Example: `Kempton · Race 3 · 14:20`. |
