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

Latest commit

 

History

History
43 lines (34 loc) · 1.67 KB

File metadata and controls

43 lines (34 loc) · 1.67 KB

Get Chat Status of Agents

Retrieves the status of chats per agent for a specific time duration.

HTTP MethodURLRequires Auth
GET/api/v1/livechat/analytics/dashboards/charts/chats-per-agentyes

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

Query Parameters

KeyExample ValueDescription
start*2021-07-20T19:00:00.000ZThe start time.
end*2021-07-21T18:59:59.000ZThe end time.
departmentIdCAJioQNAvLnYWTy8iThe department ID. This parameter is optional.

Example Call

{% code overflow="wrap" %}

curl --location --request GET 'http://localhost:3000/api/v1/livechat/analytics/dashboards/charts/chats-per-agent?departmentId=CAJioQNAvLnYWTy8i&start=2021-07-20T19:00:00.000Z&end=2021-07-21T18:59:59.000Z\
--header 'X-Auth-Token: myauth-token' \
--header 'X-User-Id: myuser-name'

{% endcode %}

Example Response

{
    "test.cat": {
        "open": 1,
        "closed": 4
    },
    "kim.jane": {
        "open": 1,
        "closed": 3
    },
    "lee.keith": {
        "open": 0,
        "closed": 4
    },
    "success": true
}