Lists all LiveKit rooms belonging to the authenticated client.
Rooms are filtered by metadata.auth_id for tenant isolation.
state - Shared application state containing LiveKit configurationauth - Authentication context from middlewareResponse - JSON response with rooms list or error statusauth.id is present: Returns only rooms where metadata.auth_id == auth.idauth.id is absent: Returns all rooms (backward-compatible mode)metadata.auth_id for tenant isolation.
| Mode | Behavior |
|---|---|
Authenticated (auth.id present) | Returns only rooms where metadata.auth_id matches your tenant ID. |
Unauthenticated (auth.id absent) | Returns all rooms (backward-compatible mode). |
{ rooms: [...] } with each room containing:
name - The room name (clean, no prefixes)num_participants - Current participant countcreation_time - Unix timestamp when the room was createdJWT token obtained from the authentication service. Required when AUTH_REQUIRED is enabled.
Rooms listed successfully
Response containing the list of LiveKit rooms
{
"rooms": [
{
"name": "room-1",
"num_participants": 2,
"creation_time": 1703123456
},
{
"name": "room-2",
"num_participants": 0,
"creation_time": 1703123789
}
]
}List of rooms belonging to the authenticated client (filtered by metadata.auth_id)