Credentials
1. Create a Slack App
- Go to https://api.slack.com/apps
- Create New App -> From scratch
- Name it (e.g., “Mirage”) and select your workspace
2. Configure Bot Permissions
- OAuth & Permissions in the left sidebar
- Under Bot Token Scopes, add:
channels:history- read messages in public channelschannels:read- list public channelsgroups:history- read messages in private channels (optional)groups:read- list private channels (optional)chat:write- send messages (for write mode)
3. Install to Workspace
- Install App in the left sidebar -> Install to Workspace
- Authorize the requested permissions
- Copy the Bot User OAuth Token (
xoxb-...)
4. Optional: Enable Workspace Search
Slack’ssearch.messages API does not accept bot tokens. To use slack search or workspace-level search push-down:
- Add
search:readunder User Token Scopes. - Reinstall or reauthorize the app.
- Copy the resulting User OAuth Token (
xoxp-...).