Skip to content

Get Units

Endpoint used to fetch all units of the institution.

Terminal window
curl --request GET \
--url https://chat.api.toolzz.com.br/api/v1/unity/ \
--header 'Authorization: Bearer TOKEN_HERE'
{
"items": [
{
"id": "uuid",
"institutionId": "uuid",
"name": "<string>",
"isActivated": true,
"credentialProjectId": "uuid"
}
],
"unityCount": 123,
"activeCount": 123,
"unityLimit": 123
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes

KeyTypeDescription
itemsArrayList containing the configuration objects of the units.
items[].idUUIDUnique unit identifier.
items[].institutionIdUUIDIdentifier of the institution the unit belongs to.
items[].nameStringUnit identification name (e.g., Commercial, HR, etc).
items[].isActivatedBooleanIndicates if the unit is active in the system.
items[].credentialProjectIdUUIDID of the credentials project linked to this unit.
unityCountNumberTotal number of registered units.
activeCountNumberNumber of units that are currently active.
unityLimitNumberMaximum limit of units allowed by the institution’s plan.

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request. Additionally, the API is protected by other security measures to safeguard user data.

To access your access token, follow these steps:

  1. Log in to the ToolzzAI platform
  2. Click on “Settings”
  3. Click on “Access Token”
  4. Copy the access token

Access token page