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.
| Term | Meaning |
|---|---|
| Business system client | The 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 API | An API providing the call service’s basic functions. |
| Customer-specific API | An API customized for a particular customer; agreed custom behavior may differ from the general API. |
| Request sequence number | The HTTP request sequence identifier used for authentication; it is returned in the response. |
Notification delivery
Configure the delivery mode during onboarding.
| Mode | Description |
|---|---|
| IP / hostname and port | For special server and configuration requirements only. |
| URL push | Recommended: configure a receiving URL on the customer server. |
| No push | Do 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.
| Field | Type | Required | Length / constraints | Description |
|---|---|---|---|---|
| customer | string | Yes | Format: uppercase C followed by digits | Customer identifier issued when applying for API access. |
| timestamp | string | Yes | Timestamp | Request timestamp. Source examples use different timestamp units; confirm the accepted format for your deployment. |
| seq | string | Yes | Up to 20 characters | Unique request sequence number within the applicable time window. |
| digest | string | Yes | MD5 digest | Computed 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/jsonRequest 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
| Symbol | Value | Meaning | Notes |
|---|---|---|---|
| E_SUCC | 0 | Success | |
| E_S_AUTH_FAIL | 1 | Authentication failed | Authentication digest comparison failed. |
| E_W_DB_OPT_FAIL | 4 | Database operation failed | |
| E_C_INVALID_PARAM | 5 | Invalid parameter | Request data validation failed. |
| E_C_INVALID_MSG | 8 | Invalid request format | Overall request validation failed. |
| E_C_UNSUPPORT_API_VERSION | 10 | Unsupported API version | Invalid version number or format in URL. |
| E_C_UNSUPPORT_API_REQUEST | 11 | Unsupported API request | Invalid API name or URL format. |
| E_G_RES_NOT_EXIST | 0xF1000008 | Resource does not exist | For example, an agent staff number or task ID does not exist. |
| E_G_STAFF_NO_EXIST | 0xF1000013 | Specified staff number does not exist | For example, the agent does not exist. |
| E_G_DATASYN_FAIL | 0xF1000016 | Data synchronization failed | A system module failed to synchronize data. |