LiveKit room details
Returns detailed information about a specific LiveKit room including
all current participants. Access is authorized via metadata.auth_id check.
Arguments
state- Shared application state containing LiveKit configurationauth- Authentication context from middlewareroom_name- Name of the room to retrieve (from path parameter)
Returns
Response- JSON response with room details or error status
Authorization
- When
auth.idis present: Requiresroom.metadata.auth_id == auth.id - When
auth.idis absent: Access is allowed (backward-compatible mode)
Errors
- 404 Not Found - Room not found or access denied (masked as not found)
- 500 Internal Server Error - LiveKit service not configured or API call failed
metadata.auth_id check.
Authorization
| Mode | Behavior |
|---|---|
Authenticated (auth.id present) | Requires room.metadata.auth_id == auth.id. |
Unauthenticated (auth.id absent) | Access is allowed (backward-compatible mode). |
Response
Returns room details including:sid- Unique session ID (generated by LiveKit)name- The room namenum_participants- Current participant countmax_participants- Maximum allowed (0 = no limit)creation_time- Unix timestampmetadata- Room metadata (treat as opaque JSON)active_recording- Whether recording is activeparticipants- List of participants with identities, metadata, and state
Error responses
| Status | Condition |
|---|---|
404 Not Found | Room not found or access denied (masked for security). |
500 Internal Server Error | LiveKit not configured or API call failed. |
Authorizations
Authentication token for protected endpoints. Can be provided as Authorization: Bearer <token> or ?api_key=<token>. Required when AUTH_REQUIRED is enabled.
Path Parameters
Name of the room to retrieve
Response
Room details retrieved successfully
Detailed information about a LiveKit room including participants
Example
{
"sid": "RM_xyz789",
"name": "conversation-room-123",
"num_participants": 2,
"max_participants": 10,
"creation_time": 1703123456,
"metadata": "{\"auth_id\": \"tenant-123\"}",
"active_recording": false,
"participants": [...]
}Whether a recording is currently active
false
Room creation time (Unix timestamp in seconds)
1703123456
Maximum allowed participants (0 = no limit)
x >= 010
User-specified metadata for the room
""
The room name
"conversation-room-123"
Number of current participants in the room
x >= 02
List of participants currently in the room
Unique session ID for the room (generated by LiveKit)
"RM_xyz789"