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. |
Room
| Field | Type | Description |
|---|
| room_info | object<Room Info> | Details about the room. |
| participants_info | array<Participant Info> | List of current participants. |
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 | boolean | Indicates if the room is currently active. |
| is_recording | boolean | Indicates if recording is in progress. |
| is_active_rtmp | boolean | Indicates if RTMP streaming is active. |
| 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. |