Supported version: Cloud based
API Rate Limit: 30000 requests/hour/workspace.
Supported Authentication: Token based Authentication
IMPORTANT: Please make sure your Slack Connector instance must be accessible from the Klera Machine.
Steps to generate API Key from Slack UI:
1. Go to https://api.slack.com and click on "Create an App" button.
2. Define an appropriate name for the App and select your Slack workspace from the "Development Slack Workspace dropdown.
3. Click on "Create App".
4. In the "Add features and functionality" section, go to "Permissions".
5. Scroll down and you will find "Scopes" section.
6. In the "User Token Scopes" section, click "Add an OAuth Scope" and select the following scopes:
1.) channels:read
2.) chat:write
3.) files:read
4.) groups:read
5.) im:read
6.) mpim:read
7.) users.profile:read
8.) users:read
9.) search:read
10.) chat:write:user
11.) chat:write:bot
7. After adding all the above mentioned scopes, scroll up and click "Install to Workspace".
8. A web page will appear for your app asking permissions to access your Slack workspace.
9. Click "Allow". You may need administrative rights to perform this steps.
10. Copy the OAuth Token and save it in a Notepad file. This token will be used as API Key.
Copy the User OAuth and Bot User Token both.
To configure Slack to use token based authentication, follow the steps below:-
- Enter Slack URL: https://api.slack.com.
- Select “Create New Account” and add user friendly name for account “Slack Account”
- Check "Pass Parameter(s) in Header" and enter following details:
1. Token Parameter Key : Authorization
2. Value : Bearer <Your API Key> - Click on “Save”.