Skip to content

Get Functions by Unit

Endpoint used to get unit functions.

Terminal window
curl --request GET \
--url https://chat.api.toolzz.com.br/api/v1/functions/unity/{id} \
--header 'Authorization: Bearer TOKEN_HERE'
{
"items": [
{
"id": "uuid",
"institutionId": "uuid",
"userId": "uuid",
"unityId": "uuid",
"code": "string",
"description": "string",
"iconFileId": "uuid",
"status": true,
"name": "string",
"pluginIcon": {
"id": "uuid",
"institutionId": "uuid",
"type": "string",
"fileName": "string",
"internalStorageUrl": "string",
"url": "string",
"maskName": "string",
"createdAt": "date",
"updatedAt": "date",
"extension": "string",
"size": 123,
"numberWords": null
},
"color": "string",
"outputs": [
{
"required": false,
"id": "uuid",
"type": "string",
"description": "string",
"customFunctionId": "uuid",
"property": "string"
}
],
"isActivated": true,
"type": "string",
"googleCalendarPlugin": [
{
"id": "uuid",
"googleId": "string",
"calendarId": "string",
"timezone": "string",
"pluginId": "uuid",
"notificationType": null,
"notificationContentType": null,
"notificationContent": null,
"notificationDelayMs": 123,
"notificationWaitForSpeech": 123,
"createdAt": "date",
"updatedAt": "date",
"googleUser": {
"name": "string",
"given_name": "string",
"family_name": "string",
"picture": "string",
"email": "string",
"hd": "string"
},
"googleToken": "string"
}
],
"discordPlugin": [],
"telegramPlugin": []
}
],
"pluginCount": 123,
"activeCount": 123,
"pluginLimit": 123
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
unityIdUUIDUnit unique identifier.Yes
KeyTypeDescription
itemsArrayList of objects containing the plugins/functions.
items[].idUUIDUnique plugin identifier.
items[].codeStringSource code or plugin integration reference.
items[].descriptionStringDescription of the business rule for activation.
items[].statusBooleanAvailability status in the system.
items[].nameStringFriendly name of the plugin.
items[].pluginIconObjectIcon metadata (null if no custom icon).
items[].outputsArrayDefinition of parameters and output variables.
items[].isActivatedBooleanIndicates if the plugin is currently turned on.
items[].typeStringPlugin category (e.g., google-calendar or null).
items[].googleCalendarPluginArrayList of Google Calendar integration settings.
items[].googleCalendarPlugin[].googleUserObjectLinked Google user profile data (name, email, photo).
items[].googleCalendarPlugin[].googleTokenStringAccess token for the Google API.
items[].discordPluginArraySpecific settings for Discord integration.
items[].telegramPluginArraySpecific settings for Telegram integration.
pluginCountNumberTotal registered plugins.
activeCountNumberTotal currently active plugins.
pluginLimitNumberMaximum limit of plugins allowed for the account.

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