Get CDR log for a specified uuid
Retrieve specified uuid CDR log.
Note: CDR data is generated immediately after a call ends, but a delay may occur between generating and registering the data, as it needs to be processed firstly (e.g. calculating costs).
Tip: If you have not received a response, this may be due to a slowdown. We suggest querying the CDR data 5 minutes after sending the Webhook request. You can subsequently retry querying the CDR data every 5 minutes, up to a total of 20 times.
Request | |
---|---|
Method | GET |
Resource | https://[customer].asp.virtual-call-center.eu/v2/cdr/[year]/[month]/[uuid] |
Options | |
Body | N/A |
Response | |
Body | CDR array, encoded in JSON. |
Request
Resource parameters
Name | Type | Mandatory | Comment |
---|---|---|---|
customer | string | yes | Your call centre’s unique identifier (subdomain). |
year | integer | yes | Year. |
month | integer | yes | Month within the requested year. Possible values: – 01-12 |
uuid | string | yes | Unique call identifier. |
Response
Name | Type | Comment |
---|---|---|
afterwork | integer | Duration/length of afterwork, in seconds. |
beforequeuetime | integer | Time spent before the call is placed in a queue (e.g. time spent in IVR), in seconds. |
billing_ts | string | Time the conversation begins, in YYYY-MM-DD hh:mm:ss format. |
billingtime | integer | Length of complete call, in seconds (including ivr, queue and conversation time, but excluding ringtime). |
destination | string | Called phone number. |
direction | string | Call direction: – inbound – outbound |
dispositionid | integer | Unique disposition identifier in the database set for the call. |
dispositionreach | integer | Disposition summary. Possible values: – 1: not reached – 2: reached – 3: successful |
dispositionstatus | integer | Disposition type. See: status key. |
holdtime | integer | Duration/length of hold, in seconds. |
numberid | integer | Unique record identifier in the database. |
prework | integer | Duration/length of prework, in seconds. |
projectid | integer | Unique project identifier in the database. |
queuetime | integer | If the call is placed in a queue, then the time spent in the queue, in seconds. |
ringtime | integer | Duration/length of ringing, in seconds. |
source | string | Caller’s phone number. |
start_ts | string | Time the call is initiated, in YYYY-MM-DD hh:mm:ss format. |
talktime | integer | Time during the call in which talking takes place, in seconds. |
userid | integer | Unique user identifier (-1 system, otherwise agent). |
uuid | string | Unique call identifier. |
Example
List the CDR with the following uuid: bbf5825e-85de-4ec1-8625-e6eaf5c96b1e
Request
https://mycc.asp.virtual-call-center.eu/v2/cdr/2015/01/bbf5825e-85de-4ec1-8625-e6eaf5c96b1e
Response body
{
"response": {
"uuid": "95bd5f46-44e0-11e5-a6da-6547f8762750",
"source": "36013555539",
"destination": "36003333333",
"userid": 6,
"numberid": 11,
"start_ts": "2015-08-17 15:05:08",
"billing_ts": "2015-08-17 15:05:17",
"ringtime": 9,
"billingtime": 3,
"talktime": 3,
"queuetime": 0,
"beforequeuetime": 0,
"dispositionid": 3,
"dispositionreach": 1,
"dispositionstatus": 3,
"projectid": 3,
"holdtime": 0,
"afterwork": 9,
"prework": 0,
"direction": "outbound"
},
"errors": []
}
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.