Skip to content

Update Discord Bot Integration

Endpoint to update a Discord bot in the ToolzzAI agent.

Terminal window
curl --request PUT \
--url https://chat.api.toolzz.com.br/api/v1/discord/integration/{integrationId} \
--header 'Authorization: Bearer TOKEN_HERE' \
--header 'Content-Type: application/json' \
--data '
{
"botId": "uuid",
"unitId": "uuid",
"title": "string",
"guildId": "string_digits",
"guildName": "string",
"channelIds": [
"string_digits"
],
"channelsDetail": [
{
"id": "string_digits",
"name": "string"
}
],
"permissions": "string_digits",
"autoReplyOnMention": true,
"threadAutoCreate": true,
"scope": "all | mentions | none"
}
'
{
"id": "uuid",
"botId": "uuid",
"unitId": "uuid",
"title": "string",
"isActive": true,
"connectionStatus": "string",
"guildId": "string_digits",
"guildName": "string",
"botToken": "string",
"isTokenMasked": true,
"permissions": "string_digits",
"scope": "string",
"welcomeMessage": "string",
"autoReplyOnMention": true,
"threadAutoCreate": true,
"channelIds": [
"string_digits"
],
"channelsDetail": [
{
"id": "string_digits",
"name": "string"
}
],
"lastConnectedAt": "string",
"lastDisconnectedAt": null,
"lastConnectionErrorCode": null,
"lastConnectionErrorMessage": null,
"createdAt": "2026-04-17 12:26:12.804444",
"updatedAt": "2026-04-17 12:42:02.807",
"deletedAt": null
}
ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
integrationIdStringDiscord integration IDYes
ParameterTypeDescriptionRequired
botIdUUIDUnique bot identifier in the Toolzz AI system.Yes
unitIdUUIDUnique identifier of the owning organizational unit.Yes
titleStringIntegration identifier name (e.g., “Discord Support”).Yes
guildIdStringDiscord server Snowflake ID.Yes
guildNameStringDiscord server name.Yes
channelIdsArray[Str]List of channel IDs that the bot should actively monitor.Yes
permissionsStringNumeric permission string (Bitwise) of the bot.Yes
autoReplyOnMentionBooleanIf true, the bot will automatically respond when mentioned.Yes
threadAutoCreateBooleanIf true, the bot will manage conversations through threads.Yes
scopeStringBot reading scope (all, mentions, or none).Yes
channelsDetail[]Array[Obj]List of objects with basic channel information:Yes
channelsDetail[].idStringChannel Snowflake ID.Yes
channelsDetail[].nameStringChannel name (e.g., “general”).Yes

KeyTypeDescription
idUUIDUnique identifier of the integration configuration in the database.
botIdUUIDBot identifier associated within the Toolzz AI platform.
unitIdUUIDUnique identifier of the organizational unit owning this configuration.
titleStringIntegration identifier name or label (e.g., “discord”).
isActiveBooleanDefines if the integration is enabled (true) or paused (false).
connectionStatusStringReal-time status of the connection with the Discord API (e.g., connected).
guildIdStringSnowflake ID (numeric) of the Discord server.
guildNameStringServer name as registered on Discord.
botTokenStringBot authentication token (displayed in a masked form).
isTokenMaskedBooleanSignals if the returned token is hidden for security reasons.
permissionsStringNumeric string representing the Bitwise permissions of the bot on the server.
scopeStringDefines the scope of the bot’s reading (e.g., all, mentions).
welcomeMessageStringCustom message sent by the bot when starting a new interaction.
autoReplyOnMentionBooleanIf active, the bot generates automatic responses when mentioned with @.
threadAutoCreateBooleanIf active, the bot organizes conversations by automatically creating threads.
channelIds[]Array[Str]List of IDs of the channels selected for active monitoring.
channelsDetail[]Array[Obj]List of objects with mapping of all server channels:
channelsDetail[].idStringChannel ID.
channelsDetail[].nameStringReadable channel name (e.g., “general”, ”🔐”).
lastConnectedAtStringDate and time of the most recent established connection (ISO 8601).
lastDisconnectedAtString/NullDate and time of the last time the bot was disconnected.
lastConnectionErrorCodeString/NullTechnical error code in case of connection attempt failure.
lastConnectionErrorMessageString/NullDetailed description of the error generated in the last connection attempt.
createdAtStringOriginal record creation date and time.
updatedAtStringDate and time of the last modification in the fields or status.
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