# Me

The signed-in User.

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

## Get the signed-in User

`GET /v1/me`

The signed-in User, whether they are the Platform admin, their Memberships, and their sign-in session, with the date it can't be renewed past (`session.expires_at`).

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

### Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | The signed-in User. | `Me` (`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`) |

## Sign out

`POST /v1/me/sign-out`

Ends the caller's own sign-in session for good: every token it gives, refreshed or not, is refused from then on with 401 `session_ended` (reason `signed_out`), ticket renewals included. The User's other sessions carry on, and signing in again starts a new one. The app calls it when the User signs out, before it drops its refresh token. Records one `sign_in_session.signed_out` audit event; a caller with no sign-in session (an API key) changes nothing.

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

### Responses

| Status | Description | Body |
| --- | --- | --- |
| 204 | Nothing: 204. |  |
| 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`) |

## Sign out every other session

`POST /v1/me/sign-out-others`

Ends every other sign-in session of the signed-in User, on every device and the Console, at once: their next request is refused with 401 `session_ended`, ticket renewals included. The caller's own session carries on. The app calls it after the User changes or resets their password. Records one `user.signed_out_others` audit event.

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

### Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | When the other sessions were signed out. | `SignedOutOthers` (`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`) |

## Schemas

### Me

The signed-in User, and what they can reach.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `user` | `User` | yes |  |
| `is_platform_admin` | `boolean` | yes | Celerbeam staff who can see and act inside any Organisation. |
| `memberships` | `array of MembershipSummary` | yes |  |
| `session` | `SignInSession \| null` | yes | The caller's sign-in session; `null` for credentials that have none. |

### User

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `UserId` | yes | User ID. |
| `email` | `Email` | yes | An email address. Compared case-insensitively, and returned in lower case. |
| `created_at` | `Timestamp` | yes | UTC, with milliseconds and a `Z` suffix. |

### UserId

User ID.

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

### Email

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

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

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

### MembershipSummary

One of the caller's Memberships, active or deactivated, with enough of its Organisation to show a switcher.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `MembershipId` | yes | Membership ID. |
| `organisation_id` | `OrganisationId` | yes | Organisation ID. |
| `organisation_name` | `string` | yes |  |
| `role` | `Role` | yes | What a User can do in one Organisation. |
| `status` | `string` | yes | Deactivated: the Membership gives no access until an Admin reactivates it. The app still lists it, with a badge, and shows "Deactivated in <Organisation>". One of `active`, `deactivated`. |

### MembershipId

Membership ID.

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

### OrganisationId

Organisation ID.

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

### Role

What a User can do in one Organisation.

Type: `string`. One of `viewer`, `member`, `admin`.

### SignInSession

One sign-in on the app or the Console, kept alive while it is used.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `SignInSessionId` | yes | Sign-in session ID. |
| `client` | `string` | yes | Where they signed in. The session lives while it is used at least once every 30 days in the app, or every 7 in the Console. One of `app`, `console`. |
| `signed_in_at` | `Timestamp` | yes | UTC, with milliseconds and a `Z` suffix. |
| `expires_at` | `Timestamp` | yes | The cap, a year after signing in: the session can never be renewed past it, however much it is used. Ask the User to sign in again before it (the app does two weeks before, on a screen where they are not watching). |

### SignInSessionId

Sign-in session ID.

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

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

### SignedOutOthers

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `signed_out_at` | `Timestamp` | yes | Every other sign-in session that signed in at or before this is refused from now on (401 `session_ended`). |
