Get Percentage of Abandoned Chats

Gives the percentage of abandoned chats per department.

Permission required: view-livechat-manager

Query Parameters

Example Call

curl --location --request GET 'http://localhost:3000//api/v1/livechat/analytics/departments/percentage-abandoned-chats?start=2020-02-12T00:11:22.345Z&end=2020-02-18T23:59:22.345Z' \
--header 'X-Auth-Token: myauth-token' \
--header 'X-User-Id: myuser-name'

Example Response

{
    "departments": [
        {
            "_id": "64cf6c6feb07a913d946f34d",
            "percentageOfAbandonedChats": 0
        },
        {
            "_id": null,
            "percentageOfAbandonedChats": 0
        },
        {
            "_id": "649230d479f5c6e276cf4a12",
            "percentageOfAbandonedChats": 0
        },
        {
            "_id": "64181a0728384134ed600dcc",
            "percentageOfAbandonedChats": 11
        }
    ],
    "count": 4,
    "offset": 0,
    "total": 4,
    "success": true
}

Last updated

Rocket.Chat versions receive support for six months after release.