Get a list of agents or managers.
curl --location 'http://localhost:3000/api/v1/livechat/users/agent' \
--header 'X-Auth-Token: Y97tM4GkYjgaH_fIO5dwBitQQvm3yp-AptYzGQZMX6e' \
--header 'X-User-Id: CkCPNcvsvCDfmWLqC' \
--data ''
{
"users": [
{
"_id": "XLzGrYF9L2miSpPHP",
"username": "dialog.bot",
"status": "offline",
"statusLivechat": "not-available",
"name": "Dialog Bot",
"emails": [
{
"address": "dialog.bot@test.com",
"verified": true
}
],
"livechat": null,
"departments": []
},
{
"_id": "rbAXPnMktTFbNpwtJ",
"username": "john.doe",
"status": "offline",
"statusLivechat": "available",
"name": "John Doe",
"emails": [
{
"address": "john.doe@gmail.com",
"verified": true
}
],
"livechat": {
"maxNumberSimultaneousChat": ""
},
"departments": [
"64181a0728384134ed600dcc"
]
},
{
"_id": "hFDuCPam7sWziWFYa",
"username": "hookdeck.write",
"status": "offline",
"statusLivechat": "not-available",
"name": "Hookdeck Write",
"emails": [
{
"address": "hookdeckwrite@gmail.com",
"verified": true
}
],
"livechat": null,
"departments": []
},
{
"_id": "stjxrXYBWy3EcDugH",
"username": "rocket.agent",
"status": "offline",
"statusLivechat": "not-available",
"name": "Rocket Agent",
"emails": [
{
"address": "rocket.agent@rocket.chat",
"verified": false
}
],
"livechat": {
"maxNumberSimultaneousChat": ""
},
"departments": [
"64181a0728384134ed600dcc"
]
}