Skip to content

Get Credentials by Type

Endpoint used to get credentials by type.

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

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
idStringUnit IDYes
typeStringCredential typeYes

Credential types: llm, voice, monetization, dataset, analytics, phone


KeyTypeDescription
credentialsObjectContains the data of the credential instance configured by the user.
credentials.idUUIDCredential unique identifier in the database.
credentials.nameStringIdentification name of the credential (e.g., “OpenAI Marketing”).
credentials.statusBooleanIndicates if the credential is enabled for use.
credentials.virtualKeyStringVirtual identification key for internal processes.
integrationObjectTechnical details of the provider (integration) to which the credential belongs.
integration.nameStringService provider name (e.g., “Open AI”, “Gemini”).
integration.typeStringIntegration category (e.g., llm, voice, monetization).
integration.slugStringSimplified textual identifier of the service.
integration.formArrayStructure of fields required to configure a credential of this type.
integration.iconObjectMetadata of the provider’s icon image file.
integration.icon.urlURLDirect link to view the service’s logo.

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