> For the complete documentation index, see [llms.txt](https://docs.antbuddy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.antbuddy.com/huong-dan-tich-hop-api-team-technical-api-integration-guide-technical-team/antcrm/13.-get-list-of-call-from-crm.md).

# 13. Get list of Call from CRM

URL: <https://apiring.antbuddy.com/calls>

Method: GET

| **Parameter** | **Type** | **Required** |
| ------------- | -------- | ------------ |
| status        | string   | <p><br></p>  |
| dateStart     | string   | <p><br></p>  |
| dateEnd       | string   | <p><br></p>  |
| page          | Number   | <p><br></p>  |
| limit         | Number   | <p><br></p>  |

Results returned:\
{

&#x20;   "success": true,

&#x20;   "data": \[], // danh sách record

&#x20;   "total": 2,

&#x20;   "limit": 20

}

**Sample data:**

\
{

&#x20; "success": true,

&#x20; "data": \[

&#x20;   {

&#x20;     "\_id": "67e134d037e8040538022844",

&#x20;     "body": null,

&#x20;     "files": \[],

&#x20;     "usersRead": \[],

&#x20;     "usersView": \[],

&#x20;     "commentCount": 0,

&#x20;     "permit": {

&#x20;       "status": 1,

&#x20;       "users": \[],

&#x20;       "group": null

&#x20;     },

&#x20;     "notifyUsers": \[],

&#x20;     "eventCode": "eventnote.CONTACT\_CALL",

&#x20;     "createdBy": {

&#x20;       "\_id": "65ddb4c332a79634742606bf",

&#x20;       "email": "<email@vn.vn>"

&#x20;     },

&#x20;     "org": "645b1b83d7d31c27668f965b",

&#x20;     "contact": {

&#x20;       "\_id": "64fbe7c49b965d021cdbf8f1",

&#x20;       "contactType": "customer",

&#x20;       "type": 0,

&#x20;       "normalize": "khach-hang-moi",

&#x20;       "lastname": "",

&#x20;       "gender": 2,

&#x20;       "dateOfBirth": null,

&#x20;       "dateOfBirth2": "",

&#x20;       "name": "Khách hàng mới",

&#x20;       "phones": \[

&#x20;         {

&#x20;           "type": "Work",

&#x20;           "\_id": "64fbe7c49b965d021cdbf8f2",

&#x20;           "value": "0945948009"

&#x20;         }

&#x20;       ],

&#x20;       "emails": \[]

&#x20;     },

&#x20;     "callId": "a23fc4847dc47b591e5fc5fa9daefb32-ea4273f02bbaf31a4f0022a39523ca12-ba1f0347",

&#x20;     "eventContent": {

&#x20;       "call\_id": "a23fc4847dc47b591e5fc5fa9daefb32-ea4273f02bbaf31a4f0022a39523ca12-ba1f0347",

&#x20;       "other\_leg\_call\_id": "a23fc4847dc47b591e5fc5fa9daefb32-ea4273f02bbaf31a4f0022a39523ca12-ba1f0347",

&#x20;       "type": 1,

&#x20;       "callDirection": "inbound",

&#x20;       "call\_type": "inbound",

&#x20;       "callerNumber": "7777777769",

&#x20;       "timestamp": "63910031567",

&#x20;       "name": "Khách hàng mới",

&#x20;       "lastname": "",

&#x20;       "callerIdName": "7777777769",

&#x20;       "callerIdNumber": "7777777769",

&#x20;       "calleeIdName": "Ngô Thị Thảo",

&#x20;       "calleeIdNumber": "7777777769",

&#x20;       "time": 1742812367000,

&#x20;       "telesales": false,

&#x20;       "isTransfer": false,

&#x20;       "isKite": false,

&#x20;       "viaDevice": false,

&#x20;       "did\_number": "0988888889",

&#x20;       "sipUser": "ngothao\_cc",

&#x20;       "callType": \[],

&#x20;       "subCallType": \[],

&#x20;       "subSubCallType": \[],

&#x20;       "callEmotion": null,

&#x20;       "status": "success",

&#x20;       "hangupCause": "NORMAL\_CLEARING",

&#x20;       "endTime": 1742812387000,

&#x20;       "isMiss": false,

&#x20;       "isFoundedAB": true,

&#x20;       "abKey": "0d4f0b80-xxxx-123e-e1b7-566f3c4c0008\_a23fc4847dc47b591e5fc5fa9daefb32-ea4273f02bbaf31a4f0022a39523ca12-77777777",

&#x20;       "disposition": "ANSWER",

&#x20;       "queue\_stat": \[

&#x20;         {

&#x20;           "end\_call\_reason": "agent\_hungup",

&#x20;           "username": "ngothao",

&#x20;           "misses": \[

&#x20;             {

&#x20;               "name": null,

&#x20;               "username": "yen1391",

&#x20;               "timestamp": 63910031567,

&#x20;               "reason": "DESTINATION\_OUT\_OF\_ORDER",

&#x20;               "agent\_id": "54986340327f00be7a4aa34bd17f391e"

&#x20;             },

&#x20;             {

&#x20;               "name": null,

&#x20;               "username": "yen1391",

&#x20;               "timestamp": 63910031549,

&#x20;               "reason": "DESTINATION\_OUT\_OF\_ORDER",

&#x20;               "agent\_id": "54986340327f00be7a4aa34bd17f391e"

&#x20;             },

&#x20;             {

&#x20;               "name": null,

&#x20;               "username": "pham1999",

&#x20;               "timestamp": 63910031548,

&#x20;               "reason": "rejected",

&#x20;               "agent\_id": "79902b65f76ae1453c6d9ae4d3d84622"

&#x20;             }

&#x20;           ],

&#x20;           "agent\_id": "ea4273f02bbaf31a4f0022a39523ca12",

&#x20;           "entered\_timestamp": 63910031531,

&#x20;           "handled\_timestamp": 63910031568,

&#x20;           "processed\_timestamp": 63910031587,

&#x20;           "hung\_up\_by": "agent",

&#x20;           "status": "processed",

&#x20;           "caller\_id\_name": "9945948999",

&#x20;           "caller\_id\_number": "9945948999",

&#x20;           "wait\_time": 37,

&#x20;           "talk\_time": 19,

&#x20;           "org": "645b1b8215a566473249e451",

&#x20;           "\_\_v": 0,

&#x20;           "queue\_id": "89f47660f72a5704c6276e99bb56ae85",

&#x20;           "call\_id": "0d4f0b80-833e-123e-e1b7-566f3c4c0008",

&#x20;           "\_id": "67e135667be6fbeae907979b"

&#x20;         }

&#x20;       ],

&#x20;       "duration\_seconds": 71,

&#x20;       "duration": "01:11",

&#x20;       "billing\_seconds": 19,

&#x20;       "billingSeconds": "00:19",

&#x20;       "recording\_url": "{profile=s3cmc}<https://s3-hn-2.cloud.cmctelecom.vn/call-record/org/call\\_recording\\_0d4f0b80-833e-123e-e1b7-566f3c4c0008.mp3>",

&#x20;       "status\_detail": "SUCCESS",

&#x20;       "caller": {

&#x20;         "username": null,

&#x20;         "type": "realnumber",

&#x20;         "number": "9945948999"

&#x20;       },

&#x20;       "callee": {

&#x20;         "username": "ngothao",

&#x20;         "type": "user",

&#x20;         "number": "ngothao"

&#x20;       },

&#x20;       "rating": "0"

&#x20;     },

&#x20;     "happenedAt": 1742812367000,

&#x20;     "createdAt": 1742812368265,

&#x20;     "cloudData": \[],

&#x20;     "updatedAt": 1742812996922,

&#x20;     "\_\_v": 0,

&#x20;     "inTrash": null

&#x20;   }

&#x20; ]

}

<br>
