Retrieves the number of agents for each status.
HTTP Method | URL | Requires Auth |
---|---|---|
GET | /api/v1/livechat/analytics/dashboards/charts/agents-status | yes |
{% hint style="info" %}
Permission required: view-livechat-manager
{% endhint %}
Key | Example Value | Description |
---|---|---|
departmentId | CAJioQNAvLnYWTy8i | The department ID. This parameter is optional. |
{% 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 %}
{
"_id": null,
"offline": 78,
"away": 5,
"busy": 0,
"available": 3,
"success": true
}