Current day CDR

❗️

Deprecation Update

This API will be deprecated by 31st Dec 2024.

We recommend to start using the new version of the API's to generate Call Detail Reports:

This API offers access to call detail reports from the dashboard portal, allowing them to retrieve data for the current day for a defined time range.

To access this API we need to pass the following parameters.

ParameterDescription
api_key*Available in Cloudagent Admin login
user_name*CloudAgent account name
from_time*Time in the format hh:mm:ss
to_time*Time in the format hh:mm:ss

❗️

Note:

Parameters with ‘*’ are mandatory.

Possible responses

Success Response{
"status": "success",
"message": [
{
"UCID": "35133465336328661",
"monitorUCID": "35133465336328661",
"UUI": "Hyderabad",
"Did": "919xxxxxxx1",
"Location": "Hyd",
"StartTime": "2024-12-06 11:39:05",
"CallerID": "+918xxxxxxxx2",
"PhoneName": null,
"Skill": "offline_hyd",
"EndTime": "2024-12-06 11:39:40",
"TimeToAnswer": "00:00:05",
"Duration": "00:00:35",
"FallBackRule": "AgentDial",
"DialedNumber": "9xxxxxxx1",
"Type": "InBound",
"AgentID": "xxxx",
"AgentUniqueID": null,
"AgentName": "xxxxx",
"Disposition": "",
"HangupBy": "AgentHangup",
"Status": "Answered",
"AudioFile": "https://s3.ap-southeast-1.amazonaws.com/recordings.kookoo.in/demo_user/TXR42a772a10484eba6f5330f9d138be68c.mp3",
"TransferType": "No Transfers",
"TransferredTo": "",
"Comments": "",
"DialStatus": "answered",
"ApiKey": "No Transfers",
"AgentStatus": "answered",
"CustomerStatus": "answered",
"Campaign": "Inbound_919xxxxxx1",
"TalkTime": "00:00:30",
"HoldDuration": "00:00:00",
"WrapUpDuration": null
},
{
"UCID": "35133465203835951",
"monitorUCID": "35133465203835951",
"UUI": "Hyderabad",
"Did": "919xxxxxx1",
"Location": "Hyd",
"StartTime": "2024-12-06 11:36:52",
"CallerID": "+918xxxxxxxx2",
"PhoneName": null,
"Skill": "offline_hyd",
"EndTime": "2024-12-06 11:37:12",
"TimeToAnswer": "00:00:17",
"Duration": "00:00:20",
"FallBackRule": "AgentDial",
"DialedNumber": "9xxxxxxx1",
"Type": "InBound",
"AgentID": "xxxx",
"AgentUniqueID": null,
"AgentName": "xxxxxxx",
"Disposition": "",
"HangupBy": "AgentHangup",
"Status": "Answered",
"AudioFile": "https://s3.ap-southeast-1.amazonaws.com/recordings.kookoo.in/demo_user/TXR266ddd378ec33b0e58ff3852ae5cef4f.mp3",
"TransferType": "No Transfers",
"TransferredTo": "",
"Comments": "",
"DialStatus": "answered",
"ApiKey": "No Transfers",
"AgentStatus": "answered",
"CustomerStatus": "answered",
"Campaign": "Inbound_919xxxxxxx1",
"TalkTime": "00:00:03",
"HoldDuration": "00:00:00",
"WrapUpDuration": null
}
]
}
If any parameter is not
passed
{"status":"failure","msg":"All Parameters are Mandatory"}
Invalid api_key{"status":"failure","message":"Please provide UserName"}
Invalid username{"status":"failure","message":"Please provide UserName"}
no data found{"status":"failure","message":"no record found"}

📘

Further Insights

By default, the domain name is https://in1-ccaas-api.ozonetel.com. Please refer here to change based on the need.

Language
URL
Click Try It! to start a request and see the response here!