Skip to content

Get Credentials by Integration

Endpoint used to get credentials by integration.

Terminal window
curl --request GET \
--url https://chat.api.toolzz.com.br/api/v1/credential/unity/{id}/integration/{integrationId} \
--header 'Authorization: Bearer TOKEN_HERE' \
[
{
"credentials": {
"id": "uuid",
"name": "string",
"userId": "uuid",
"unityId": "uuid",
"integrationId": "uuid",
"secretId": "uuid",
"status": boolean,
"virtualKey": "string",
"createdAt": "date-time",
"updatedAt": "date-time"
},
"integration": {
"id": "uuid",
"name": "string",
"iconId": "uuid",
"type": "string",
"status": boolean,
"validationEndpoint": "url",
"slug": "string",
"form": [
{
"name": "string",
"type": "string",
"label": "string",
"maxLenght": "number",
"required": boolean
}
],
"icon": {
"id": "uuid",
"url": "url",
"extension": "string",
"size": number
}
}
}
]

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
unitIdStringUnit IDYes
integrationIdStringCredential integration IDYes

Parent ObjectKeyTypeDescription
credentialsidUUIDUnique identifier of the credential (UUID).
nameStringUser-assigned name for the credential.
userIdUUIDOwning user ID.
unityIdUUIDOrganizational unit ID (business unit).
integrationIdUUIDReference ID of the source integration.
secretIdUUIDAssociated secret key ID in the data vault.
statusBooleanCredential status (true = Active, false = Inactive).
virtualKeyStringInternal virtual key (optional).
createdAtStringCreation date (ISO 8601).
updatedAtStringLast update date (ISO 8601).
integrationidUUIDUnique identifier of the integration tool.
nameStringOfficial tool name (e.g., Toolzz Chat).
iconIdUUIDID of the associated icon file.
typeStringCategory (e.g., analytics, crm, marketing).
statusBooleanIf the integration is available in the system.
validationEndpointStringURL to validate the credential via external API.
slugStringFriendly URL identifier (e.g., toolzz-chat).
createdAtStringIntegration registration date in the system.
updatedAtString/NullDate of the last change in the integration definition.
integration.form[]nameStringTechnical field name (e.g., api_token).
typeStringInput type (e.g., string, password).
labelStringName displayed to the user in the interface.
maxLenghtStringMaximum character limit.
requiredBooleanIf the field is required to save.
integration.iconidUUIDUnique identifier of the icon file.
institutionIdUUID/NullInstitution ID (if it’s a private icon).
typeStringFile type (e.g., accountIcon).
fileNameStringFile name on the server (with hash).
internalStorageUrlURLInternal access path (private storage).
urlURLPublic link/CDN to display the icon.
maskNameString/NullMask name for the file (if any).
extensionStringFile extension (e.g., png, svg).
sizeNumberFile size in bytes.
numberWordsNullLegacy field (not used for icons).
createdAtStringDate the icon was uploaded.
updatedAtString/NullLast update date of the icon.

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