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:
- Create a new App: https://api.slack.com/apps
- Navigate to App Home
- Click Review Scopes to Add
- Under Scopes, click Add an OAuth Scope and then add the conversations.create and conversations.invite scopes
- Click Install to Workspace and then copy the Bot User OAuth Token
Leave a Reply