Skip to main content

Slack

Slack is a team communication tool that allows you to chat, share files, and collaborate with your team.

Authentication Types

Slack supports 3 authentication methods:

  • OAuth - Create your own Slack app with custom scopes. Every user connects with their Slack account.

    • Pros: Full control, per-user tracking, production-ready
    • Cons: ~2 min setup
  • Instant OAuth - Use Webrix's pre-configured Slack app for the fastest setup.

    • Pros: Fastest setup, no configuration needed
    • Cons: Limited scopes, not recommended for production
  • API Key - Use a bot token or user token for all users.

    • Pros: Easy setup
    • Cons: Less secure, no per-user tracking

Setting up OAuth

  1. Go to https://api.slack.com/apps
  1. Click Create New App

  2. Choose From scratch

  1. Enter an App Name and select the Workspace to develop in
  1. Click Create App

  2. In the left sidebar, go to OAuth & Permissions

  1. Scroll down to Scopes and add the User Token Scopes you need
  1. Scroll up and click Install to Workspace
  1. Review the permissions and click Allow

  2. In the left sidebar, go to Basic Information

  3. Under App Credentials, copy the Client ID and Client Secret

  1. In Webrix, paste the Client ID and Client Secret

  2. Copy the Redirect URL from Webrix

  3. In Slack, go to OAuth & Permissions and add the Redirect URL under Redirect URLs

  1. In Webrix, select the same scopes you configured in Slack

  2. Click Save Changes

Generating an API Key (Bot Token)

  1. Go to https://api.slack.com/apps

  2. Select your app or create a new one

  3. Go to OAuth & Permissions

  4. Under Bot Token Scopes, add the scopes you need

  1. Install the app to your workspace

  2. Copy the Bot User OAuth Token (starts with xoxb-)

  1. Paste the token into Webrix