REST endpoints
LiveKit rooms
Lists all LiveKit rooms belonging to the authenticated client.
Rooms are filtered by metadata.auth_id for tenant isolation.
Arguments
state- Shared application state containing LiveKit configurationauth- Authentication context from middleware
Returns
Response- JSON response with rooms list or error status
Filtering
- When
auth.idis present: Returns only rooms wheremetadata.auth_id == auth.id - When
auth.idis absent: Returns all rooms (backward-compatible mode)
Errors
- 500 Internal Server Error - LiveKit service not configured or API call failed
GET
Handler for GET /livekit/rooms endpoint
Lists all LiveKit rooms belonging to the authenticated tenant. Rooms are filtered by
metadata.auth_id for tenant isolation.
Filtering behavior
This endpoint may return fewer rooms than exist in LiveKit when authentication is enabled. Each tenant only sees their own rooms.
Response
Returns{ rooms: [...] } with each room containing:
name- The room name (clean, no prefixes)num_participants- Current participant countcreation_time- Unix timestamp when the room was created
Authorizations
Authentication token for protected endpoints. Can be provided as Authorization: Bearer <token> or ?api_key=<token>. Required when AUTH_REQUIRED is enabled.
Response
Rooms listed successfully
Response containing the list of LiveKit rooms
Example
List of rooms belonging to the authenticated client (filtered by metadata.auth_id)