Livechat Queue
Get the queued chats.
URL | Requires Auth | HTTP Method |
---|---|---|
/api/v1/livechat/queue | yes | GET |
Argument | Example | Required | Description |
---|---|---|---|
includeOfflineAgents | true | Optional | Whether include offline agents or not. |
agentId | aobEdbYhXfu5dsd9 | Optional | The agent's id. |
departmentId | 3n2kj3n2j3fu5hkeqG | Optional | The department's id. |
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
http://localhost:3000/api/v1/livechat/queue?includeOfflineAgents=true
{
"queue": [
{
"chats": 1,
"user": {
"_id": "CaevAPDbXN252kyXa",
"username": "marcos.defendi",
"status": "online"
},
"department": {
"_id": "457diLwcQMmdpaTjo",
"name": "Department 1"
}
},
{
"chats": 2,
"user": {
"_id": "CaevAPDbXN252kyXa",
"username": "marcos.defendi",
"status": "online"
},
"department": {
"_id": "5mt9oEtQxuMMH23Co",
"name": "Department 2"
}
}
],
"count": 2,
"offset": 0,
"total": 2,
"success": true
}
Version | Description |
---|---|
2.4.0 | Added |
Last modified 3mo ago