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
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
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
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"