Skip to content

Integrate Telegram Bot

Endpoint to integrate a Telegram bot into the ToolzzAI agent.

Terminal window
curl --request POST \
--url https://chat.api.toolzz.com.br/api/v1/telegram/integration \
--header 'Authorization: Bearer TOKEN_HERE' \
--header 'Content-Type: application/json' \
--data '
{
"botId": "uuid",
"unitId": "uuid",
"title": "string",
"scope": "both | private | groups",
"botToken": "telegram_bot_token"
}
'
{
"id": "uuid",
"title": "string",
"connectionStatus": "string",
"guildName": "string",
"channelsDetail": [
{
"id": "string_digits",
"name": "string"
}
],
"channelIds": ["string_digits"],
"isActive": true,
"createdAt": "2026-04-17 12:26:12.804444"
}
ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)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 where the bot will act (e.g., private, groups, or both).Yes
botTokenStringOfficial authentication token generated by @BotFather on Telegram.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 Support”).
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.
scopeStringBot’s scope of action (e.g., both, private, group).
welcomeMessageStringAutomatic greeting text sent when starting an interaction.
createdAtStringRecord creation date and time (ISO 8601).
updatedAtStringDate and time of the last configuration modification.
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