Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.75 KB

File metadata and controls

51 lines (38 loc) · 1.75 KB
description
Gives the total service time sorted by agent

Agents total service time

URL Requires Auth HTTP Method
api/v1/livechat/analytics/agents/total-service-time 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
start 2020-09-09T00:11:22.345Z Required start date
end 2020-09-10T23:59:22.345Z Required end date

{% hint style="info" %} Service time means how long time the agent is online and available. It doesn't mean how long time the agent was busy serving chats. {% endhint %}

Example Call

curl --location --request GET 'http://localhost:3000/api/v1/livechat/analytics/agents/total-service-time?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'

Result

{
    "agents": [],
    "count": 0,
    "offset": 0,
    "total": 0,
    "success": true
}

Change Log