Skip to main content
GET
/
legacy
/
reporting
/
batch_detail_records
/
voice
/
fields
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const response = await client.legacy.reporting.batchDetailRecords.voice.retrieveFields();

console.log(response.Billing);
{
  "Interaction Data": [
    "origination_number",
    "terminating_number",
    "start_timestamp_utc",
    "start_timestamp",
    "answer_timestamp",
    "end_timestamp",
    "direction"
  ],
  "Number Information": [
    "origination_city",
    "origination_state",
    "origination_lata",
    "origination_country",
    "terminating_city",
    "terminating_state"
  ],
  "Telephony Data": [
    "route",
    "connection_id",
    "hangup_code",
    "pdd",
    "tags",
    "sip_call_id",
    "mos"
  ],
  "Billing": [
    "billable_time",
    "cost",
    "rate",
    "billing_group_id"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Available fields retrieved successfully

Available CDR report fields grouped by category

Interaction Data
string[]

Fields related to call interaction and basic call information

Example:
[
"origination_number",
"terminating_number",
"start_timestamp_utc",
"start_timestamp",
"answer_timestamp",
"end_timestamp",
"direction"
]
Number Information
string[]

Geographic and routing information for phone numbers

Example:
[
"origination_city",
"origination_state",
"origination_lata",
"origination_country",
"terminating_city",
"terminating_state"
]
Telephony Data
string[]

Technical telephony and call control information

Example:
[
"route",
"connection_id",
"hangup_code",
"pdd",
"tags",
"sip_call_id",
"mos"
]
Billing
string[]

Cost and billing related information

Example:
[
"billable_time",
"cost",
"rate",
"billing_group_id"
]