Invite Agent

Invite an agent or department to a case.

Invite an agent

POST https://{{account_id}}.acquire.io/api/v1/crm/messenger/agent/invite-agent

Invite agents or departments to the chat. The caseId must be passed in the body of the request. The agent IDs or department IDs (agentId | department) must be passed to the body as a JSON array of integers. You can add as many agents as you'd like and invite a department. Agents or departments will receive an in-app notification and an email which they can use to access the conversion. agentId - An agent's ID. To find agent IDs, log in to Acquire and go to Settings > Users and Roles or send a GET request to Agent List. department - A department's ID. Send a GET request to Department List to find department IDs.

Headers

Request Body

{
  "data": {
    "1": {
      "userId": 1,
      "online": true,
      "sent": true
    },
    "11": {
      "userId": 11,
      "online": false,
      "sent": false
    },
    "26": {
      "userId": 26,
      "online": false,
      "sent": false
    }
  

Body (raw)

{
    "caseId": 22,
    "department": [
    2,
    3,
    4
  ],
    "agentIds": [
        1,
        11,
        26
    ]
}

Last updated