Slack API
Set up a Slack bot with API access for posting messages, reading channels, and responding to events.
getapi slack
Prerequisites
- A Slack workspace where you have permission to install apps
- Admin or app-installation permissions in that workspace
Credentials
| Variable | Description | Sensitive |
|---|---|---|
SLACK_BOT_TOKEN |
Bot User OAuth Token (starts with xoxb-) | Secret |
SLACK_SIGNING_SECRET |
Signing secret for verifying requests from Slack | Secret |
Setup Steps
- 1 Info
- 2 Open URL
- 3 Choice
- 4 Info
- 5 Confirm
- 6 Info
- 7 Info
- 8 Confirm
- 9 Info
- 10 Confirm
- 11 Input
- 13 Input
- 14 Validate
Things to Know
- Bot tokens start with 'xoxb-'. User tokens start with 'xoxp-'. Make sure you're using the bot token.
- The signing secret is used to verify that incoming requests actually come from Slack. You'll need it if you're handling events, slash commands, or interactive messages.
- If you change scopes after installing, you must reinstall the app to the workspace for changes to take effect.
- Bots can only access channels they've been invited to. Use '/invite @yourbot' in a channel to add it.
- Slack's free tier limits message history to 90 days.