Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
36 lines (27 loc) · 1.16 KB

File metadata and controls

36 lines (27 loc) · 1.16 KB

Get Status of Agents

Retrieves the number of agents for each status.

HTTP MethodURLRequires Auth
GET/api/v1/livechat/analytics/dashboards/charts/agents-statusyes

{% hint style="info" %} Permission required: view-livechat-manager {% endhint %}

Query Parameters

KeyExample ValueDescription
departmentIdCAJioQNAvLnYWTy8iThe department ID. This parameter is optional.

Example Call

{% code overflow="wrap" %}

curl --location --request GET 'http://localhost:3000/api/v1/api/v1/livechat/analytics/dashboards/charts/agents-status\
--header 'X-Auth-Token: myauth-token' \
--header 'X-User-Id: myuser-name'

{% endcode %}

Example Response

{
    "_id": null,
    "offline": 78,
    "away": 5,
    "busy": 0,
    "available": 3,
    "success": true
}