Skip to content

Latest commit

 

History

History
54 lines (44 loc) · 1.85 KB

File metadata and controls

54 lines (44 loc) · 1.85 KB
description
Retrieves chat totalizers for a department

Chat Totalizers

URL Requires Auth HTTP Method
api/v1/livechat/analytics/dashboards/chats-totalizers YES GET

Headers

Argument Example Required Description
X-User-Id myuser-name Required Your username hash (returned after you log in through the API)
X-Auth-Token myauth-token Required Your token (returned after you log in through the API)

Parameters

Argument Example Required Description
departmentId CAJioQNAvLnYWTy8i Required Business Hour ID
start 2021-07-20T19:00:00.000Z Required Start Time
end 2021-07-21T18:59:59.000Z Required End Time

Example Call

curl --location --request GET 'http://localhost:3000/api/v1/livechat/analytics/dashboards/chats-totalizers?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'

Result

{
    "totalizers": [
        {
            "title": "Total_abandoned_chats",
            "value": 0
        },
        {
            "title": "Avg_of_abandoned_chats",
            "value": "0%"
        },
        {
            "title": "Avg_of_chat_duration_time",
            "value": "00:00:00"
        }
    ],
    "success": true
}