Returns detailed information about a specific LiveKit room including
all current participants. Access is authorized via metadata.auth_id check.
state - Shared application state containing LiveKit configurationauth - Authentication context from middlewareroom_name - Name of the room to retrieve (from path parameter)Response - JSON response with room details or error statusauth.id is present: Requires room.metadata.auth_id == auth.idauth.id is absent: Access is allowed (backward-compatible mode)metadata.auth_id check.
| Mode | Behavior |
|---|---|
Authenticated (auth.id present) | Requires room.metadata.auth_id == auth.id. |
Unauthenticated (auth.id absent) | Access is allowed (backward-compatible mode). |
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| 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. |
JWT token obtained from the authentication service. Required when AUTH_REQUIRED is enabled.
Name of the room to retrieve
Room details retrieved successfully
Detailed information about a LiveKit room including participants
{
"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"