13. Get list of Call from CRM
URL: https://apiring.antbuddy.com/calls
Method: GET
Parameter
Type
Required
status
string
dateStart
string
dateEnd
string
page
Number
limit
Number
Results returned: {
"success": true,
"data": [], // danh sách record
"total": 2,
"limit": 20
}
Sample data:
{
"success": true,
"data": [
{
"_id": "67e134d037e8040538022844",
"body": null,
"files": [],
"usersRead": [],
"usersView": [],
"commentCount": 0,
"permit": {
"status": 1,
"users": [],
"group": null
},
"notifyUsers": [],
"eventCode": "eventnote.CONTACT_CALL",
"createdBy": {
"_id": "65ddb4c332a79634742606bf",
"email": "[email protected]"
},
"org": "645b1b83d7d31c27668f965b",
"contact": {
"_id": "64fbe7c49b965d021cdbf8f1",
"contactType": "customer",
"type": 0,
"normalize": "khach-hang-moi",
"lastname": "",
"gender": 2,
"dateOfBirth": null,
"dateOfBirth2": "",
"name": "Khách hàng mới",
"phones": [
{
"type": "Work",
"_id": "64fbe7c49b965d021cdbf8f2",
"value": "0945948009"
}
],
"emails": []
},
"callId": "a23fc4847dc47b591e5fc5fa9daefb32-ea4273f02bbaf31a4f0022a39523ca12-ba1f0347",
"eventContent": {
"call_id": "a23fc4847dc47b591e5fc5fa9daefb32-ea4273f02bbaf31a4f0022a39523ca12-ba1f0347",
"other_leg_call_id": "a23fc4847dc47b591e5fc5fa9daefb32-ea4273f02bbaf31a4f0022a39523ca12-ba1f0347",
"type": 1,
"callDirection": "inbound",
"call_type": "inbound",
"callerNumber": "7777777769",
"timestamp": "63910031567",
"name": "Khách hàng mới",
"lastname": "",
"callerIdName": "7777777769",
"callerIdNumber": "7777777769",
"calleeIdName": "Ngô Thị Thảo",
"calleeIdNumber": "7777777769",
"time": 1742812367000,
"telesales": false,
"isTransfer": false,
"isKite": false,
"viaDevice": false,
"did_number": "0988888889",
"sipUser": "ngothao_cc",
"callType": [],
"subCallType": [],
"subSubCallType": [],
"callEmotion": null,
"status": "success",
"hangupCause": "NORMAL_CLEARING",
"endTime": 1742812387000,
"isMiss": false,
"isFoundedAB": true,
"abKey": "0d4f0b80-xxxx-123e-e1b7-566f3c4c0008_a23fc4847dc47b591e5fc5fa9daefb32-ea4273f02bbaf31a4f0022a39523ca12-77777777",
"disposition": "ANSWER",
"queue_stat": [
{
"end_call_reason": "agent_hungup",
"username": "ngothao",
"misses": [
{
"name": null,
"username": "yen1391",
"timestamp": 63910031567,
"reason": "DESTINATION_OUT_OF_ORDER",
"agent_id": "54986340327f00be7a4aa34bd17f391e"
},
{
"name": null,
"username": "yen1391",
"timestamp": 63910031549,
"reason": "DESTINATION_OUT_OF_ORDER",
"agent_id": "54986340327f00be7a4aa34bd17f391e"
},
{
"name": null,
"username": "pham1999",
"timestamp": 63910031548,
"reason": "rejected",
"agent_id": "79902b65f76ae1453c6d9ae4d3d84622"
}
],
"agent_id": "ea4273f02bbaf31a4f0022a39523ca12",
"entered_timestamp": 63910031531,
"handled_timestamp": 63910031568,
"processed_timestamp": 63910031587,
"hung_up_by": "agent",
"status": "processed",
"caller_id_name": "9945948999",
"caller_id_number": "9945948999",
"wait_time": 37,
"talk_time": 19,
"org": "645b1b8215a566473249e451",
"__v": 0,
"queue_id": "89f47660f72a5704c6276e99bb56ae85",
"call_id": "0d4f0b80-833e-123e-e1b7-566f3c4c0008",
"_id": "67e135667be6fbeae907979b"
}
],
"duration_seconds": 71,
"duration": "01:11",
"billing_seconds": 19,
"billingSeconds": "00:19",
"recording_url": "{profile=s3cmc}https://s3-hn-2.cloud.cmctelecom.vn/call-record/org/call_recording_0d4f0b80-833e-123e-e1b7-566f3c4c0008.mp3",
"status_detail": "SUCCESS",
"caller": {
"username": null,
"type": "realnumber",
"number": "9945948999"
},
"callee": {
"username": "ngothao",
"type": "user",
"number": "ngothao"
},
"rating": "0"
},
"happenedAt": 1742812367000,
"createdAt": 1742812368265,
"cloudData": [],
"updatedAt": 1742812996922,
"__v": 0,
"inTrash": null
}
]
}
Last updated