CALL CENTER API · ENGLISH REFERENCE
Query agent information
Retrieve agent staff numbers, names, group membership and recent activity with pagination.
API path
/openapi/V2.0.8/getAgentInfoOn this pageCommon request fieldsRequest parametersRequest exampleResponse envelopeAgent response fields
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 |
|---|---|---|---|---|
| type | String | No | 1–40 | neverCalled queries records that have never called; empty or omitted queries all agents. |
| page | Int | No | 1–2000; default 1 | Page number. |
| pageSize | Int | No | 1–2000; default 20 | Rows per page. |
Request example
{
"authentication": {
"customer": "<CUSTOMER_ID>",
"timestamp": "<REQUEST_TIMESTAMP>",
"seq": "<UNIQUE_SEQUENCE>",
"digest": "<COMPUTED_DIGEST>"
},
"request": {
"seq": "<REQUEST_SEQUENCE>",
"userData": "<REFERENCE>",
"type": "",
"page": 1,
"pageSize": 20
}
}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. |
Agent response fields
The source example uses an object with numbered agent entries and a page object. The example uses Name, while the field table uses name; retain the actual response key observed in your integration.
| Field | Type | Description |
|---|---|---|
| id | Int | Agent ID. |
| Name / name | String | Agent name. |
| StaffNo | String | Agent staff number. |
| groupId1 | Int | Primary group ID. |
| groupId2 | Int | Secondary group ID (0 means none). |
| loginTime | Int | Most recent login time (0 means none). |
| okmaLoginTime | Int | Most recent app login time (0 means none). |
| workTime | Int | Most recent call time (0 means none). |
| groupName1 | String | Primary group name. |
| groupName2 | String | Secondary group name. |
| page.total | Int | Total results. |
| page.page | Int | Current page. |
| page.pageSize | Int | Rows per page. |
{
"result": {
"error": 0,
"msg": "Success"
},
"data": {
"seq": "<SEQUENCE>",
"response": {
"seq": "<REQUEST_SEQUENCE>",
"userData": "<REFERENCE>",
"result": {
"error": 0
},
"data": {
"0": {
"id": "<AGENT_ID>",
"Name": "<AGENT_NAME>",
"StaffNo": "<STAFF_NO>",
"groupId1": "<GROUP_ID>",
"groupId2": "0",
"loginTime": "0",
"okmaLoginTime": "0",
"workTime": "0",
"groupName1": "<GROUP_NAME>",
"groupName2": ""
},
"page": {
"total": "1",
"page": 1,
"pageSize": 20
}
}
}
},
"logs": null
}Examples use placeholders. Request your approved connection details and credentials through ANNC onboarding.