# Support

The support timeline, merging the app's records with the relays' events, and release health per app version, for the Platform admin. See ADR 0020.

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

## Get release health

`GET /v1/support/release-health`

How each version of the app is doing, over a range of time (by default the last 30 days): its app sessions (one per run, sent as it starts), crash reports, crash-free sessions, installs and signed-in Users, error events and failed starts, and its top three crash signatures. Latest seen first, at most 50 versions. The Platform admin only. `platform` counts only that one. Ranges longer than 90 days count only what is still kept. 503 `unavailable` when the store can't be read. Reading it isn't audited; a refusal is, as `diagnostics.viewed`.

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

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `platform` | query | `DevicePlatform` | no | Count only this one. |
| `from` | query | `Timestamp` | no | Count from this time, inclusive. Default: 30 days ago. |
| `to` | query | `Timestamp` | no | Count until this time, exclusive. Default: now. |

### Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | Release health per app version. | `ReleaseHealth` (`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`) |
| 503 | Unavailable | `Problem` (`application/problem+json`) |

## List the support timeline

`GET /v1/support/timeline`

What happened, newest first: the app's error events, log uploads, crash reports and app sessions, merged with the relays' events (booted, degraded, recovered, missing, returned). The Platform admin only. `user_id` (or `email`), `organisation_id`, `broadcast_id`, `relay`, `app_version`, `os` and `device_id` narrow it, together; `kind` to one kind; `from` (inclusive) and `to` (exclusive) to a range of times. A User's timeline includes what their Devices sent before they signed in on them, marked `before_sign_in`, and every entry has its User's email beside the ID. Relay events are in it unless it is narrowed to something other than a relay; a relay that is missing now has a `missing` entry from when its heartbeats stopped. App sessions have no Broadcast or relay, so `broadcast_id` and `relay` leave them out. A page can hold fewer items than `limit` and still have a `next_cursor`. 503 `unavailable` when the store can't be read. Reading it isn't audited; a refusal is, as `diagnostics.viewed`.

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

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `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`. |
| `user_id` | query | `UserId` | no | Only this User's: sent while they were signed in, or before sign-in from a Device they registered. |
| `email` | query | `Email` | no | Only the User with this email, as `user_id`. No such User: nothing. |
| `organisation_id` | query | `OrganisationId` | no | Only those sent with this Organisation selected. |
| `broadcast_id` | query | `BroadcastId` | no | Only those sent while watching or sending it. |
| `relay` | query | `RelayName` | no | Only those sent while using this relay, and the relay's own events. |
| `app_version` | query | `AppVersion` | no | Only those from this version of the app. |
| `os` | query | `DeviceOs` | no | Only those from this OS. |
| `device_id` | query | `DeviceId` | no | Only this install's. |
| `kind` | query | `SupportTimelineKind` | no | Only this kind. |
| `from` | query | `Timestamp` | no | Only those at or after. |
| `to` | query | `Timestamp` | no | Only those before. |

### Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | One page of the timeline. | `SupportTimelinePage` (`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`) |
| 503 | Unavailable | `Problem` (`application/problem+json`) |

## Schemas

### DevicePlatform

The operating system family.

Type: `string`. One of `linux`, `windows`.

### 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`.

### ReleaseHealth

Release health: each version of the app, counted over a range of time.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `from` | `Timestamp` | yes | The range counted: from, inclusive. |
| `to` | `Timestamp` | yes | To, exclusive. |
| `versions` | `array of ReleaseHealthVersion` | yes | Every version with a record in the range, latest seen first; at most 50. |

### ReleaseHealthVersion

How one version of the app is doing.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `app_version` | `AppVersion` | yes | The app's version, as in `X-Celerbeam-Client`. |
| `sessions` | `integer` | yes | App sessions that started. |
| `crashes` | `integer` | yes | Crash reports. |
| `crash_free_sessions` | `number \| string \| null` | yes | The share of app sessions that ended without a crash, from 0 to 1: a crash ends its session, so it is 1 − crashes ÷ sessions, never below 0. `null` with no sessions. |
| `installs` | `integer` | yes | Installs (Devices) that started it. |
| `users` | `integer` | yes | Signed-in Users who started it. |
| `errors` | `integer` | yes | Error events at level `error`. |
| `startup_failures` | `integer` | yes | Error events from a failed start. |
| `first_seen` | `Timestamp` | yes | Its first record in the range. |
| `last_seen` | `Timestamp` | yes | Its latest record in the range. |
| `top_signatures` | `array of ReleaseSignature` | yes | Its most frequent crash signatures, at most 3, most crashes first. |

### AppVersion

The app's version, as in `X-Celerbeam-Client`.

Type: `string`. Pattern `^[0-9A-Za-z][0-9A-Za-z.+-]{0,63}$`. Example: `0.4.1`.

### ReleaseSignature

A crash signature, counted in one version of the app.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `signature` | `CrashSignatureKey` | yes | A crash signature: 16 hex digits naming every crash with the same stack (the top frames of the crashing thread, by function where known). |
| `title` | `string` | yes | The signature as text. |
| `crashes` | `integer` | yes | Its crashes in this version. |

### CrashSignatureKey

