Slack#
You can use these credentials to authenticate the following nodes:
Prerequisites#
Create a Slack account.
Using OAuth#
Note for n8n Cloud users
You'll only need to enter the Credentials Name and click on the circle button in the OAuth section to connect your Slack account to n8n.
- Open the Slack API page.
- Click on the Create an app button and select From scratch.
- Enter an App Name in the corresponding field.
- Select a workspace for your app from the dropdown list.
- Click on the Create App button.
- Scroll down to the App Credentials section.
- Copy and paste Client ID and Client Secret in the corresponding fields of your n8n credentials.
- On the Basic Information page, navigate to Building Apps for Slack > Add features and functionality > Permissions.
- In the Redirect URLs section, click on Add New Redirect URL.
- Copy the OAuth Callback URL provided in n8n and paste it here.
- Click on the Save URLs button.
- Scroll down to the Scopes section.
- Add the required scopes under the Bot Token Scopes section. You can refer to the list of scopes on the Scopes and permissions documentation on Slack.
- Click on the circle button in the OAuth section to connect a Slack account to n8n.
- Click the Save button to save your credentials in n8n.
- Return to the Slack OAuth & Permissions page, scroll up to the OAuth Tokens for Your Workspace section and click on Install to Workspace button.
- Click on the Allow button.
Using Access Token#
- Open the Slack API page.
- Click on the Create an app button and select From scratch.
- Enter an App Name in the corresponding field.
- Select a workspace for your app from the dropdown list.
- Click on the Create App button.
- In the Add features and functionality section select Permissions.
-
Scroll down to the Scopes section and:
- If you want your app to act on behalf of users that authorize the app, add the required scopes under the User Token Scopes section.
- If you're building a bot, add the required scopes under the Bot Token Scopes section.
Tip
You can refer to the list of scopes on the officials Slack Scopes and permissions documentation.
-
From the OAuth Tokens for Your Workspace section click on the Install to Workspace button.
- Click on the Allow button.
- In n8n, enter the Access Token created above.
- Click the Save button to save your credentials in n8n.
Privacy policy#
For details about how you data is collected and used, see the n8n and Slack privacy policies.