Skip to content

Latest commit

 

History

History
64 lines (53 loc) · 1.9 KB

File metadata and controls

64 lines (53 loc) · 1.9 KB

Get Livechat Queue

HTTP MethodURLRequires Auth
GET/api/v1/livechat/queueyes

{% hint style="info" %} Permission required: view-l-room {% endhint %}

Query Parameters

This endpoint supports the optional #pagination parameters. Other optional parameters are as follows:

KeyExample ValueDescription
includeOfflineAgentstrueWhether you want to include offline agents or not.
agentIdaobEdbYhXfu5dsd9The agent ID.
departmentId3n2kj3n2j3fu5hkeqGThe department ID.

Example Call

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     http://localhost:3000/api/v1/livechat/queue?includeOfflineAgents=true

Example Response

{
    "queue": [
    {
      "chats": 1,
      "user": {
        "_id": "CaevAPDbXN252kyXa",
        "username": "marcos.defendi",
        "status": "online"
      },
      "department": {
        "_id": "457diLwcQMmdpaTjo",
        "name": "Department 1"
      }
    },
    {
      "chats": 2,
      "user": {
        "_id": "CaevAPDbXN252kyXa",
        "username": "marcos.defendi",
        "status": "online"
      },
      "department": {
        "_id": "5mt9oEtQxuMMH23Co",
        "name": "Department 2"
      }
    }
  ],
  "count": 2,
  "offset": 0,
  "total": 2,
  "success": true
}

Change Log

Version Description
2.4.0 Added