Audit log

An append-only record of every change. See ADR 0006.

List the platform's audit events

GET /v1/audit-events

MCP tool
list_platform_audit_events read-only
Auth
Bearer token (bearerAuth)

Every audit event on the platform, newest first: each Organisation's, and the platform-level ones that belong to no Organisation, such as sign-ins and device registrations. Each event's org says which. The Platform admin only. organisation narrows it to one Organisation, route and action to a route and an action, q to events a text appears in, and from (inclusive) and to (exclusive) to a range of times. An action without a dot, e.g. viewer, matches every viewer.* action. actors gives the email of each User who acted in the page. A page can hold fewer items than limit, even none, and still have a next_cursor.

Parameters

NameInTypeRequiredDescription
cursorquerystringnoThe next_cursor from the previous page. Omit it for the first page. At least 1 character.
limitqueryintegernoThe most items to return. 1 to 100. Default 50.
routequeryAuditRoutenoOnly events that came through this route.
actionqueryAuditActionFilternoOnly this action, e.g. viewer.deactivated, or, without a dot, every action on that entity, e.g. viewer.
fromqueryTimestampnoOnly events at or after this time.
toqueryTimestampnoOnly events before this time.
organisationqueryOrganisationIdnoOnly this Organisation's events.
qquerystringnoOnly events this text appears in, ignoring case: the acting User's email, an API key's ID, an ID the event acted on or any field that identified it (an email, a name, a Watermark code), or the event's own ID. 1 to 100 characters.

Responses

StatusDescriptionBody
200One page of audit events, and who acted in them.PlatformAuditEventPage
400The 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
401No valid bearer token (unauthenticated). Header WWW-Authenticate: The bearer challenge, per RFC 6750.Problem
403The caller can see the resource, but their Role doesn't allow this operation (forbidden). The attempt is audited with result=denied.Problem

List an Organisation's audit events

GET /v1/organisations/{organisation_id}/audit-events

MCP tool
list_audit_events read-only
Auth
Bearer token (bearerAuth)

One Organisation's audit events, newest first. Admins of that Organisation and the Platform admin only.

Parameters

NameInTypeRequiredDescription
organisation_idpathOrganisationIdyesOrganisation ID.
cursorquerystringnoThe next_cursor from the previous page. Omit it for the first page. At least 1 character.
limitqueryintegernoThe most items to return. 1 to 100. Default 50.

Responses

StatusDescriptionBody
200One page of audit events.AuditEventPage
400The 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
401No valid bearer token (unauthenticated). Header WWW-Authenticate: The bearer challenge, per RFC 6750.Problem
403The caller can see the resource, but their Role doesn't allow this operation (forbidden). The attempt is audited with result=denied.Problem
404The resource doesn't exist, or the caller can't see it (not_found). The two are never told apart.Problem

Schemas

AuditRoute

How a change reached the Backend (ADR 0006 route).

Type: string. One of app, api, mcp, website, system.

AuditActionFilter

An action, <entity>.<past_tense_verb>, or an entity on its own.

Type: string. At most 100 characters. Pattern ^[a-z][a-z0-9]*(_[a-z0-9]+)*(\.[a-z][a-z0-9]*(_[a-z0-9]+)*)?$. Examples: viewer.deactivated, viewer.

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.

OrganisationId

Organisation ID.

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

PlatformAuditEventPage

FieldTypeRequiredDescription
itemsarray of AuditEventyes
next_cursorstring | nullyesAn opaque cursor for the next page, or null on the last page.
actorsarray of AuditActoryesEach User named as an actor in items, once. API keys and system aren't Users, so they aren't listed.

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.

FieldTypeRequiredDescription
itemsarray of anyyes
next_cursorstring | nullyesAn opaque cursor for the next page, or null on the last page.

AuditEvent

