Agent click-to-call
Initiate a call from a specified agent to an authorized destination. The call center first connects the agent and then the destination.
/openapi/V2.0.8/callNumberDescription
The customer business system uses this API to initiate a call for a specified agent. The agent leg is called first. A successful request means the platform has accepted the call request, not that the destination has answered. Use only approved caller IDs and authorized calling destinations.
Common request fields
The authentication object is required. Use the account credentials provided during onboarding; see the API overview. Request seq and userData are separate from authentication.seq.
| Field | Type | Required | Length / constraints | Description |
|---|---|---|---|---|
| seq | String | No | 0–20 | Message sequence number; currently not used by these request fields. |
| userData | String | No | 0–60 | Customer-defined correlation data; truncated beyond 60 characters. Use letters, digits and the documented ASCII punctuation. |
Request parameters
| Field | Type | Required | Length / constraints | Description |
|---|---|---|---|---|
| agent | String | Yes | 1–7 | Agent staff number. |
| caller | String | No | 1–30 | Approved calling number; if omitted, the platform uses its existing configured calling number. |
| callee | int64 | Yes | 1–30 | Destination number. The source example represents it as a quoted value; confirm the expected representation during onboarding. |
| localCall | int64 | No | Default 0 | Whether to use the local calling assistant: 1 = enabled, 0 = disabled. |
| localCallMode | int64 | No | Default 0 | 1 = assigned virtual-number resource; 0 = system-selected mode. |
| noUseBlApi | int64 | No | Default 0 | Remote blacklist configuration. Keep the approved suppression policy enabled; confirm permitted values with your ANNC implementation team. |
| lineMode | int64 | No | Default 0 | 1 = SIP trunk; 2 = virtual-number mode; 3 = callback; 4 = local direct dialing; 5 = SIP virtual-number mode. |
Request example
{
"authentication": {
"customer": "<CUSTOMER_ID>",
"timestamp": "<REQUEST_TIMESTAMP>",
"seq": "<UNIQUE_SEQUENCE>",
"digest": "<COMPUTED_DIGEST>"
},
"request": {
"seq": "<REQUEST_SEQUENCE>",
"userData": "<REFERENCE>",
"caller": "<APPROVED_CALLER_ID>",
"callee": "<AUTHORIZED_DESTINATION>",
"agent": "<STAFF_NO>",
"noUseBlApi": 0,
"lineMode": 0
}
}Response envelope
The top-level result describes the request; data.response carries command-specific status and echoed correlation fields. logs may include debugging information when enabled.
| Field | Type | Description |
|---|---|---|
| result.error | String | Error code. |
| result.msg | String | Request result description. |
| data.seq | String | Message sequence number. |
| data.response | Object | Command-level response. |
| data.response.seq | String | Echoed request sequence. |
| data.response.userData | String | Echoed customer data. |
| data.response.result | Object | Command result; inspect error. |
Response example
error = 0 means the request was received and the call is ready to be initiated.
{
"result": {
"error": 0,
"msg": "Success"
},
"data": {
"seq": "<SEQUENCE>",
"response": {
"seq": "<REQUEST_SEQUENCE>",
"userData": "<REFERENCE>",
"result": {
"error": 0
},
"msg": {
"errno": "0x00000000",
"msg": "Success"
}
}
},
"logs": ""
}