Get the agents of a specific department.
HTTP Method | URL | Requires Auth |
---|---|---|
GET | /api/v1/livechat/department/:_id/agents | yes |
{% hint style="info" %} Permissions required:
view-livechat-departments
view-l-room
{% endhint %}
This endpoints supports the #pagination query parameters.
Key | Example Value | Description |
---|---|---|
_id * | BiqbQav59HD2LzXEY | The department ID. |
{% code overflow="wrap" %}
curl --location 'https://writing-demo.dev.rocket.chat/api/v1/livechat/department/649230d479f5c6e272/agents' \
--header 'X-Auth-Token: oKUJdR1jFvJ7kNEIYBqAX' \
--header 'X-User-Id: CkCPNcvsvCDfmWLqC'
{% endcode %}
{
"agents": [
{
"_id": "SWugWdHhcTX4G2NAP",
"agentId": "rocket.cat",
"departmentId": "BiqbQav59HD2LzXEY",
"_updatedAt": "2021-07-14T14:58:01.013Z",
"count": 17,
"departmentEnabled": true,
"order": 0,
"username": "rocket.cat"
}
],
"count": 1,
"offset": 0,
"total": 1,
"success": true
}