Home / Developers / Call Center API / Query agent information
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/getAgentInfo

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
typeStringNo1–40neverCalled queries records that have never called; empty or omitted queries all agents.
pageIntNo1–2000; default 1Page number.
pageSizeIntNo1–2000; default 20Rows 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.

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.

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.

FieldTypeDescription
idIntAgent ID.
Name / nameStringAgent name.
StaffNoStringAgent staff number.
groupId1IntPrimary group ID.
groupId2IntSecondary group ID (0 means none).
loginTimeIntMost recent login time (0 means none).
okmaLoginTimeIntMost recent app login time (0 means none).
workTimeIntMost recent call time (0 means none).
groupName1StringPrimary group name.
groupName2StringSecondary group name.
page.totalIntTotal results.
page.pageIntCurrent page.
page.pageSizeIntRows 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.
WhatsApp