Skip to content

Update Telegram Bot

Endpoint to update a Telegram bot in the ToolzzAI agent.

Terminal window
curl --request PUT \
--url https://chat.api.toolzz.com.br/api/v1/telegram/integration/{integrationId} \
--header 'Authorization: Bearer TOKEN_HERE' \
--header 'Content-Type: application/json' \
--data '
{
"botId": "uuid",
"unitId": "uuid",
"title": "string",
"scope": "string"
}
'
{
"id": "uuid",
"botId": "uuid",
"unitId": "uuid",
"title": "<string>",
"isActive": true,
"botToken": "telegram_bot_token",
"isTokenMasked": true,
"scope": "<string>",
"welcomeMessage": "<string>",
"createdAt": "2026-04-23 17:16:28.699018",
"updatedAt": "2026-04-23 17:19:46.607",
"deletedAt": null
}
ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
integrationIdUUIDUnique integration identifier in the database.Yes
KeyTypeDescriptionRequired
botIdUUIDUnique bot identifier in the Toolzz AI system.Yes
unitIdUUIDUnique identifier of the owning organizational unit.Yes
titleStringCustom identifier name for the integration.Yes
scopeStringDefines the new scope of action for the bot (e.g., groups, private, or both).Yes
KeyTypeDescription
idUUIDUnique identifier of the integration configuration in the database.
botIdUUIDIdentifier of the bot associated within the Toolzz AI platform.
unitIdUUIDUnique identifier of the owning organizational unit.
titleStringIntegration identifier name (e.g., “Telegram Bea”).
isActiveBooleanDefines if the integration is active and enabled to process messages.
botTokenStringTelegram authentication token (API Key), returned in a masked form.
isTokenMaskedBooleanSignals if the botToken in the response is hidden for security.
scopeStringUpdated scope of action (e.g., groups, private, both).
welcomeMessageStringAutomatic greeting text sent when starting an interaction.
createdAtStringOriginal record creation date and time (ISO 8601).
updatedAtStringDate and time of the last modification (reflects the moment of update).
deletedAtString/NullLogical deletion date (Soft Delete), if the record was removed.

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