Call Detail Records
Manage your call detail records.
Retrieve a collection of call detail records.
OK
Total number of resource.
100Error
GET /api/cdrs HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"count": 1,
"items": [
{
"id": "xxxxxx",
"caller": "101",
"caller_domain": "example.com",
"caller_display_name": "User 101",
"callee": "102",
"callee_domain": "example.com",
"callee_display_name": "User 102",
"started_at": "2020-01-01T00:00:00Z",
"rang_at": "2020-01-01T00:00:00Z",
"answered_at": "2020-01-01T00:00:00Z",
"ended_at": "2020-01-01T00:00:00Z",
"call_id": "",
"direction": "INBOUND_CALL",
"end_reason": "CALLER_DISCONNECTED",
"reroute_reason": "TRANSFER",
"status_code": 200,
"destination": "",
"outbound_caller_id": "123456",
"did_cid": "",
"trunk": "trunk",
"duration": 60,
"service_number": "",
"user_data": ""
}
]
}Retrieve details of CDR.
NzAwNTUxOTA5NzczMTQ4MTYwOK
Error
GET /api/cdrs/{id} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"caller": "101",
"caller_domain": "example.com",
"caller_display_name": "User 101",
"callee": "102",
"callee_domain": "example.com",
"callee_display_name": "User 102",
"started_at": "2020-01-01T00:00:00Z",
"rang_at": "2020-01-01T00:00:00Z",
"answered_at": "2020-01-01T00:00:00Z",
"ended_at": "2020-01-01T00:00:00Z",
"call_id": "",
"direction": "INBOUND_CALL",
"end_reason": "CALLER_DISCONNECTED",
"reroute_reason": "TRANSFER",
"status_code": 200,
"destination": "",
"outbound_caller_id": "123456",
"did_cid": "",
"trunk": "trunk",
"duration": 60,
"cost": 1,
"billed_account": "",
"service_number": "",
"user_data": ""
}
]
}Retrieve a collection of call logs.
OK
Total number of resource.
100Error
GET /api/calllogs HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"count": 1,
"items": [
{
"id": "xxxxxx",
"session_id": "xxxxxx",
"caller": "101",
"caller_domain": "example.com",
"caller_display_name": "User 101",
"callee": "102",
"callee_domain": "example.com",
"callee_display_name": "User 102",
"started_at": "2020-01-01T00:00:00Z",
"rang_at": "2020-01-01T00:00:00Z",
"answered_at": "2020-01-01T00:00:00Z",
"ended_at": "2020-01-01T00:00:00Z",
"call_id": "xxxxxx",
"direction": "INBOUND_CALL",
"end_reason": "CALLER_DISCONNECTED",
"reroute_reason": "TRANSFER",
"status_code": 200,
"destination": "",
"outbound_caller_id": "123456",
"did_cid": "xxxxxx",
"trunk": "trunk",
"duration": 60,
"service_number": "",
"user_data": ""
}
]
}Retrieve details of call log.
NzAwNTUxOTA5NzczMTQ4MTYwOK
NzAwNTUxOTA5NzczMTQ4MTYwNzAwNTUxOTA5NzczMTQ4MTYwThe caller number of the call.
The caller domain of the call.
The caller display name of the call.
The callee number of the call.
The callee domain of the call.
The callee display name of the call.
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
2017-07-21T17:32:28ZThe 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
2017-07-21T17:32:28ZThe 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
2017-07-21T17:32:28ZThe 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
2017-07-21T17:32:28ZThe call ID of CDR.
The direction of CDR:
INBOUND_CALL:OUTBOUND_CALL:EXTENSION_CALL:INBOUND_OUTBOUND_CALL:
The ended reason of CDR:
Can be either:
CALLER_DISCONNECTED:CALLEE_DISCONNECTED:BLIND_TRANSFER_COMPLETED:CONSULT_TRANSFER_COMPLETED:REPLACED:REFERRED:REDIRECTED:CANCELLED:
The reroute reason of CDR:
Can be either:
TRANSFER:OVERFLOW:CAPACITY_BLOCKED:QUEUE_EXIT:QUEUE_ABANDONED:REDIRECT:FORWARDING_UNCONDITIONAL:FORWARDING_BUSY:FORWARDING_NO_ANSWER:FORWARDING_NOT_REACHABLE:FORWARDING_EXCEPTION:FORWARDING_LUNCH:FORWARDING_BUSINESS_TRIP:FORWARDING_AWAY:FORWARDING_NIGHT_MODE:DISA:
The status code of CDR.
The destination number of CDR.
Outbound caller id.
The DID CID of CDR.
The trunk name of CDR.
The total talk time for a session (in seconds).
The cost for this call.
The account name for billing.
The service number of the call.
The additional custom user data of CDR.
Error
GET /api/calllogs/{id} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "xxxxxxxxxxxxxxx",
"session_id": "xxxxxx",
"caller": "101",
"caller_domain": "example.com",
"caller_display_name": "User 101",
"callee": "101",
"callee_domain": "example.com",
"callee_display_name": "User 102",
"started_at": "2000-01-01T00:00:00Z",
"rang_at": "2000-01-01T00:00:00Z",
"answered_at": "2000-01-01T00:00:00Z",
"ended_at": "2000-01-01T00:00:00Z",
"call_id": "a5G37QtkQC6BrNkGMFGyPA",
"direction": "INBOUND_CALL",
"end_reason": "CALLER_DISCONNECTED",
"reroute_reason": "TRANSFER",
"status_code": 200,
"destination": "",
"outbound_caller_id": "123456",
"did_cid": "123456",
"trunk": "trunk",
"duration": 3,
"cost": 1,
"billed_account": "",
"service_number": "000000",
"user_data": ""
}Use the filter query parameter to retrieve just a subset of a collection.
Use the search query parameter to restrict the results of a request to match a search criterion.
Use the orderby query parameter to specify the sort order of the items returned from server.
The default order is ascending order.
Use the skip query parameter to set the number of items to skip at the start of a collection.
0Use the top query parameter to specify the page size of the result set.
100OK
Total number of resource.
100Error
GET /api/call_reports HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"count": 1,
"items": [
{
"id": "xxxxxx",
"name": "example",
"type": "NORMAL",
"cron_expr": "",
"status": "SCHEDULED"
}
]
}The name of call report.
The report types can be either:
NORMAL:EXTENSION_GROUP_CALL_COST:QUEUE_PERFORMANCE:QUEUE_DETAILED_STATISTICS:QUEUE_ABANDONED_CALLS:QUEUE_SLA_STATISTICS:QUEUE_BREACHES_SLA_STATISTICS:QUEUE_CALLBACKS:QUEUE_FAILED_CALLBACKS:TEAM_QUEUE_GENERAL_STATISTICS:RING_GROUP_STATISTICS:
The email address.
example@example.comThe report output files format can be either:
CSV:HTML:
The report range can be either:
TODAY: the day the report was generated.YESTERDAY: yesterday of the day the report was generated.LAST_WEEK: the last week of the day the report was generated.LAST_SEVEN_DAYS: seven days before the day the report was generated.LAST_MONTH: the last month of the day the report was generated.LAST_THIRTY_DAYS: thirty days before the day the report was generated.CUSTOM: custom date range.
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
2017-07-21T17:32:28ZThe 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
2017-07-21T17:32:28ZThe crontab expression https://en.wikipedia.org/wiki/Cron
Created
NzAwNTUxOTA5NzczMTQ4MTYwError
POST /api/call_reports HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 253
{
"name": "example",
"type": "NORMAL",
"email": "example@example.com",
"format": "CSV",
"range": "TODAY",
"started_at": "2000-01-01T00:00:00Z",
"ended_at": "2000-01-01T00:00:00Z",
"cron_expr": "",
"filter": {
"from": "ANY",
"to": "ANY",
"answer_state": "ANY",
"duration": "ANY"
}
}{
"id": "xxxxxxxx"
}Get details of call report by it's unique ID.
NzAwNTUxOTA5NzczMTQ4MTYwOK
NzAwNTUxOTA5NzczMTQ4MTYwThe name of call report.
The report types can be either:
NORMAL:EXTENSION_GROUP_CALL_COST:QUEUE_PERFORMANCE:QUEUE_DETAILED_STATISTICS:QUEUE_ABANDONED_CALLS:QUEUE_SLA_STATISTICS:QUEUE_BREACHES_SLA_STATISTICS:QUEUE_CALLBACKS:QUEUE_FAILED_CALLBACKS:TEAM_QUEUE_GENERAL_STATISTICS:RING_GROUP_STATISTICS:
The email address.
example@example.comThe report output files format can be either:
CSV:HTML:
The report range can be either:
TODAY: the day the report was generated.YESTERDAY: yesterday of the day the report was generated.LAST_WEEK: the last week of the day the report was generated.LAST_SEVEN_DAYS: seven days before the day the report was generated.LAST_MONTH: the last month of the day the report was generated.LAST_THIRTY_DAYS: thirty days before the day the report was generated.CUSTOM: custom date range.
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
2017-07-21T17:32:28ZThe 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
2017-07-21T17:32:28ZThe crontab expression https://en.wikipedia.org/wiki/Cron
The report status can be either:
RUNNING:SCHEDULED:ABORTED:
Error
GET /api/call_reports/{id} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "xxxxxx",
"name": "example",
"type": "NORMAL",
"email": "example@example.com",
"format": "CSV",
"range": "TODAY",
"started_at": "2000-01-01T00:00:00Z",
"ended_at": "2000-01-01T00:00:00Z",
"cron_expr": "",
"filter": {
"from": "ANY",
"to": "ANY",
"answer_state": "ANY",
"duration": "ANY"
},
"status": "RUNNING"
}Update call report properties.
NzAwNTUxOTA5NzczMTQ4MTYwThe name of call report.
The email address.
example@example.comThe report output files format can be either:
CSV:HTML:
The report range can be either:
TODAY: the day the report was generated.YESTERDAY: yesterday of the day the report was generated.LAST_WEEK: the last week of the day the report was generated.LAST_SEVEN_DAYS: seven days before the day the report was generated.LAST_MONTH: the last month of the day the report was generated.LAST_THIRTY_DAYS: thirty days before the day the report was generated.CUSTOM: custom date range.
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
2017-07-21T17:32:28ZThe 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
2017-07-21T17:32:28ZThe crontab expression https://en.wikipedia.org/wiki/Cron
OK
No content
Error
POST /api/call_reports/{id} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 237
{
"name": "example",
"email": "example@example.com",
"format": "CSV",
"range": "TODAY",
"started_at": "2000-01-01T00:00:00Z",
"ended_at": "2000-01-01T00:00:00Z",
"cron_expr": "",
"filter": {
"from": "ANY",
"to": "ANY",
"answer_state": "ANY",
"duration": "ANY"
}
}No content
Destroy call report by it's unique ID.
NzAwNTUxOTA5NzczMTQ4MTYwNo Content
No content
Invalid entry ID supplied
POST /api/call_reports/{id}/destroy HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Use the filter query parameter to retrieve just a subset of a collection.
Use the search query parameter to restrict the results of a request to match a search criterion.
Use the orderby query parameter to specify the sort order of the items returned from server.
The default order is ascending order.
Use the skip query parameter to set the number of items to skip at the start of a collection.
0Use the top query parameter to specify the page size of the result set.
100OK
Total number of resource.
100Error
GET /api/completed_call_reports HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"count": 1,
"items": [
{
"id": "xxxxxx",
"name": "example",
"type": "NORMAL",
"format": "CSV",
"completed_at": "",
"file_name": "example",
"file_size": 100,
"file_url": ""
}
]
}Get details of completed call report by it's unique ID.
NzAwNTUxOTA5NzczMTQ4MTYwOK
NzAwNTUxOTA5NzczMTQ4MTYwThe name of call report.
The report types can be either:
NORMAL:EXTENSION_GROUP_CALL_COST:QUEUE_PERFORMANCE:QUEUE_DETAILED_STATISTICS:QUEUE_ABANDONED_CALLS:QUEUE_SLA_STATISTICS:QUEUE_BREACHES_SLA_STATISTICS:QUEUE_CALLBACKS:QUEUE_FAILED_CALLBACKS:TEAM_QUEUE_GENERAL_STATISTICS:RING_GROUP_STATISTICS:
The report output files format can be either:
CSV:HTML:
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
2017-07-21T17:32:28ZThe name of the file.
The file size in bytes.
0The relative path to file url for file downloading.
/api/blobs/WexWdABcd5D4PDgzTKV3gAAAEu00WcKError
GET /api/completed_call_reports/{id} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "xxxxxx",
"name": "example",
"type": "NORMAL",
"format": "CSV",
"completed_at": "",
"file_name": "example",
"file_size": 100,
"file_url": ""
}Destroy completed call report by it's unique ID.
NzAwNTUxOTA5NzczMTQ4MTYwNo Content
No content
Invalid entry ID supplied
POST /api/completed_call_reports/{id}/destroy HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated
Was this helpful?