Viewers
The people who watch an Organisation's Broadcasts, each with a Watermark code. Deactivate cuts one off, and Reactivate lets them back.
List an Organisation's Viewers
GET /v1/organisations/{organisation_id}/viewers
- MCP tool
list_viewersread-only- Auth
- Bearer token (
bearerAuth)
The Organisation's Viewers, sorted by email. Members, Admins and the Platform admin. email narrows it to emails that start with the given text, and status to active or deactivated Viewers. A page can hold fewer items than limit and still have a next_cursor.
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. |
email | query | string | no | Only Viewers whose email starts with this. Compared case-insensitively. 1 to 254 characters. |
status | query | ViewerStatus | no | Only Viewers with this status. |
Responses
| Status | Description | Body |
|---|---|---|
200 | One page of Viewers. | ViewerPage |
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 |
401 | No valid bearer token (unauthenticated). Header WWW-Authenticate: The bearer challenge, per RFC 6750. | Problem |
403 | The caller can see the resource, but their Role doesn't allow this operation (forbidden). The attempt is audited with result=denied. | Problem |
404 | The resource doesn't exist, or the caller can't see it (not_found). The two are never told apart. | Problem |
Add a Viewer
POST /v1/organisations/{organisation_id}/viewers
- MCP tool
add_viewernot destructive- Auth
- Bearer token (
bearerAuth)
Adds a Viewer by email, active straight away, with a new random Watermark code. Admins and the Platform admin. Fails with 409 if the email already has a Membership in the Organisation, as a Viewer or on the team. Records one viewer.added audit event.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organisation_id | path | OrganisationId | yes | Organisation ID. |
Request body
AddViewerRequest, as application/json. Required.
Responses
| Status | Description | Body |
|---|---|---|
201 | The new Viewer. | Viewer |
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 |
401 | No valid bearer token (unauthenticated). Header WWW-Authenticate: The bearer challenge, per RFC 6750. | Problem |
403 | The caller can see the resource, but their Role doesn't allow this operation (forbidden). The attempt is audited with result=denied. | Problem |
404 | The resource doesn't exist, or the caller can't see it (not_found). The two are never told apart. | Problem |
409 | The change breaks a uniqueness rule or the resource's current state (conflict). | Problem |
Get a Viewer
GET /v1/organisations/{organisation_id}/viewers/{viewer_id}
- MCP tool
get_viewerread-only- Auth
- Bearer token (
bearerAuth)
One Viewer, active or deactivated. Members, Admins and the Platform admin.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organisation_id | path | OrganisationId | yes | Organisation ID. |
viewer_id | path | MembershipId | yes | Membership ID. |
Responses
| Status | Description | Body |
|---|---|---|
200 | The Viewer. | Viewer |
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 |
401 | No valid bearer token (unauthenticated). Header WWW-Authenticate: The bearer challenge, per RFC 6750. | Problem |
403 | The caller can see the resource, but their Role doesn't allow this operation (forbidden). The attempt is audited with result=denied. | Problem |
404 | The resource doesn't exist, or the caller can't see it (not_found). The two are never told apart. | Problem |
Deactivate a Viewer
POST /v1/organisations/{organisation_id}/viewers/{viewer_id}/deactivate
- MCP tool
deactivate_viewerdestructive: clients ask before running it- Auth
- Bearer token (
bearerAuth)
Cuts the Viewer off straight away, and disconnects them if they are watching. It can be undone with reactivate_viewer. Members, Admins and the Platform admin. Fails with 409 if the Viewer is already deactivated. Records one viewer.deactivated audit event.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organisation_id | path | OrganisationId | yes | Organisation ID. |
viewer_id | path | MembershipId | yes | Membership ID. |
Responses
| Status | Description | Body |
|---|---|---|
200 | The Viewer, now deactivated. | Viewer |
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 |
401 | No valid bearer token (unauthenticated). Header WWW-Authenticate: The bearer challenge, per RFC 6750. | Problem |
403 | The caller can see the resource, but their Role doesn't allow this operation (forbidden). The attempt is audited with result=denied. | Problem |
404 | The resource doesn't exist, or the caller can't see it (not_found). The two are never told apart. | Problem |
409 | The change breaks a uniqueness rule or the resource's current state (conflict). | Problem |
Reactivate a Viewer
POST /v1/organisations/{organisation_id}/viewers/{viewer_id}/reactivate
- MCP tool
reactivate_viewerdestructive: clients ask before running it- Auth
- Bearer token (
bearerAuth)
Lets a deactivated Viewer watch again, with the same Watermark code. Admins and the Platform admin; a Member is refused with 403, audited. Fails with 409 if the Viewer is already active. Records one viewer.reactivated audit event.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organisation_id | path | OrganisationId | yes | Organisation ID. |
viewer_id | path | MembershipId | yes | Membership ID. |
Responses
| Status | Description | Body |
|---|---|---|
200 | The Viewer, now active. | Viewer |
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 |
401 | No valid bearer token (unauthenticated). Header WWW-Authenticate: The bearer challenge, per RFC 6750. | Problem |
403 | The caller can see the resource, but their Role doesn't allow this operation (forbidden). The attempt is audited with result=denied. | Problem |
404 | The resource doesn't exist, or the caller can't see it (not_found). The two are never told apart. | Problem |
409 | The change breaks a uniqueness rule or the resource's current state (conflict). | Problem |
Find a Viewer by Watermark code
GET /v1/organisations/{organisation_id}/watermark-codes/{watermark_code}
- MCP tool
find_viewer_by_watermarkread-only- Auth
- Bearer token (
bearerAuth)
The Viewer whose Watermark code is drawn over a re-streamed video, active or deactivated. Members, Admins and the Platform admin. 404 if no Viewer in the Organisation has the code.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organisation_id | path | OrganisationId | yes | Organisation ID. |
watermark_code | path | WatermarkCode | yes | 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. |
Responses
| Status | Description | Body |
|---|---|---|
200 | The Viewer. | Viewer |
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 |
401 | No valid bearer token (unauthenticated). Header WWW-Authenticate: The bearer challenge, per RFC 6750. | Problem |
403 | The caller can see the resource, but their Role doesn't allow this operation (forbidden). The attempt is audited with result=denied. | Problem |
404 | The resource doesn't exist, or the caller can't see it (not_found). The two are never told apart. | Problem |
Schemas
OrganisationId
Organisation ID.
Type: string. Exactly 18 characters. Pattern ^ORG[a-z0-9]{15}$. Example: ORG8hfaw8hfpwhjf94.
ViewerStatus
deactivated Viewers can't watch, and are disconnected if they are watching. Deactivating is reversible.
Type: string. One of active, deactivated.
ViewerPage
| Field | Type | Required | Description |
|---|---|---|---|
items | array of Viewer | 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. |
Viewer
| Field | Type | Required | Description |
|---|---|---|---|
id | MembershipId | yes | Membership ID. |
organisation_id | OrganisationId | yes | Organisation ID. |
user_id | UserId | yes | User ID. |
email | Email | yes | An email address. Compared case-insensitively, and returned in lower case. |
watermark_code | WatermarkCode | yes | 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. |
status | ViewerStatus | yes | deactivated Viewers can't watch, and are disconnected if they are watching. Deactivating is reversible. |
created_at | Timestamp | yes | UTC, with milliseconds and a Z suffix. |
deactivated_at | Timestamp | null | yes | When the Viewer was deactivated, or null while they are active. |
MembershipId
Membership ID.
Type: string. Exactly 18 characters. Pattern ^MEM[a-z0-9]{15}$. Example: MEM8hfaw8hfpwhjf94.
UserId
User ID.
Type: string. Exactly 18 characters. Pattern ^USR[a-z0-9]{15}$. Example: USR8hfaw8hfpwhjf94.
An email address. Compared case-insensitively, and returned in lower case.
Type: string (email). At most 254 characters. Example: jason@northgate.example.
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.
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.
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. |
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. |
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. |
AddViewerRequest
| Field | Type | Required | Description |
|---|---|---|---|
email | Email | yes | The Viewer's email. Their User is created if this email has none yet. |