Slack uses OAuth 2.0 for authentication. You will need to create a Slack app and configure a bearer token for the app.

1. Creating a user

All API Tokens are associated with a user / service account. This step is optional, but recommended rather than using an account of an employee. If the employee leaves and their account is deactivated, your API could stop working.

2. Create a Slack App

Go to Slack API and create a new app. Click on "Create New App" and Navigate to From scratch -> Give the appa name and select your workspace from the dropdown -> click on "Create App".

3. Configure the App

On the left panel navigare to OAuth & Permissions -> Add the following scopes in Scopes -> Bot Token Scopes -> Add an OAuth Scope -> Add the following scopes: groups:history groups:read channels:join chat:write chat:write.public

4. Install the App

On the left panel navigate to Install App -> Click on Install App to Workspace -> Click on Allow.

A Bot User OAuth Access Token will be generated. This is your bearer token. Please copy and save it.

5. Configure the Integration

Secret The OAuth Token created in step 4.