Skip to main content

Get Call Detail Record by SID

This request returns data for a call detail record, targeted by secure ID.

get /calls/call_drs/{dr_sid}

A sample GET request to get a Call Detail Record, targeted by secure ID:

curl -X GET \
'https://api.carrierx.com/core/v2/calls/call_drs/c02a73b2-8401-459a-af7e-f4cc3eee7854' \
-H 'Authorization: Bearer 5ebc03d6-8b2b-44ad-bf65-72d4f1491dda'

Response

200 status code with a serialized copy of the Call Detail Record object:

{
"cic": null,
"cic_original": null,
"cic_transformed": null,
"codec_dst": "g722",
"codec_src": "amrwb",
"date_insert": "2025-05-18T15:35:03.000Z",
"date_start": "2025-05-18T15:32:15.589Z",
"date_stop": "2025-05-18T15:32:19.839Z",
"date_talk": "2025-05-18T15:32:16.535Z",
"direction": "inbound",
"disconnect_originator": "DST",
"diversion_dst": "+15162065451",
"diversion_src": "+15162065451",
"dr_sid": "c02a73b2-8401-459a-af7e-f4cc3eee7854",
"duration": "4.25015",
"duration_billing": "60",
"endpoint_sid_dst": "1ce5a6da-7d72-448a-ab81-897fe24b8f02",
"endpoint_sid_src": "7fc3e7ea-a0df-4de1-836f-50318ed66466",
"identity": null,
"ip_dst": "10.222.2.197:5060",
"ip_src": "162.251.180.18",
"number_billing": "15162065451",
"number_dst": "15162065451",
"number_dst_original": null,
"number_dst_transformed": null,
"number_external": "15012678830",
"number_src": "+15012678830",
"number_src_original": null,
"number_src_transformed": null,
"partner_sid": "ed437757-002d-4ecc-aa5a-efdf5e50dba0",
"price": "0.0025",
"price_lcr_dst": "0.0025",
"price_lcr_src": null,
"rate": "0.0025",
"rate_lcr_dst": "0.005",
"rate_lcr_src": null,
"sipcallid_dst": "11b5b29c3486cac52a7d5baa52c937c9@12.7.193.174",
"sipcallid_src": "428ac5df4582bea66501f7d45199a18d@162.251.180.24",
"sipcause": "200",
"stir_attest" : "A",
"stir_identity" : "false",
"stir_orig_id" : "+15012678830",
"stir_signing_entity" : "carrierX",
"stir_verstat": null,
"transcoded": true,
"trunk_group_sid_dst": "cf7db13f-5c63-4c62-a447-fe3008cd72ef",
"trunk_group_sid_src": null,
"trunk_sid_dst": "7098d9f8-c8f2-400f-a31a-61ef7755985c",
"trunk_sid_src": null,
"type": "telecom",
"user_data" : {
"identity" : "eyJ0eXAiOiJwYXNzcG9ydCIsImFsZyI6I...alg=ES256;ppt=shaken"
},
"version": 2
}

This request is enabled for Field Filtering.

Required Scopes

To get information about a Call Detail Record object, the partner must have one of the following scopes enabled:

  • calls.manage
  • calls.read

To get information about a Call Detail Record object for the inherited partners, the partner must additionally have the calls.read_descendant scope enabled.

Path Arguments

ParameterData TypeDescription
dr_sid requiredstringThe secure ID of the Call Detail Record.