Toolzz AI
- Introduction
- Planos
- ChatService
- Auth
- Institution
- Unity
- Bot
- Widget
- GenAI
- Fallback
- Member
- Function
- Credential
- KnowledgeBase
- Voice
- Audio
- Toolzz Analytics
- Kratos
Create Fallback
Endpoint to create Fallback
curl --request POST \
--url https://chat.api.toolzz.com.br/api/v1/bot/configuration/fallback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"botId": "<string>",
"fallBacks": [
{}
]
}'
{
"items": [
{
"id": "<string>",
"botId": "<string>",
"order": 123,
"credentialId": "<string>",
"model": "<string>",
"createdAt": "<string>",
"credential": {
"id": "<string>",
"name": "<string>",
"userId": "<string>",
"unityId": "<string>",
"integrationId": "<string>",
"secretId": "<string>",
"status": true,
"virtualKey": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"integration": {
"id": "<string>",
"name": "<string>",
"iconId": "<string>",
"type": "<string>",
"form": [
{
"name": "<string>",
"type": "<string>",
"label": "<string>",
"maxLenght": "<string>",
"required": true
}
],
"status": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"slug": "<string>",
"file": {
"id": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"institutionId": "<string>",
"type": "<string>",
"fileName": "<string>",
"internalStorageUrl": "<string>",
"url": "<string>",
"size": 123,
"extension": "<string>",
"maskName": "<string>"
}
}
}
}
]
}
Body Description
The botId
The fallBacks
Response Description
Below you will see the description of the Fallback creation response
List of configurations.
Unique identifier for the configuration.
ID of the associated bot.
Order or priority of the configuration.
ID of the associated credential.
Model name used in the configuration.
Date and time when the configuration was created.
Credential details associated with the configuration.
Unique identifier for the credential.
Name of the credential.
ID of the user associated with the credential.
ID of the unity associated with the credential.
ID of the integration linked to the credential.
Secret ID for the credential.
Indicates if the credential is active.
Virtual key associated with the credential.
Date and time when the credential was created.
Date and time when the credential was last updated.
Details of the integration linked to the credential.
Unique identifier for the integration.
Name of the integration.
ID of the icon associated with the integration.
Type of the integration (e.g., LLM).
Indicates if the integration is active.
Date and time when the integration was created.
Date and time when the integration was last updated.
Slug identifier for the integration.
File details associated with the integration.
Unique identifier for the file.
Date and time when the file was created.
Date and time when the file was last updated.
ID of the institution associated with the file.
Type of the file (e.g., WidgetHeaderIcon).
Name of the file.
Internal storage URL for the file.
Public URL for the file.
Size of the file in bytes.
File extension (e.g., png).
Optional mask name for the file.
Segurança
Para acessar este endpoint, é necessário enviar um token de acesso válido através do cabeçalho de autorização (Authorization) da requisição. Além disso, a API é protegida por outras medidas de segurança para proteger os dados dos usuários.
curl --request POST \
--url https://chat.api.toolzz.com.br/api/v1/bot/configuration/fallback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"botId": "<string>",
"fallBacks": [
{}
]
}'
{
"items": [
{
"id": "<string>",
"botId": "<string>",
"order": 123,
"credentialId": "<string>",
"model": "<string>",
"createdAt": "<string>",
"credential": {
"id": "<string>",
"name": "<string>",
"userId": "<string>",
"unityId": "<string>",
"integrationId": "<string>",
"secretId": "<string>",
"status": true,
"virtualKey": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"integration": {
"id": "<string>",
"name": "<string>",
"iconId": "<string>",
"type": "<string>",
"form": [
{
"name": "<string>",
"type": "<string>",
"label": "<string>",
"maxLenght": "<string>",
"required": true
}
],
"status": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"slug": "<string>",
"file": {
"id": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"institutionId": "<string>",
"type": "<string>",
"fileName": "<string>",
"internalStorageUrl": "<string>",
"url": "<string>",
"size": 123,
"extension": "<string>",
"maskName": "<string>"
}
}
}
}
]
}