Check out our upcoming events and meetups! View events →
Creates a new CDR report request with the specified filters
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const voice = await client.legacy.reporting.batchDetailRecords.voice.create({
end_time: '2024-02-12T23:59:59Z',
start_time: '2024-02-01T00:00:00Z',
});
console.log(voice.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"
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
CDR detailed report request data
Request object for CDR detailed report
Start time in ISO format
"2024-02-01T00:00:00Z"
End time in ISO format
"2024-02-12T23:59:59Z"
Timezone for the report
"UTC"
List of call types to filter by (Inbound = 1, Outbound = 2)
[1, 2]List of record types to filter by (Complete = 1, Incomplete = 2, Errors = 3)
[1, 2]List of connections to filter by
[123, 456]Name of the report
"My CDR Report"
Source of the report. Valid values: calls (default), call-control, fax-api, webrtc
"calls"
Whether to include all metadata
true
List of filters to apply
Show child attributes
Set of fields to include in the report
["call_leg_id", "start_time", "end_time"]List of managed accounts to include
[
"f47ac10b-58cc-4372-a567-0e02b2c3d479",
"6ba7b810-9dad-11d1-80b4-00c04fd430c8"
]Whether to select all managed accounts
false
CDR report request created successfully
Response object for CDR detailed report
Show child attributes
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const voice = await client.legacy.reporting.batchDetailRecords.voice.create({
end_time: '2024-02-12T23:59:59Z',
start_time: '2024-02-01T00:00:00Z',
});
console.log(voice.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"
}
}