import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const roomRecordings = await client.roomRecordings.list();
console.log(roomRecordings.data);{
"data": [
{
"id": "6b61621f-62e0-4aad-ab11-9fd19e272e73",
"room_id": "7b61621f-5fe4-4aad-ab11-9fd19e272e73",
"session_id": "8b61621f-5fe4-4aad-ab11-9fd19e272e73",
"participant_id": "9b61621f-5fe4-4aad-ab11-9fd19e272e73",
"status": "completed",
"download_url": "https://www.example.com",
"type": "audio",
"duration_secs": 3660,
"size_mb": 5.6,
"codec": "opus",
"created_at": "2021-04-16T09:46:20.954863Z",
"updated_at": "2021-04-16T10:24:55.962200Z",
"started_at": "2021-04-16T09:24:55.962200Z",
"ended_at": "2021-04-16T10:24:55.962200Z",
"completed_at": "2021-04-16T10:25:55.962200Z",
"record_type": "room_session"
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const roomRecordings = await client.roomRecordings.list();
console.log(roomRecordings.data);{
"data": [
{
"id": "6b61621f-62e0-4aad-ab11-9fd19e272e73",
"room_id": "7b61621f-5fe4-4aad-ab11-9fd19e272e73",
"session_id": "8b61621f-5fe4-4aad-ab11-9fd19e272e73",
"participant_id": "9b61621f-5fe4-4aad-ab11-9fd19e272e73",
"status": "completed",
"download_url": "https://www.example.com",
"type": "audio",
"duration_secs": 3660,
"size_mb": 5.6,
"codec": "opus",
"created_at": "2021-04-16T09:46:20.954863Z",
"updated_at": "2021-04-16T10:24:55.962200Z",
"started_at": "2021-04-16T09:24:55.962200Z",
"ended_at": "2021-04-16T10:24:55.962200Z",
"completed_at": "2021-04-16T10:25:55.962200Z",
"record_type": "room_session"
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Consolidated filter parameter (deepObject style). Originally: filter[date_ended_at][eq], filter[date_ended_at][gte], filter[date_ended_at][lte], filter[date_started_at][eq], filter[date_started_at][gte], filter[date_started_at][lte], filter[room_id], filter[participant_id], filter[session_id], filter[status], filter[type], filter[duration_secs]
Show child attributes
Show child attributes
ISO 8601 date for filtering room recordings ended on that date.
"2021-04-25"
ISO 8601 date for filtering room recordings ended on or after that date.
"2021-04-25"
ISO 8601 date for filtering room recordings ended on or before that date.
"2021-04-25"
Show child attributes
ISO 8601 date for filtering room recordings started on that date.
"2021-04-25"
ISO 8601 date for filtering room recordings started on or after that date.
"2021-04-25"
ISO 8601 date for filtering room recordings started on or before that date.
"2021-04-25"
room_id for filtering room recordings.
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"
participant_id for filtering room recordings.
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"
session_id for filtering room recordings.
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"
status for filtering room recordings.
"completed"
type for filtering room recordings.
"audio"
duration_secs greater or equal for filtering room recordings.
20
List room recordings response.
Show child attributes
A unique identifier for the room recording.
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"
Identify the room associated with the room recording.
"0ccc7b54-4df3-4bca-a65a-3da1ecc777b0"
Identify the room session associated with the room recording.
"0ccc7b54-4df3-4bca-a65a-3da1ecc777b0"
Identify the room participant associated with the room recording.
"0ccc7b54-4df3-4bca-a65a-3da1ecc777b0"
Shows the room recording status.
completed, processing "completed"
Shows the room recording type.
audio, video "audio"
Shows the room recording size in MB.
10.5
Url to download the recording.
"https://www.example.com"
Shows the codec used for the room recording.
"opus"
Shows the room recording duration in seconds.
67
ISO 8601 timestamp when the room recording was created.
"2021-03-26T17:51:59.588408Z"
ISO 8601 timestamp when the room recording was updated.
"2021-03-26T17:51:59.588408Z"
ISO 8601 timestamp when the room recording has ended.
"2021-03-26T17:51:59.588408Z"
ISO 8601 timestamp when the room recording has stated.
"2021-03-26T17:51:59.588408Z"
ISO 8601 timestamp when the room recording has completed.
"2021-03-26T17:51:59.588408Z"
"room_recording"
Was this page helpful?