Get Active Room Information
Endpoint: /room/getActiveRoomInfo
This endpoint retrieves detailed, real-time information about a specific active room. While isRoomActive simply tells you if a room is running, this API provides a comprehensive snapshot of the session, including its current state, a list of all participants, and their individual details.
This is useful for building administrative dashboards or moderation tools where you need to monitor live meetings. You can see who is in the room, when they joined, and other metadata associated with both the room and the participants.
Request Parameters
| Field | Type | Position | Required | Description |
|---|
| room_id | string | root | Yes | The unique ID of the room. |
Example Request:
Response
| Field | Type | Position | Description |
|---|
| status | boolean | root | Indicates if the request was successful. |
| msg | string | root | Response message. |
| status_code | string | root | Response status code. |
| room | object<Room> | root | Contains room details. |
| msg_key | string | root | Optional machine-readable key for the response message, useful for localizing msg. |
Room
| Field | Type | Description |
|---|
| room_info | object<Room Info> | Details about the room. |
| participants_info | array<Participant Info> | List of current participants. |
| breakout_rooms | array<Room> | Nested breakout rooms of this room. A breakout room has the same structure, including its own breakout_rooms, so the tree can be nested. |
Room Info
| Field | Type | Description |
|---|
| room_title | string | Title of the meeting. |
| room_id | string | Unique room ID. |
| sid | string | Room unique session ID. |
| joined_participants | number | Total number of users who have joined. |
| is_running | number | 1 if the room is currently active, 0 otherwise. |
| is_recording | number | 1 if recording is in progress, 0 otherwise. |
| is_active_rtmp | number | 1 if RTMP streaming is active, 0 otherwise. |
| is_breakout_room | number | 1 if this room is a breakout room, 0 otherwise. |
| parent_room_id | string | ID of the parent room when this is a breakout room; empty otherwise. |
| creation_time | number | Room creation time (Unix timestamp). |
| metadata | string | Room metadata. |
| webhook_url | string | Webhook URL associated with the room. |
Participant Info
| Field | Type | Description |
|---|
| sid | string | Participant unique session ID. |
| identity | string | Participant user ID. |
| name | string | Participant name. |
| state | string | Participant state. |
| metadata | string | Participant metadata. |
| joined_at | number | Time the participant joined (Unix timestamp). |
| version | number | Version information. |