CALL CENTER API · ENGLISH REFERENCE
Call result callback
Receive a call detail notification when a requested call finishes.
Callback
Customer-configured receiving URLDescription
When a customer-requested call ends, the CCaaS platform sends call details to the configured customer server. Use userData to correlate the notification with the original request. The receiving URL is supplied by the customer and configured in the platform.
Notification fields
| Field | Type | Description |
|---|---|---|
| type | String | Fixed value: billing. |
| startTime | String | Call start time. |
| ringTime | String | Ringing start time. |
| answerTime | String | Call answer time. |
| byeTime | String | Call end time. |
| staffNo | String | Agent staff number. |
| group1 | String | Primary agent group. |
| group2 | String | Secondary agent group. |
| callee | String | Called number. |
| numberX | String | Virtual number (X number). |
| caller | String | Calling number. |
| keyPress | String | Customer keypad input. |
| taskID | String | Task ID. |
| taskName | String | Task name. |
| recordFile | String | Recording file reference. |
| service | String | 1 — Manual dialing; 2 — Inbound call; 3 — Internal call; 4 — Automatic outbound call; 5 — Click-to-call; 19 — Voice verification code; 21 — Voice notification. 22 — API callback; 23 — Local call. |
| session | String | Call identifier. |
| seq | String | Message sequence number. |
| userData | String | Customer-defined returned data. |
| area | String | Province or region. |
| city | String | City. |
| timeLength | String | Call duration. |
| releaseCause | String | Release cause code; see the release cause reference. |
| ivr | String | IVR ID; present only when IVR push is configured. |
| ivrHistory | Array | IVR records; present only when IVR push is configured. |
| callResult | String | Analysis result code; see the call analysis reference. |
| typeResult | String | success = successful; fail = failed; leak = missed; illegal = error. |
| callStatus | String | 1 = answered; 2 = not answered; 3 = invalid/unassigned number. |
| usageMode | String | WEB = initiated on web; API = initiated via API; OTHERS = other. |
| label | Array | Customer labels. |
| iccid | String | SIM card identifier. |
| imei | String | International mobile equipment identifier. |
| deviceID | String | Android device ID. |
| deviceName | String | Android device name. |
| appVersion | String | Android application version. |
| errMsg | String | Error returned by the API route. |
| errMsgCN | String | API route error translated into Chinese. |
| trunkIndex | String | Trunk ID. |
| trunkType | String | AG trunk or SIP trunk. |
| trunkName | String | SIP trunk name or AG trunk username. |
| trunkPeerIP | String | SIP peer information; blank for AG trunks. |
| trunkUsername | String | Registered trunk username; blank for non-registered SIP trunks and AG trunks. |
| releasePart | String | 0 = called party (default); 1 = calling party. |
| inQueueTime | String | Timestamp when the customer entered the call queue. |
| outQueueTime | String | Timestamp when the customer left the call queue. |
| field | Object | Custom fields: each entry contains name and value. |
Notification example
{
"authentication": {
"customer": "<CUSTOMER_ID>",
"timestamp": "<REQUEST_TIMESTAMP>",
"seq": "<UNIQUE_SEQUENCE>",
"digest": "<COMPUTED_DIGEST>"
},
"notify": {
"type": "billing",
"startTime": "<YYYY-MM-DD HH:mm:ss>",
"ringTime": "<YYYY-MM-DD HH:mm:ss>",
"answerTime": "<YYYY-MM-DD HH:mm:ss>",
"byeTime": "<YYYY-MM-DD HH:mm:ss>",
"staffNo": "<STAFF_NO>",
"group1": "",
"group2": "",
"callee": "",
"numberX": "",
"caller": "",
"keyPress": "",
"taskID": "",
"taskName": "",
"recordFile": "",
"service": "",
"session": "<CALL_SESSION>",
"seq": "",
"userData": "<REFERENCE>",
"area": "",
"city": "",
"timeLength": "",
"releaseCause": "",
"ivr": "",
"ivrHistory": [],
"callResult": "",
"typeResult": "",
"callStatus": "",
"usageMode": "",
"label": [],
"iccid": "",
"imei": "",
"deviceID": "",
"deviceName": "",
"appVersion": "",
"errMsg": "",
"errMsgCN": "",
"trunkIndex": "",
"trunkType": "",
"trunkName": "",
"trunkPeerIP": "",
"trunkUsername": "",
"releasePart": "",
"inQueueTime": "",
"outQueueTime": "",
"field": {
"reserve_1": {
"name": "",
"value": ""
}
}
}
}Acknowledgment and retry
Return HTTP 200 and the documented result object. The source specifies that non-200 responses are retried; if all 20 retries fail, the platform stops pushing.
{
"result": {
"error": 0,
"msg": ""
}
}Examples use placeholders. Request your approved connection details and credentials through ANNC onboarding.