Skip to content

Integrate Slack Bot

Endpoint to integrate a Slack bot into the ToolzzAI agent.

Terminal window
curl --request POST \
--url https://converflow.api.prod.toolzz.media/api/v1/slack/integration \
--header 'Authorization: Bearer TOKEN_HERE' \
--header 'Content-Type: application/json' \
--data '
{
"unitId": "uuid",
"title": "<string>",
"signingSecret": "<full_secret_string>",
"botToken": "xoxb-<full_token_string>",
"replyOnMention": boolean,
"replyInDms": boolean,
"threadAutoReply": boolean,
"channelIds": [
"<channel_id_string>"
]
}
'
{
"id": "uuid",
"botId": null,
"unitId": "uuid",
"teamId": "T<string>",
"title": "<string>",
"botToken": "xoxb-<string_masked>",
"signingSecret": "<string_masked>",
"isActive": true,
"isTokenMasked": true,
"scope": "all",
"channelIds": ["string"],
"channelsDetail": [],
"defaultChannelId": null,
"replyOnMention": true,
"replyInDms": true,
"threadAutoReply": true,
"welcomeMessage": "",
"createdAt": "YYYY-MM-DD HH:mm:ss.SSSSSS",
"updatedAt": "YYYY-MM-DD HH:mm:ss.SSS",
"deletedAt": null
}
ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
unitIdUUIDUnique identifier of the owning organizational unit.Yes
titleStringFriendly name to identify the integrated function (e.g., “Slack Integration”).Yes
signingSecretStringSecret Key: Used to verify that requests really come from Slack.Yes
botTokenStringOAuth Token (xoxb): Authorization credential for the bot to act in the workspace.Yes
replyOnMentionBooleanIf true, the AI only responds when mentioned with @.Yes
replyInDmsBooleanIf true, the AI can respond in private Direct Messages.Yes
threadAutoReplyBooleanIf true, the AI will respond within conversation threads.Yes
channelIdsArray[Str]List of IDs of the channels where the bot will have permission to act.Yes
KeyTypeDescriptionRequired
idUUIDUnique identifier of the integration configuration in the system.Yes
botIdNull/UUIDToolzz AI Agent ID: Currently null; needs to be linked to an AI.No
unitIdUUIDUnique identifier of the owning organizational unit.Yes
teamIdStringUnique identifier of the Workspace (Team) on Slack (e.g., starts with T).Yes
titleStringName assigned to the configuration (e.g., “Slack Bot”).Yes
botTokenStringOAuth access token (masked by asterisks).Yes
signingSecretStringSigning secret key (masked by asterisks).Yes
isActiveBooleanDefines if the integration is active and ready to operate.Yes
isTokenMaskedBooleanConfirms that sensitive tokens are hidden in the response.Yes
scopeStringBot’s scope of action (e.g., all).Yes
channelIdsArray[Str]List of IDs of the channels allowed for interaction.Yes
channelsDetailArrayEmpty list that can contain extra channel metadata.No
defaultChannelIdNull/StrMain channel for system-triggered messages.No
replyOnMentionBooleanIf true, the AI only responds if marked with @.Yes
replyInDmsBooleanIf true, the AI responds in private conversations (Direct Messages).Yes
threadAutoReplyBooleanIf true, the AI responds within conversation threads (Threads).Yes
welcomeMessageStringWelcome message for new users.No
createdAtStringExact record creation date and time (ISO 8601).Yes
updatedAtStringDate and time of the last data change.Yes
deletedAtNullDeletion date (null indicates that the record is active).No

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