forked from nxtele/http-api-document
-
Notifications
You must be signed in to change notification settings - Fork 1
NXCC API cdrQuery
henryou edited this page May 17, 2024
·
1 revision
- URL:
https://api2.nxcloud.com/saas/cc/openapi/cdr/page - Method:
POST - Content-Type:
application/json - Authentication required: Yes`
For authentication rules, please refer to: API Interface Call Agreement
| Parameter Name | Type | Required | Example Value | Description |
|---|---|---|---|---|
| accessKey | String | Y | fme2na3kdi3ki | User identity identifier |
| ts | String | Y | 1655710885431 | Timestamp of the current request (in milliseconds). The NX server allows a maximum time error of 60 seconds for client requests. |
| bizType | String | Y | 8 | Business type, fixed value “8” |
| action | String | Y | cc | Business operation, fixed value “cc” |
| sign | String | Y | 6e9506557d1f289501d333ee2c365826 | API parameter signature, Signature Algorithm |
| Parameter Name | Type | Required | Example Value | Description |
|---|---|---|---|---|
| answered | Integer | N | 0 | Whether answered: 0 all, 1 not answered, 2 answered |
| direction | Integer | N | 0 | Call direction: 0 all, 1 inbound, 2 outbound, 3 AICC |
| startTime | Long | Y | 1678894227239 | Start time (timestamp in seconds) |
| endTime | Long | Y | 1678894227239 | End time (timestamp in seconds) |
| name | String | N | "NX0001" | Employee account / Agent account |
| caller | String | N | "4444" | Caller number |
| callee | String | N | "4444" | Callee number |
| callId | String | N | "032f4f81cc7a4e5a902e41f511fbf0e9" | callId |
| orderId | String | N | "033f4f81cc7a4e5a902e41f511fbf010" | orderId |
| size | Integer | Y | 100 | Page size (maximum 100) |
| page | Integer | Y | 1 | Page number (starting from 1) |
body(application/json) parameters:
{
"startTime": 1688140800,
"endTime": 1690819200,
"answered": true,
"direction": 1,
"name": "NX0001",
"caller": "4444",
"callee": "4444",
"orderId": "1222222",
"size": 100,
"page": 1
}| Parameter Name | Type | Description |
|---|---|---|
| code | Integer | Result code |
| data | Object | Request result |
| msg | String | Description of result |
- data parameters:
| Parameter Name | Type | Description |
|---|---|---|
| agentName | String | Agent account, might be empty |
| agentNickName | String | Agent nickname, might be empty |
| answered | Boolean | Whether answered |
| answerTime | Long | Call answered time (timestamp in milliseconds) |
| callDuration | Integer | Call duration |
| callee | String | Callee number |
| caller | String | Caller number |
| callId | String | Call ID |
| orderId | String | Order ID |
| direction | Integer | Call direction, 0: inbound, 1: outbound, 2: AICC |
| dtmfKeys | String | DTMF keys, separated by commas if multiple |
| endTime | Long | Call end time (timestamp in milliseconds) |
| hangupBy | Integer | Hangup by, 0: agent, 1: user, 2: unknown |
| hangupCode | Integer | Hangup reason code |
| callStatus | String | Call status |
| hangupReason | String | Hangup reason description |
| inQueueTime | Long | Queue entry time (timestamp in milliseconds) |
| leaveMsgUrl | String | Voicemail URL |
| orderId | String | Order ID |
| other | String | Pass-through information |
| intent | String | Intent name |
| outQueueTime | Long | Queue exit time (timestamp in milliseconds) |
| queueDuration | Integer | Queue duration (in seconds) |
| recordUrl | String | Recording URL |
| ringDuration | Integer | Ring duration (in seconds) |
| ringTime | Long | Ring start time (timestamp in milliseconds) |
| startTime | Long | Call start time (timestamp in milliseconds) |
| taskId | String | Task ID, displayed for AICC tasks (direction=2) |
| totalCustomerPrice | Double | Total cost |
{
"reqId": "a23738fb613d889026fa2c8f4e4378f1",
"code": 0,
"msg": "success",
"data": [
{
"agentName": null,
"agentNickName": null,
"answered": false,
"answerTime": 0,
"callDuration": 0,
"callee": "85235757580",
"caller": "85215236100",
"callId": "63b09b9a163616c6c009cb326",
"direction": 0,
"dtmfKeys": null,
"endTime": 1690442498901,
"hangupBy": 0,
"hangupCode": 1103,
"callStatus": "呼入未接",
"hangupReason": "用户排队放弃",
"inQueueTime": 1690442492861,
"leaveMsgUrl": null,
"orderId": "",
"other": null,
"intent": null,
"outQueueTime": 1690442498000,
"queueDuration": 5139,
"recordUrl": null,
"ringDuration": 6,
"ringTime": 1690442492000,
"startTime": 1690442492841,
"taskId": "",
"totalCustomerPrice": 0.035
},
{
"agentName": "NX094450006938",
"agentNickName": "示例坐席",
"answered": true,
"answerTime": 1690423244000,
"callDuration": 5,
"callee": "85235757568",
"caller": "85238531117",
"callId": "6605fcd9563616c6c009c6240",
"direction": 0,
"dtmfKeys": null,
"endTime": 1690423248124,
"hangupBy": 1,
"hangupCode": 1001,
"callStatus": "正常结束",
"hangupReason": "坐席挂断",
"inQueueTime": 1690423237744,
"leaveMsgUrl": null,
"orderId": "",
"other": null,
"intent": null,
"outQueueTime": 1690423244000,
"queueDuration": 6,
"recordUrl": "https://*********.mp3",
"ringDuration": 7,
"ringTime": 1690423237000,
"startTime": 1690423237704,
"taskId": "",
"totalCustomerPrice": 0.035
}
]
}{
"reqId": "FFDD1791E22F4D9DBA967C245C58E544",
"code": 41000,
"msg": "End date cannot be empty",
"data": {}
}| code | message | Resolution |
|---|---|---|
| 0 | Request successful | |
| 88 | Request failed | Please contact technical support to resolve the issue |
| 99 | System error | Please contact technical support to resolve the issue |
| 1000~100X | Authentication failed | See the API Authentication section for details |
Introduction
- Send Message
- Mark Incoming Message as Read
- Upload Media File
- Get Media File
- Delete Media File
- Webhook
- Query Number Information
- Query Message Template
- Create Message Template
- Edit Message Template
- Delete Message Template
- Upload Template Example File
- Embedded Page Login
- Create Client Application
- List of Phone Numbers for Client Application
- Get Verification Code
- Verify Verification Code
- Create Local Client
Short message
Voice
Call Center(NXLink)
- Web Iframe
- Manual Dial Record
- Manual Dial Record Query By orderId
- List Agent Information
- List Agent Status
- List Queue
- List Agents In Queue
- List Agent Efficiency
- Update Queue Agents
- Create AutoDial Task
- Webhook - Manual Dial
Call Center(Callbot)
- Callbot API Summary
- Callbot API Authorization
- Callbot API Ping
- Create Auto Dial Task
- Add Contact List To Task
- Create Task And Add Contact
- Start Or Pause Task
- Update Task Parameters
- Get List Task
- List Call
- List Task Orders
- Stop Order
- Get Call Detail By Order
- Webhook - By Call
- Webhook - By Order
- Webhook - Task Status
Flash Call
Short links
邮件验证码
DID号码
通用
号码检测