import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const voices = await client.legacy.reporting.batchDetailRecords.voice.list();
console.log(voices.data);{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"start_time": "2024-02-01T00:00:00Z",
"end_time": "2024-02-12T23:59:59Z",
"call_types": [
123
],
"record_types": [
1,
2
],
"connections": [
123,
456
],
"report_name": "My Report",
"status": 1,
"report_url": "<string>",
"filters": [
{
"filter_type": "and",
"cli": "+13129457420",
"cli_filter": "contains",
"cld": "+13129457420",
"cld_filter": "contains",
"tags_list": "tag1",
"billing_group": "adfaa016-f921-4b6c-97bb-e4c1dad231c5"
}
],
"created_at": "2024-02-12T14:00:00Z",
"updated_at": "2024-02-12T14:05:00Z",
"timezone": "<string>",
"source": "<string>",
"retry": 123,
"managed_accounts": [
"f47ac10b-58cc-4372-a567-0e02b2c3d479",
"6ba7b810-9dad-11d1-80b4-00c04fd430c8"
],
"record_type": "cdr_detailed_report"
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}Retrieves all CDR report requests for the authenticated user
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const voices = await client.legacy.reporting.batchDetailRecords.voice.list();
console.log(voices.data);{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"start_time": "2024-02-01T00:00:00Z",
"end_time": "2024-02-12T23:59:59Z",
"call_types": [
123
],
"record_types": [
1,
2
],
"connections": [
123,
456
],
"report_name": "My Report",
"status": 1,
"report_url": "<string>",
"filters": [
{
"filter_type": "and",
"cli": "+13129457420",
"cli_filter": "contains",
"cld": "+13129457420",
"cld_filter": "contains",
"tags_list": "tag1",
"billing_group": "adfaa016-f921-4b6c-97bb-e4c1dad231c5"
}
],
"created_at": "2024-02-12T14:00:00Z",
"updated_at": "2024-02-12T14:05:00Z",
"timezone": "<string>",
"source": "<string>",
"retry": 123,
"managed_accounts": [
"f47ac10b-58cc-4372-a567-0e02b2c3d479",
"6ba7b810-9dad-11d1-80b4-00c04fd430c8"
],
"record_type": "cdr_detailed_report"
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
CDR report requests retrieved successfully
Show child attributes
Unique identifier for the report
"123e4567-e89b-12d3-a456-426614174000"
Start time in ISO format
"2024-02-01T00:00:00Z"
End time in ISO format
"2024-02-12T23:59:59Z"
List of call types (Inbound = 1, Outbound = 2)
Call type value
List of record types (Complete = 1, Incomplete = 2, Errors = 3)
Record type value
[1, 2]List of connections
List of connections
[123, 456]Name of the report
"My Report"
Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
1
URL to download the report
List of filters
Show child attributes
Logical operator for combining filters
and, or Calling line identification (caller ID)
"+13129457420"
Filter type for CLI matching
contains, starts_with, ends_with Called line identification (destination number)
"+13129457420"
Filter type for CLD matching
contains, starts_with, ends_with Tag name to filter by
"tag1"
Billing group UUID to filter by
"adfaa016-f921-4b6c-97bb-e4c1dad231c5"
Creation date of the report
"2024-02-12T14:00:00Z"
Last update date of the report
"2024-02-12T14:05:00Z"
Timezone for the report
Source of the report. Valid values: calls (default), call-control, fax-api, webrtc
Number of retries
List of managed accounts
[
"f47ac10b-58cc-4372-a567-0e02b2c3d479",
"6ba7b810-9dad-11d1-80b4-00c04fd430c8"
]"cdr_detailed_report"
Was this page helpful?