Home / Developers / Call Center API
CALL CENTER API · ENGLISH REFERENCE

Call Center API

English API reference for contact center integration, authentication, agent management, call event notifications, CDR queries and recording access.

Terminology

The terms below are used throughout this API reference.

TermMeaning
Business system clientThe customer’s business-system client.
Request (message)An HTTP request sent from the customer server to the call service.
Push (notification)An HTTP request sent from the call service to the customer server.
General APIAn API providing the call service’s basic functions.
Customer-specific APIAn API customized for a particular customer; agreed custom behavior may differ from the general API.
Request sequence numberThe HTTP request sequence identifier used for authentication; it is returned in the response.

Notification delivery

Configure the delivery mode during onboarding.

ModeDescription
IP / hostname and portFor special server and configuration requirements only.
URL pushRecommended: configure a receiving URL on the customer server.
No pushDo not receive notification messages.

Authentication

Every request body must contain an authentication object. The customer account and password are supplied by the service provider during onboarding. Never transmit the password in request messages, public documentation or logs.

FieldTypeRequiredLength / constraintsDescription
customerstringYesFormat: uppercase C followed by digitsCustomer identifier issued when applying for API access.
timestampstringYesTimestampRequest timestamp. Source examples use different timestamp units; confirm the accepted format for your deployment.
seqstringYesUp to 20 charactersUnique request sequence number within the applicable time window.
digeststringYesMD5 digestComputed from the customer identifier, timestamp, sequence number and shared password.

Digest calculation

The original interface calculates the digest in the following exact order. Compute it server-side using the actual assigned password; do not send that password. Use the approved secure connection settings supplied during onboarding.

MD5(customer + "@" + timestamp + "@" + seq + "@" + password)

Request format

The source reference uses the following URL format. Host, port and actual connection settings are supplied during onboarding. All content must be UTF-8 without a byte-order mark (BOM) and valid JSON. The authentication object carries authentication data; the request object contains endpoint-specific parameters.

http://ip:port/openapi/V2.0.8/apiName

Accept: application/json
Content-Type: application/json

Request example

Replace every placeholder with values from your approved integration.

{
  "authentication": {
    "customer": "<CUSTOMER_ID>",
    "timestamp": "<REQUEST_TIMESTAMP>",
    "seq": "<UNIQUE_SEQUENCE>",
    "digest": "<COMPUTED_DIGEST>"
  },
  "request": {}
}

Response format

userData is customer-defined data returned to the customer. result describes execution status; data contains command execution details; logs carries diagnostic information when available.

{
  "result": {
    "error": "",
    "msg": ""
  },
  "data": {
    "seq": "",
    "response": {
      "seq": "",
      "userData": "",
      "result": {
        "error": "",
        "msg": ""
      }
    }
  },
  "logs": ""
}

General error codes

SymbolValueMeaningNotes
E_SUCC0Success
E_S_AUTH_FAIL1Authentication failedAuthentication digest comparison failed.
E_W_DB_OPT_FAIL4Database operation failed
E_C_INVALID_PARAM5Invalid parameterRequest data validation failed.
E_C_INVALID_MSG8Invalid request formatOverall request validation failed.
E_C_UNSUPPORT_API_VERSION10Unsupported API versionInvalid version number or format in URL.
E_C_UNSUPPORT_API_REQUEST11Unsupported API requestInvalid API name or URL format.
E_G_RES_NOT_EXIST0xF1000008Resource does not existFor example, an agent staff number or task ID does not exist.
E_G_STAFF_NO_EXIST0xF1000013Specified staff number does not existFor example, the agent does not exist.
E_G_DATASYN_FAIL0xF1000016Data synchronization failedA system module failed to synchronize data.
Examples use placeholders. Request your approved connection details and credentials through ANNC onboarding.
WhatsApp