import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const recordingResponseData of client.recordings.list()) {
console.log(recordingResponseData.id);
}{
"data": [
{
"call_control_id": "v3:e-31OnvjEM7Y4wvxr3TKNk8M3QyLcGZPiUIzCGtwQtOtEjY-B0urkw",
"call_leg_id": "84a97d76-e40f-11ed-9074-02420a0daa69",
"call_session_id": "84a97d76-e40f-11ed-9074-02420a0daa69",
"channels": "dual",
"conference_id": "84a97d76-e40f-11ed-9074-02420a0daa69",
"created_at": "2018-02-02T22:25:27.521Z",
"download_urls": {
"mp3": "<string>",
"wav": "<string>"
},
"duration_millis": 60000,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"record_type": "recording",
"recording_started_at": "2019-01-23T18:10:02.574Z",
"recording_ended_at": "2019-01-23T18:10:02.574Z",
"source": "conference",
"status": "completed",
"updated_at": "2018-02-02T22:25:27.521Z"
}
],
"meta": {
"total_pages": 3,
"page_number": 2,
"total_results": 55,
"page_size": 25
}
}Returns a list of your call recordings.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const recordingResponseData of client.recordings.list()) {
console.log(recordingResponseData.id);
}{
"data": [
{
"call_control_id": "v3:e-31OnvjEM7Y4wvxr3TKNk8M3QyLcGZPiUIzCGtwQtOtEjY-B0urkw",
"call_leg_id": "84a97d76-e40f-11ed-9074-02420a0daa69",
"call_session_id": "84a97d76-e40f-11ed-9074-02420a0daa69",
"channels": "dual",
"conference_id": "84a97d76-e40f-11ed-9074-02420a0daa69",
"created_at": "2018-02-02T22:25:27.521Z",
"download_urls": {
"mp3": "<string>",
"wav": "<string>"
},
"duration_millis": 60000,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"record_type": "recording",
"recording_started_at": "2019-01-23T18:10:02.574Z",
"recording_ended_at": "2019-01-23T18:10:02.574Z",
"source": "conference",
"status": "completed",
"updated_at": "2018-02-02T22:25:27.521Z"
}
],
"meta": {
"total_pages": 3,
"page_number": 2,
"total_results": 55,
"page_size": 25
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Consolidated filter parameter (deepObject style). Originally: filter[conference_id], filter[created_at][gte], filter[created_at][lte], filter[call_leg_id], filter[call_session_id], filter[from], filter[to], filter[connection_id], filter[sip_call_id]
Show child attributes
Returns only recordings associated with a given conference.
"428c31b6-7af4-4bcb-b7f5-5013ef9657c1"
If present, recordings will be filtered to those with a matching call_leg_id.
"428c31b6-7af4-4bcb-b7f5-5013ef9657c1"
If present, recordings will be filtered to those with a matching call_session_id.
"428c31b6-7af4-4bcb-b7f5-5013ef9657c1"
If present, recordings will be filtered to those with a matching from attribute (case-sensitive).
"1234567890"
If present, recordings will be filtered to those with a matching to attribute (case-sensitive).
"1234567890"
If present, recordings will be filtered to those with a matching connection_id attribute (case-sensitive).
"175237942907135762"
If present, recordings will be filtered to those with a matching sip_call_id attribute. Matching is case-sensitive
"428c31b6-7af4-4bcb-b7f5-5013ef9657c1"
A response containing multiple recordings.
Show child attributes
Unique identifier and token for controlling the call.
"v3:e-31OnvjEM7Y4wvxr3TKNk8M3QyLcGZPiUIzCGtwQtOtEjY-B0urkw"
ID unique to the call leg (used to correlate webhook events).
"84a97d76-e40f-11ed-9074-02420a0daa69"
ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call.
"84a97d76-e40f-11ed-9074-02420a0daa69"
When dual, the final audio file has the first leg on channel A, and the rest on channel B.
single, dual "dual"
Uniquely identifies the conference.
"84a97d76-e40f-11ed-9074-02420a0daa69"
ISO 8601 formatted date indicating when the resource was created.
"2018-02-02T22:25:27.521Z"
The duration of the recording in milliseconds.
60000
Uniquely identifies the recording.
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
recording "recording"
ISO 8601 formatted date of when the recording started.
"2019-01-23T18:10:02.574Z"
ISO 8601 formatted date of when the recording ended.
"2019-01-23T18:10:02.574Z"
The kind of event that led to this recording being created.
conference, call "conference"
The status of the recording. Only completed recordings are currently supported.
completed "completed"
ISO 8601 formatted date indicating when the resource was updated.
"2018-02-02T22:25:27.521Z"
Was this page helpful?