FieldTypeRequiredDescription
idAuditEventIdyesAudit event ID.
atTimestampyesUTC, with milliseconds and a Z suffix.
orgOrganisationId | nullyesThe Organisation the event belongs to, or null for a platform-level event.
actorUserId | ApiKeyId | stringyesWho made the change. system for the Backend's own actions.
actor_rolestring | nullyesThe actor's Role when they acted. null when the actor is system, or on a platform-level event by a User who isn't the Platform admin, e.g. a sign-in. One of viewer, member, admin, platform_admin, null.
routeAuditRouteyesHow a change reached the Backend (ADR 0006 route).
sourceAuditSourceyesWhere the change came from. Fields that don't apply are null.
actionstringyes<entity>.<past_tense_verb>, in snake_case. Pattern ^[a-z][a-z0-9]*(_[a-z0-9]+)*\.[a-z][a-z0-9]*(_[a-z0-9]+)*$. Examples: organisation.created, viewer.deactivated.
targetarray of AuditTargetyesThe IDs acted on, each with the fields that identified it at that moment.
changeobject | nullyesBefore and after values of the fields that changed, keyed by field name, or null when nothing changed. Never holds secrets.
resultstringyes One of ok, denied.
reasonstring | nullyesWhy the attempt was denied, as a Problem code. null when result is ok.
request_idstring | nullyesLinks the event to the API request logs. null for system actions.

AuditEventId

Audit event ID.

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

UserId

User ID.

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

ApiKeyId

API key ID.

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

AuditSource

Where the change came from. Fields that don't apply are null.

FieldTypeRequiredDescription
ipstring | nullyes
countrystring | nullyesISO 3166-1 alpha-2. Pattern ^[A-Z]{2}$.
device_idDeviceId | nullyes
app_versionstring | nullyes
user_agentstring | nullyes

DeviceId

Device ID.

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

AuditTarget

FieldTypeRequiredDescription
idAnyIdyesAn ID of any registered type.
snapshotobjectyesThe fields that identified the target at that moment, e.g. a Viewer's email and watermark_code.

AnyId

An ID of any registered type.

Type: string. Exactly 18 characters. Pattern ^(USR|ORG|MEM|CHN|BRD|SSN|DEV|PLN|KEY|WHK|EVT|ALR|RLY|RCT|REL|CRS|INV|EML|UPL|SEG|PRD|LDG|IVC|DLV|EVN|SGN|ERR|LOG|APS)[a-z0-9]{15}$. Example: ORG8hfaw8hfpwhjf94.

AuditFieldChange

FieldTypeRequiredDescription
beforeanyyesThe value before the change, or null when the field was new.
afteranyyesThe value after the change, or null when the field was removed.

AuditActor

A User who acted in the page.

FieldTypeRequiredDescription
idUserIdyesUser ID.
emailEmailyesAn email address. Compared case-insensitively, and returned in lower case.

Email

An email address. Compared case-insensitively, and returned in lower case.

Type: string (email). At most 254 characters. Example: jason@northgate.example.

Problem

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

FieldTypeRequiredDescription
typestring (uri-reference)yesA URI identifying the problem type. about:blank when code says enough. Example: about:blank.
titlestringyesA short, human-readable summary of the problem type. Example: Not found.
statusintegeryesThe HTTP status code. 400 to 599. Example: 404.
codestringyesA 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.
detailstringnoA human-readable explanation of this occurrence.
instancestring (uri-reference)noThe request path that produced the problem.
request_idstringyesLinks the problem to the request logs and any audit event.
started_byUplinkSessionStarternochannel_in_use only: who started the Channel's active Uplink session.
reasonstringnosession_ended only: idle (unused past its window) or signed_out (by another session, e.g. after a password change). One of idle, signed_out.
errorsarray of ProblemFieldErrornoOne entry per invalid field, for invalid_request and invalid_id.
retry_after_secondsintegernorate_limited only: how long to wait before trying again, in seconds. At least 0.

UplinkSessionStarter

Who pressed Start.

FieldTypeRequiredDescription
user_idUserIdyesUser ID.
namestringyesHow to show them. Their email, until Users have names. Example: mike@northgate.example.

ProblemFieldError

FieldTypeRequiredDescription
pointerstringnoA JSON Pointer into the request body, e.g. /first_admin_email.
parameterstringnoThe name of the path, query or header parameter, e.g. organisation_id.
detailstringyesWhat is wrong with the field.

AuditEventPage

FieldTypeRequiredDescription
itemsarray of AuditEventyes
next_cursorstring | nullyesAn opaque cursor for the next page, or null on the last page.