Slack API Tips/Tricks

Slack offers a modern Rest API. You can authenticate with OAuth2 or via various token types that Slack offers. Bot tokens are the best practice for most use cases, but user tokens and app tokens are also offered.

Here are instructions for getting a Bot Token that can then be used for making calls to the Slack API:

  1. Create a new App:
  2. Navigate to App Home
  3. Click Review Scopes to Add
  4. Under Scopes, click Add an OAuth Scope and then add the conversations.create and conversations.invite scopes
  5. Click Install to Workspace and then copy the Bot User OAuth Token