Skip to content

Latest commit

 

History

History
64 lines (53 loc) · 2.28 KB

File metadata and controls

64 lines (53 loc) · 2.28 KB

Get Total Transferred Chats

Gives the total number of transferred chats by department.

HTTP MethodURLRequires Auth
GET/api/v1/livechat/analytics/departments/total-transferred-chatsyes

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

Query Parameters

This endpoint supports the offset and count parameters from the #paginationquery parameters. The other parameters are as follows:

KeyExample ValueDescription
start*2020-09-09T00:11:22.345ZThe start date.
end*2021-09-10T23:59:22.345ZThe end date.

Example Call

{% code overflow="wrap" %}

curl --location --request GET 'http://localhost:3000/api/v1/livechat/analytics/departments/total-transferred-chats?start=2020-09-10T23:59:22.345Z&end=2021-09-10T23:59:22.345Z' \
--header 'X-Auth-Token: myauth-token' \
--header 'X-User-Id: myuser-name'

{% endcode %}

Example Response

{
    "departments": [
        {
            "numberOfTransferredRooms": 62,
            "_id": "GgYvrkAF63aeQmsh4"
        },
        {
            "numberOfTransferredRooms": 6,
            "_id": "Yi87Ju7eTHiZQ7CJt"
        },
        {
            "numberOfTransferredRooms": 10,
            "_id": "sLYp3ry7CRizaP3rJ"
        },
        {
            "numberOfTransferredRooms": 6,
            "_id": "BiqbQav59HD2LzXEY"
        },
        {
            "numberOfTransferredRooms": 27,
            "_id": "CAJioQNAvLnYWTy8i"
        },
        {
            "numberOfTransferredRooms": 1,
            "_id": "8MGLTfaKLCbE9CqR8"
        }
    ],
    "count": 6,
    "offset": 0,
    "total": 6,
    "success": true
}