Skip to main content

Fetch Recordings

Endpoint: /recording/fetch

This endpoint allows you to retrieve a paginated list of available recordings. Recordings are generated when a room session is recorded and are stored on the server after the session ends.

This API is essential for building a user-facing recording library where users can browse, view, and manage their past recordings. You can filter recordings by room_id or a specific room sid to narrow down the results, making it easy to display relevant content to your users.

Request Parameters​

FieldTypeRequiredDescription
room_idsarrayYesArray of room IDs to fetch recordings for.
room_sidstringNoFilter recordings from a specific room session by providing its sid.
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 recordings data.

Result​

FieldTypeDescription
total_recordingsnumberTotal number of recordings found.
fromnumberStarting index for the returned records.
limitnumberNumber of records returned.
order_bystringSort order used for the records.
recordings_listArray<Recording Info>List of recording records.

Recording Info​

FieldTypeDescription
record_idstringUnique identifier for the recording.
room_idstringID of the room associated with the recording.
room_sidstringSID of the room.
file_pathstringPath to the recording file.
file_sizenumberSize of the recording file in bytes.
creation_timenumberRecording creation time (Unix timestamp).
room_creation_timenumberRoom creation time (Unix timestamp).
metadataRecordingMetadataMetadata associated with the recording.

RecordingMetadata Object​

FieldTypeDescription
titlestringThe title of the recording.
descriptionstringThe description of the recording.
subtitlesmap RecordingSubtitleA map of language codes to subtitle objects. e.g. {"en": {"url": "..."}}
extra_datamapA map of extra data stored with the recording. e.g. {"key": "value"}

RecordingSubtitle Object​

FieldTypeDescription
labelstringThe label for the subtitle.
urlstringThe URL of the subtitle file.