latestOpenAPI 3.1.0PortSIP2026-08-105581112.6 MB

577415d4a3d5

CDR

Retrieve call log detailed information.

Retrieve details of call log.

get/calllogs/{id}

Path parameters

idstring required

The unique ID of the resource.

Example:NzAwNTUxOTA5NzczMTQ4MTYw

The unique ID of the CDR.

Response

OK

idstring

The unique ID of the resource.

session_idstring

The unique ID of the resource.

callerstring

The caller number of the call.

caller_domainstring

The caller domain of the call.

caller_display_namestring

The caller display name of the call.

calleestring

The callee number of the call.

callee_domainstring

The callee domain of the call.

callee_display_namestring

The callee display name of the call.

started_atstring date_time

The RFC 3339 format is defined by The date_time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

rang_atstring date_time

The RFC 3339 format is defined by The date_time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

answered_atstring date_time

The RFC 3339 format is defined by The date_time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

ended_atstring date_time

The RFC 3339 format is defined by The date_time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

call_idstring

The call ID of CDR.

direction'INBOUND_CALL' | 'OUTBOUND_CALL' | 'EXTENSION_CALL' | 'INBOUND_OUTBOUND_CALL'

The direction of CDR:

  • INBOUND_CALL:
  • OUTBOUND_CALL:
  • EXTENSION_CALL:
  • INBOUND_OUTBOUND_CALL:
end_reason'CALLER_DISCONNECTED' | 'CALLEE_DISCONNECTED' | 'BLIND_TRANSFER_COMPLETED' | 'CONSULT_TRANSFER_COMPLETED' | 'REPLACED' | 'REFERRED' | 'REDIRECTED' | 'CANCELLED'

The ended reason of CDR:
Can be either:

  • CALLER_DISCONNECTED:
  • CALLEE_DISCONNECTED:
  • BLIND_TRANSFER_COMPLETED:
  • CONSULT_TRANSFER_COMPLETED:
  • REPLACED:
  • REFERRED:
  • REDIRECTED:
  • CANCELLED:
reroute_reason'TRANSFER' | 'OVERFLOW'

The reroute reason of CDR:
Can be either:

  • TRANSFER:
  • OVERFLOW:
status_codeinteger

The status code of CDR.

destinationstring

The destination number of CDR.

outbound_caller_idstring

Outbound caller id.

did_cidstring

The DID CID of CDR.

trunkstring

The trunk name of CDR.

durationinteger

The total talk time for a session (in seconds).

costnumber double

The cost for this call.

billed_accountstring

The account name for billing.

service_numberstring

The service number of the call.

user_datastring

The additional custom user data of CDR.

Example response

{
  "id": "NzAwNTUxOTA5NzczMTQ4MTYw",
  "session_id": "NzAwNTUxOTA5NzczMTQ4MTYw",
  "started_at": "2017-07-21T17:32:28Z",
  "rang_at": "2017-07-21T17:32:28Z",
  "answered_at": "2017-07-21T17:32:28Z",
  "ended_at": "2017-07-21T17:32:28Z"
}