Room API
Room lifecycle, join/leave, moderation, and recording management.
Room lifecycle
A room moves through four statuses:
| status | meaning |
|---|---|
created | created, never joined |
active | at least one participant is connected |
idle | it was active and the last participant has left |
closed | terminal; the room is soft-deleted and cannot be joined |
Joining an idle room returns it to active.
Rooms close automatically after an inactivity window (24h by default,
set per deployment via ROOM_IDLE_TTL; the hosted platform uses 10 minutes). A background reaper closes:
idlerooms that have been empty for the whole window, withclose_reason: idle_timeout;createdrooms that were never joined and are older than the window, withclose_reason: abandoned.
Both emit a room.closed event. Closing frees the room's slug for reuse
within the tenant — an abandoned room would otherwise hold its slug
indefinitely. A closed room's media session is also torn down at the SFU,
so any lingering participant is disconnected.
A participant must reach the media within two minutes of joining
(ROOM_SESSION_MEDIA_GRACE). POST /v1/rooms/{id}/join opens a session;
the session normally ends when the participant leaves the media. A client
that joins but never connects media — a closed tab, a network that blocks
the media ports, a script — is ended by the reaper with
leave_reason: media_absent and a duration of zero, so it is not billed
and does not keep the room active or count it against the room limit.
Plan limits
Each organization's plan caps how many rooms it may have open at once
(created, active and idle all count) and how many people one room
may hold. When a limit is reached the request is refused with 409 and a
LimitError body; the organization's admins are emailed, at most once per
limit per day. What the end user sees is up to you: branch on
error.code and error.details, never on the message text.
error.code | returned by | details.reason |
|---|---|---|
tenant_room_limit | POST /v1/rooms | plan_limit or room_limit |
room_full | POST /v1/rooms/{id}/join | plan_limit or room_limit |
plan_limit means the organization's plan is the ceiling (closing rooms
or upgrading the plan helps); room_limit means a fixed platform ceiling
or the room's own max_participants.
A max_participants above the plan's per-room limit is not refused: the
room is created at the plan's size, and the 201 body carries the
effective value.
Authentication
- HTTP: Bearer Auth
Security Scheme Type: | http |
|---|---|
HTTP Authorization Scheme: | bearer |
Bearer format: | JWT |