Get details of a specific unit.
| HTTP Method | URL | Requires Auth |
|---|---|---|
GET | /api/v1/livechat/units/:unitId | yes |
{% hint style="info" %}
Permission required: manage-livechat-units
{% endhint %}
| Key | Example Value | Description |
|---|---|---|
unitId* | sriw2wmP2Zz2pPrre | The unit ID. |
{% code overflow="wrap" %}
curl --location --request GET 'http://localhost:3000/api/v1/livechat/units/sriw2wmP2Zz2pPrre \
--header 'X-Auth-Token: myauth-token' \
--header 'X-User-Id: myuser-name'{% endcode %}
{
"_id": "LnM2rzbknjYSkkd5p",
"name": "Sales Unit",
"visibility": "public",
"type": "u",
"numMonitors": 1,
"numDepartments": 2,
"_updatedAt": "2022-09-15T11:44:15.721Z",
"success": true
}