A crash signature: 16 hex digits naming every crash with the same stack (the top frames of the crashing thread, by function where known).

Type: `string`. Pattern `^[0-9a-f]{16}$`. Example: `3f9a1c0b7d2e4a65`.

### 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`. |

### UserId

User ID.

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

### 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. |

### Email

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

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

### OrganisationId

Organisation ID.

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

### BroadcastId

Broadcast ID.

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

### RelayName

A relay, by its name, until relays have `RLY` IDs.

Type: `string`. Pattern `^[a-z0-9][a-z0-9-]{0,63}$`. Example: `gb-lon-1`.

### DeviceOs

The operating system and its version, as the app reports it.

Type: `string`. 1 to 100 characters. Examples: `Ubuntu 24.04`, `Windows 11 23H2`.

### DeviceId

Device ID.

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

### SupportTimelineKind

What an entry is: an error event (`ERR`), a log upload (`LOG`), a crash report (`CRS`), an app session that started (`APS`), or a relay event.

Type: `string`. One of `error`, `log`, `crash`, `session`, `relay`.

### SupportTimelinePage

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | `array of SupportTimelineEntry` | 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. |

### SupportTimelineEntry

One thing that happened, in the support timeline.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `kind` | `SupportTimelineKind` | yes | What an entry is: an error event (`ERR`), a log upload (`LOG`), a crash report (`CRS`), an app session that started (`APS`), or a relay event. |
| `id` | `AnyId \| null` | yes | The record: an `ERR`, `LOG`, `CRS` or `APS` ID; `null` for a relay event. |
| `at` | `Timestamp` | yes | When the Backend received it; for a relay event, when it happened. The timeline's order. |
| `occurred_at` | `Timestamp` | yes | When it happened by the app's clock: the error, the crash, the log's last line or the start. A relay event's `at`, but for `missing`: its last heartbeat. |
| `device_id` | `DeviceId \| null` | yes | The install it came from; `null` for a relay event. |
| `user_id` | `UserId \| null` | yes | Whose it is: the User signed in, or for a record sent before sign-in, the User who later registered its Device. `null` when neither is known. |
| `user_email` | `string \| null` | yes | `user_id`'s email, as it is now. |
| `before_sign_in` | `boolean` | yes | Sent before anyone signed in on the install. |
| `organisation_id` | `OrganisationId \| null` | yes |  |
| `app_version` | `AppVersion \| null` | yes |  |
| `platform` | `DevicePlatform \| null` | yes |  |
| `os` | `DeviceOs \| null` | yes |  |
| `broadcast_id` | `BroadcastId \| null` | yes |  |
| `relay` | `RelayName \| null` | yes | The relay the app was using, or the relay a relay event is about. |
| `level` | `ErrorLevel \| null` | yes | An error event's level. |
| `component` | `DiagnosticComponent \| null` | yes | An error event's component. |
| `message` | `string \| null` | yes | An error event's message, redacted; a crash report's title. |
| `startup` | `boolean` | yes | An error event from a failed start. |
| `log_upload_id` | `LogUploadId \| null` | yes | The log sent with an error event. |
| `reason` | `LogReason \| null` | yes | A log upload's reason. |
| `line_count` | `integer \| null` | yes | A log upload's lines. |
| `signature` | `CrashSignatureKey \| null` | yes | A crash report's signature. |
| `crash_status` | `CrashReportStatus \| null` | yes |  |
| `relay_event` | `RelayEventKind \| null` | yes |  |
| `relay_version` | `string \| null` | yes | A relay event's relay build. |
| `problems` | `array of RelayProblem` | yes | What a `degraded` relay said stops it admitting. |

### 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`.

### ErrorLevel

How bad it was.

Type: `string`. One of `error`, `warning`.

### DiagnosticComponent

The part of the app it came from, as its logging category: lower case, digits and `_.-`.

Type: `string`. Pattern `^[a-z0-9][a-z0-9_.-]{0,63}$`. Examples: `media.decoder`, `api.session`.

### LogUploadId

Log upload ID.

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

### LogReason

Why the log was sent: `error` with an error event, `crash` with a crash report, `requested` by "Send logs".

Type: `string`. One of `error`, `crash`, `requested`.

### CrashReportStatus

How readable the stack is: `symbolised` when the crashing thread's frames in Celerbeam's own code have function names; `unsymbolised` when there were no symbols for its build, so frames are module and offset; `failed` when the dump couldn't be read.

Type: `string`. One of `symbolised`, `unsymbolised`, `failed`.

### RelayEventKind

What happened to a relay, from its heartbeats: `booted` (a new process started), `degraded` (it said what stops it admitting, or that changed), `recovered` (it can admit again), `missing` (no heartbeat for 30 seconds), `returned` (heartbeating again, the same process).

Type: `string`. One of `booted`, `degraded`, `recovered`, `missing`, `returned`.

### RelayProblem

What a relay says is wrong: `no_ticket_keys` (it can admit no one), `boot_replay_pending` (the Backend hasn’t finished replaying its controls since it started, so admission is closed).

Type: `string`. Pattern `^[a-z][a-z0-9_]{0,63}$`. Example: `boot_replay_pending`.
