List rooms
List rooms in the key's environment.
GET
/v1/roomsOn this page
Requirements
A secret API key with rooms:read. Resources are restricted to the key's project and environment.
Query parameters
| Name | Type | Required / default | Description |
|---|---|---|---|
| cursor | string | Optional | Opaque endCursor from the previous page. |
| limit | integer | 50 | From 1 to 100. |
| status | string | Optional | created, active, ending, ended or failed. |
| search | string | Optional | Trimmed, at most 120 characters. Case-insensitive substring match against room name or ID. |
| joinable | true or false | Optional | true restricts results to created or active rooms. false applies no additional status filter. |
Send boolean query values as joinable=true or joinable=false. Filters combine with each other: status=ended&joinable=true returns no matching rooms. Joinable filters lifecycle state; it does not guarantee spare participant capacity.
Example
Set RELAYRTC_API_URL to your API base including /v1, such as http://localhost:8080/v1.
curl -X GET "$RELAYRTC_API_URL/rooms?limit=20&status=active" \
-H "Authorization: Bearer $RELAYRTC_SECRET_KEY"Response
200 with nodes: Room[] and pageInfo.
{
"nodes": [],
"pageInfo": {
"endCursor": null,
"hasNextPage": false
}
}Errors
Invalid fields return 400. Invalid credentials return 401; a missing scope returns 403. A missing resource returns 404. See error responses.