01
Before you start
Paths are given in full, starting /apis/v1, unless a table says otherwise. Unless a route is marked as a public invite route, send a Ration bearer token (see Authentication):
Authorization: Bearer <ration_access_token>
Accept: application/jsonMeeting and call features need the Collaboration feature on the caller’s tenant.
02
Create or retrieve the media room
POST /apis/v1/call/rooms creates the media room for a meeting, or reuses the one it already has.
{ "chat_room_id": "meeting-room-id" }| Request field | Type | Required | Description |
|---|---|---|---|
chat_room_id | String | Yes | Existing Ration chat or meeting room ID. |
03
Media room response
The response returns room_id and a transport payload.
| Response field | Type | Description |
|---|---|---|
room_id | String | Media room identifier. Keep it for minting tokens. |
transport | String | ration_realtime for Ration’s current managed media transport. |
media | Object | Media credentials, described below. |
media.endpoint | String | Media endpoint. |
media.access_token | String | Short-lived media access credential. |
media.ice_servers | Array | STUN/TURN relay configuration. |
04
Mint a meeting token
GET|POST /apis/v1/call/tokens/:room_id/mint. The caller must be allowed to join the call. The server works out the role and media permissions from the meeting and the caller, so don’t try to send them in the request.
| Name | In | Type | Required | Description |
|---|---|---|---|---|
room_id | Path | String | Yes | Media room ID returned by POST /call/rooms. |
hd_video, hd | Query or body | Boolean | No | Request HD video when the tenant is entitled to it. Otherwise the response uses sd. |
video_quality | Query or body | String | No | hd, high, true or 1 also request HD video. |
05
Media transport response
- For Ration’s control-channel transport, the response has
room_id,transport,protocolandcontrol_token. 401 unauthorized: user context is missing.403 call_not_ready: the caller can’t join.409 room_full: the participant limit was reached.500 token_mint_failed: credentials couldn’t be generated.
| Field | Type | Description |
|---|---|---|
room_id | String | Media room ID. |
transport | String | ration_realtime. |
protocol | String | Control-channel protocol (call.v1). |
control_token | String | Credential for the meeting control channel. |
media.endpoint | String | Media endpoint. |
media.access_token | String | Short-lived media access credential. |
media.ice_servers | Array | STUN/TURN server configuration. |
media.video_profile | String | sd by default, or hd when explicitly requested and entitled. |
06
List live meetings
GET /apis/v1/meetings/live returns { "live": { "<chat_room_id>": <participant_count> } }. A room that isn’t in live isn’t active right now.
07
List recordings for a meeting
GET /apis/v1/chat/rooms/:id/recordings. The caller must belong to the room.
| Response field | Type | Description |
|---|---|---|
recordings | Array | Recording metadata. |
recordings[].recording_id | String | Recording identifier. |
recordings[].status | String | Current lifecycle status. |
recordings[].started_at, completed_at | String or null | Lifecycle timestamps. |
recordings[].duration_seconds, size_bytes | Number or null | Duration and size when known. |
recordings[].available | Boolean | true only once the recording is finalised and available. |
08
List your meeting recordings
GET /apis/v1/meetings/recordings returns { "recordings": [...] } across the meeting rooms the caller can see. Each entry includes recording_id, room_id, meeting_name, status, started_at, duration_seconds and available.
09
Manage guest invites
These authenticated routes create and manage guest access. Send meeting context (chat_room_id) or call context (call_id), as each operation needs.
| Method | Path | Request | Response |
|---|---|---|---|
POST | /apis/v1/call/external_invites | Guest details plus chat_room_id or call_id. | Invite with invite_url and invite_token. |
POST | /apis/v1/chat/rooms/:id/external_invites | Guest details for that room. | Invite with invite_url and invite_token. |
GET | /apis/v1/chat/rooms/:id/external_invites/chat_link | Optional external_party_id, reinitiate. | Existing or reinitiated guest link. |
GET | /apis/v1/chat/rooms/:id/external_invites/approvals | None. | { "requests": [...] }. |
POST | /apis/v1/chat/rooms/:id/external_invites/approvals/:request_id | action (or decision), optional reason, revoke. | { "request": {...} }. |
POST | /apis/v1/chat/rooms/:id/external_invites/domain_request | guest_email (or email). | { "domain": "…", "status": "…" }. |
POST | /apis/v1/call/:call_id/external/lock | Required locked Boolean. | { "call_id": "…", "locked": Boolean }. |
POST | /apis/v1/call/:call_id/external/participants/:guest_id/remove | Optional reason. | { "call_id": "…", "guest_id": "…", "removed": true }. |
Invite creation accepts guest identity fields such as guest_email, email, guest_name and name. Share the returned invite_url. When you give a guest email, Ration may also send the invitation email. The server enforces creator, member and room-type policy.
10
Public invite routes
These routes do not use a Ration bearer token. Access is controlled by the unguessable invite_token, short-lived session credentials, OTP verification, rate limits and server-side room policy. Paths in this table are relative to /apis/v1/call/external.
- OTP and claim attempts are rate-limited.
429means you hit the limit. - Common refusals are
403 invite_expired,invite_revoked,otp_requiredorapproval_required.
| Method | Path | Request | Successful response |
|---|---|---|---|
GET | /:invite_token/status | None. | Current safe invite status. |
POST | /:invite_token/otp | None. | { "status": "sent", "masked_email": "…", "expires_at": "…" }. |
POST | /:invite_token/claim | display_name/name; OTP as verification_code, verificationCode, otp or code. | Guest claim and session data. |
POST | /:invite_token/call_session | Guest chat token, optional OTP field and call_id; optional step_up. | Call session data. |
Never write a returned session or media token to logs.
11
Mint a guest media session
POST /apis/v1/call/external/session/mint
{ "session_token": "guest-session-token" }| Response field | Type | Description |
|---|---|---|
transport | String | ration_realtime. |
media.endpoint, media.access_token | String | Guest media credentials. |
media.ice_servers | Array | STUN/TURN configuration. |
media.video_profile | String | Selected media profile. |
room_name, guest_id, call_id | String | Guest call context. |
12
Public livestream guests
POST /apis/v1/call/external/:invite_token/livestream_join. display_name (or name) is required.
{ "display_name": "Guest", "email": "guest@example.com" }A successful response returns receive-only media credentials, room_name, guest_id, call_id, leave_token, session_token and chat_room_id.
13
Unlock livestream chat and ask-to-speak
Request an emailed OTP, then verify it. Paths are relative to /apis/v1/call/external. The verify response is shown after the steps.
POST /:invite_token/livestream_verify/requestwithsession_token.POST /:invite_token/livestream_verifywithsession_tokenandcode(orotp).
{ "status": "verified", "chat_token": "…", "chat_room_id": "…", "guest_id": "…", "guest_name": "…" }When the guest leaves, POST /apis/v1/call/external/session/leave with leave_token and an optional reason. Ration records the departure and returns { "status": "ok" }.
14
Errors
| Status | Meaning |
|---|---|
401 | An authenticated meeting route has no valid caller context. |
403 | The caller or guest isn’t allowed, the call isn’t ready, an invite has expired or been revoked, or an approval or step-up check is needed. |
404 | Call, room, guest, invite or approval request not found. |
409 | Call capacity reached, or an approval was already decided. |
422 | Missing or invalid fields, or the operation can’t be applied to the current call or room state. |
429 | OTP, claim or session-mint rate limit reached. |
Last reviewed 27 November 2026.