- If the
typeismanager, permission required:view-livechat-manager. - If the
typeisagent, permission required: at least one oftransfer-livechat-guestoredit-omnichannel-contact.
Changelog
| Version | Description |
|---|---|
| 2.2.0 | Added support to pagination |
| 0.42.0 | Added |
The authToken of the authenticated user.
The userId of the authenticated user.
The type of user that you want to register. The value can either be agent or manager.
Number of items to "skip" in the query, i.e. requests return count items, skipping the first offset items. Refer to the official documentation to learn more.
List of fields to order by, and in which direction. JSON object, with properties listed in desired order, with values of 1 for ascending, or -1 for descending. For example, sort = {"value": -1, "_id": 1}. Refer to the official documentation to learn more.
When set to true, it only list agents whose livechat status (statusLivechat) is available.
When set to false, offline agents will be excluded from the response. This filter does not apply to bots. All bot agents will be returned in the response.
The ID of a specific agent to exclude from the list.
Enter the text you want to filter the search result with.
OK
{
"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"
]
}
]
}Unauthorized
{
"status": "error",
"message": "You must be logged in to do this."
}Forbidden
{
"success": false,
"error": "User does not have the permissions required for this action [error-unauthorized]"
}{
"success": false,
"error": "unauthorized"
}