livekit
Handler for GET /livekit/rooms endpoint
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 configuration
- auth - Authentication context from middleware
Returns
- Response - JSON response with rooms list or error status
Filtering
- When auth.id is present: Returns only rooms where metadata.auth_id == auth.id
- When auth.id is absent: Returns all rooms (backward-compatible mode)
Errors
- 500 Internal Server Error - LiveKit service not configured or API call failed
get/livekit/rooms
Response
Rooms listed successfully
Example response
{
"rooms": [
{
"creation_time": 1703123456,
"name": "conversation-room-123",
"num_participants": 2
}
]
}Changes
Changed in 3 of the 13 revisions of this API.13
- ○
the endpoint scheme security
authwas added to the APIapi-security-added
- ○
the endpoint scheme security
bearer_authwas removed from the APIapi-security-removed
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 29 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