Unverified Commit a59c7dfe authored by Andres Mauricio Arrieta Afanador's avatar Andres Mauricio Arrieta Afanador Committed by gitbook-bot
Browse files

GitBook: [master] 2 pages modified

parent 4d86d5c7
......@@ -482,6 +482,7 @@
* [Open](api/rest-api/methods/im/open.md)
* [Set Topic](api/rest-api/methods/im/settopic.md)
* [Omnichannel \(Livechat\)](api/rest-api/methods/livechat/README.md)
* [Agents average service time](api/rest-api/methods/livechat/agents-average-service-time.md)
* [Total abandoned chats by department](api/rest-api/methods/livechat/total-abandoned-chats-by-department.md)
* [Percentage of abandoned chats by department](api/rest-api/methods/livechat/percentage-of-abandoned-chats-by-department.md)
* [Agents available for service time](api/rest-api/methods/livechat/agents-available-for-service-time.md)
......
---
description: Gives the total of abandoned chats by department
---
# Agents average service time
| URL | Requires Auth | HTTP Method |
| :--- | :--- | :--- |
| `api/v1/livechat/analytics/agents/average-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 |
#### Notes
* \*\* The API will return a blank page if the correct headers are not sent
### Example Call
```bash
curl --location --request GET 'http://localhost:3000/api/v1/livechat/analytics/agents/average-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
```javascript
{
"departments": [],
"count": 0,
"offset": 0,
"total": 0,
"success": true
}
```
### Change Log
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment