RelayrtcDocs
Get started
Documentation
REST API v1

List rooms

List rooms in the key's environment.

GET/v1/rooms
On this page

Requirements

A secret API key with rooms:read. Resources are restricted to the key's project and environment.

Query parameters

NameTypeRequired / defaultDescription
cursorstringOptionalOpaque endCursor from the previous page.
limitinteger50From 1 to 100.
statusstringOptionalcreated, active, ending, ended or failed.
searchstringOptionalTrimmed, at most 120 characters. Case-insensitive substring match against room name or ID.
joinabletrue or falseOptionaltrue 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.

Shell
curl -X GET "$RELAYRTC_API_URL/rooms?limit=20&status=active" \
  -H "Authorization: Bearer $RELAYRTC_SECRET_KEY"

Response

200 with nodes: Room[] and pageInfo.

JSON
{
  "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.