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

Agent login

Log in the specified agent.

API path/openapi/V2.0.8/agentLogin

Description

Log in the specified agent.

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.

Agent parameter

FieldTypeRequiredLength / constraintsDescription
agentStringYes1–7Agent staff number.

Request example

{
  "authentication": {
    "customer": "<CUSTOMER_ID>",
    "timestamp": "<REQUEST_TIMESTAMP>",
    "seq": "<UNIQUE_SEQUENCE>",
    "digest": "<COMPUTED_DIGEST>"
  },
  "request": {
    "seq": "<REQUEST_SEQUENCE>",
    "userData": "<REFERENCE>",
    "agent": "<STAFF_NO>"
  }
}

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

The source example represents msg as an object containing errno and a nested JSON-encoded message.

{
  "result": {
    "error": 0,
    "msg": "Success"
  },
  "data": {
    "seq": "<SEQUENCE>",
    "response": {
      "seq": "<REQUEST_SEQUENCE>",
      "userData": "<REFERENCE>",
      "result": {
        "error": 0
      },
      "msg": {
        "errno": "",
        "msg": "{\"errno\":\"\",\"msg\":\"\"}"
      }
    }
  },
  "logs": ""
}
Examples use placeholders. Request your approved connection details and credentials through ANNC onboarding.
WhatsApp