Skip to content

Get Credentials by Unit

Endpoint used to get credentials by unit.

Terminal window
curl --request GET \
--url https://chat.api.toolzz.com.br/api/v1/credential/unity/{id} \
--header 'Authorization: Bearer TOKEN_HERE' \
{
"items": [
{
"id": "<string>",
"name": "<string>",
"userId": "<string>",
"unityId": "<string>",
"integrationId": "<string>",
"secretId": "<string>",
"status": true,
"virtualKey": "<string>",
"credentials": {},
"createdAt": "<string>",
"updatedAt": "<string>",
"integration": {
"id": "<string>",
"name": "<string>",
"iconId": "<string>",
"type": "<string>",
"status": true,
"validationEndpoint": "<string>",
"slug": "<string>",
"form": [
{
"name": "<string>",
"label": "<string>",
"type": "<string>",
"maxLength": 123,
"required": true,
"description": "<string>"
}
],
"createdAt": "<string>",
"updatedAt": "<string>",
"icon": {
"id": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"institutionId": "<string>",
"type": "<string>",
"fileName": "<string>",
"internalStorageUrl": "<string>",
"url": "<string>",
"size": 123,
"extension": "<string>",
"maskName": "<string>"
}
}
}
]
}

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

KeyTypeDescription
itemsArrayList containing the objects of the registered credentials.
items[].idUUIDUnique identifier of the credential.
items[].nameStringName assigned to the credential (e.g., “My OpenAI Key”).
items[].userIdUUIDIdentifier of the user who owns the credential.
items[].unityIdUUIDIdentifier of the organizational unit to which the credential belongs.
items[].integrationIdUUIDIdentifier of the linked integration type.
items[].secretIdUUIDInternal identifier of the secret stored in the key vault.
items[].statusBooleanIndicates if the credential is active and ready for use.
items[].virtualKeyStringVirtual key used to mask the real identification in logs and routes.
items[].credentialsObjectObject with technical authentication fields (usually omitted in the listing for security reasons).
items[].createdAtStringRecord creation date and time.
items[].integrationObjectObject containing details of the integration provider.
items[].integration.nameStringService provider name (e.g., “Gemini”, “Stripe”).
items[].integration.typeStringIntegration category (e.g., llm, voice, monetization).
items[].integration.slugStringFriendly textual identifier of the provider.
items[].integration.formArrayDefinition of the form fields required by this provider.
items[].integration.form[].labelStringDisplay name of the field in the interface.
items[].integration.form[].requiredBooleanDefines if the field is mandatory to configure the credential.
items[].integration.iconObjectMetadata of the integration’s icon image file.
items[].integration.icon.urlURLDirect link to the provider’s logo image.
items[].integration.icon.sizeNumberImage file size in bytes.
items[].integration.icon.extensionStringFile extension (e.g., png, svg).

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