Retrieve a collection of call detail records.
GET /api/cdrs HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"count": 100,
"items": [
{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw",
"caller": "text",
"caller_domain": "text",
"caller_display_name": "text",
"callee": "text",
"callee_domain": "text",
"callee_display_name": "text",
"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",
"call_id": "text",
"direction": "INBOUND_CALL",
"end_reason": "CALLER_DISCONNECTED",
"reroute_reason": "TRANSFER",
"status_code": 1,
"destination": "text",
"outbound_caller_id": "text",
"did_cid": "text",
"trunk": "text",
"duration": 1,
"service_number": "text",
"user_data": "text"
}
]
}
Retrieve details of CDR.
The unique ID of CDR.
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYw
GET /api/cdrs/{id} HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"caller": "text",
"caller_domain": "text",
"caller_display_name": "text",
"callee": "text",
"callee_domain": "text",
"callee_display_name": "text",
"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",
"call_id": "text",
"direction": "INBOUND_CALL",
"end_reason": "CALLER_DISCONNECTED",
"reroute_reason": "TRANSFER",
"status_code": 1,
"destination": "text",
"outbound_caller_id": "text",
"did_cid": "text",
"trunk": "text",
"duration": 1,
"cost": 1,
"billed_account": "text",
"service_number": "text",
"user_data": "text"
}
]
}