Skip to main content

Fetch Past Rooms Information

Endpoint: /room/fetchPastRooms

This endpoint allows you to retrieve historical information about room sessions that have already concluded. After a session ends—either when the last participant leaves or when terminated via the end API—its metadata is stored and can be accessed using this API.

This is particularly useful for building features that require a history of past meetings, such as displaying a list of previous sessions in your application's user interface. You can query for one or more room_ids to get details like when the session was created, when it ended, and how many participants joined.

Request Parameters

FieldTypeRequiredDescription
room_idsarrayYesArray of room IDs to query.
fromnumberNoStarting index for records. Default is 0.
limitnumberNoMaximum number of records to return. Default is 20.
order_bystringNoSort order: DESC or ASC. Default is DESC.

Example Request:

{
"room_ids": ["room01"],
"from": 0,
"limit": 20,
"order_by": "DESC"
}

Response

FieldTypePositionDescription
statusbooleanrootIndicates if the request was successful.
msgstringrootResponse message.
status_codestringrootResponse status code.
resultobjectrootContains the results data.

Result

FieldTypeDescription
total_roomsnumberTotal number of rooms found for the query.
fromnumberStarting index for the returned records.
limitnumberNumber of records returned.
order_bystringSort order used for the records.
rooms_listArray<Past Room Info>List of past room records.

Past Room Info

FieldTypeDescription
room_titlestringTitle of the room.
room_idstringUnique identifier for the room.
room_sidstringSID of the room.
joined_participantsnumberNumber of participants who joined (may not be exact; use analytics for detailed information).
webhook_urlstringWebhook URL associated with the room.
createdstringRoom creation time.
endedstringRoom end time.
analytics_file_idstringAnalytics file identifier, if available.