Home / Developers / Call Center API / Agent click-to-call
CALL CENTER API · ENGLISH REFERENCE

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.

API path/openapi/V2.0.8/callNumber

Description

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.

FieldTypeRequiredLength / constraintsDescription
seqStringNo0–20Message sequence number; currently not used by these request fields.
userDataStringNo0–60Customer-defined correlation data; truncated beyond 60 characters. Use letters, digits and the documented ASCII punctuation.

Request parameters

FieldTypeRequiredLength / constraintsDescription
agentStringYes1–7Agent staff number.
callerStringNo1–30Approved calling number; if omitted, the platform uses its existing configured calling number.
calleeint64Yes1–30Destination number. The source example represents it as a quoted value; confirm the expected representation during onboarding.
localCallint64NoDefault 0Whether to use the local calling assistant: 1 = enabled, 0 = disabled.
localCallModeint64NoDefault 01 = assigned virtual-number resource; 0 = system-selected mode.
noUseBlApiint64NoDefault 0Remote blacklist configuration. Keep the approved suppression policy enabled; confirm permitted values with your ANNC implementation team.
lineModeint64NoDefault 01 = 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.

FieldTypeDescription
result.errorStringError code.
result.msgStringRequest result description.
data.seqStringMessage sequence number.
data.responseObjectCommand-level response.
data.response.seqStringEchoed request sequence.
data.response.userDataStringEchoed customer data.
data.response.resultObjectCommand 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": ""
}
Examples use placeholders. Request your approved connection details and credentials through ANNC onboarding.
WhatsApp