Creating a Slack app for OAuth v2
This guide is part of the Publicus connection catalog. Once you have the credentials, connect the service and Publicus stores them for you.
Distilled from Slack’s own documentation: Quickstart, Installing with OAuth, oauth.v2.access, Distribution. Retrieved 2026-07-03.
- Create a new Slack app at api.slack.com/apps — from scratch or from a manifest — and pick your development workspace.
- In the app’s settings, open OAuth & Permissions in the left sidebar. Add the callback URL from the connect form under Redirect URLs.
- On the same page, add the Bot Token Scopes (and/or User Token Scopes) your flows need — see the capability scopes in this catalog entry.
- The connect flow redirects users to
https://slack.com/oauth/v2/authorizewith your bot scopes inscope(comma-separated) and any user scopes inuser_scope. - After the user approves, Slack redirects back with a one-time
code, which is exchanged athttps://slack.com/api/oauth.v2.access(HTTP Basic with client ID/secret is recommended; form parameters are also accepted). - The response carries the bot token (
xoxb-, inaccess_token) with its granted scopes, and — when user scopes were requested — a user token (xoxp-) underauthed_user. - To let workspaces other than your own install the app, enable Public Distribution under Manage Distribution.
Operational notes:
- Tokens do not expire by default; enabling token rotation (irreversible) switches to 12-hour access tokens with single-use
xoxe-refresh tokens (token rotation). - Rate limiting is per method, workspace, and app: HTTP 429 with a
Retry-Afterheader in seconds (rate limits).
Connect it to Publicus
Section titled “Connect it to Publicus”Open Connections under Credentials, choose Slack, and pick Slack OAuth v2. Publicus asks for exactly the fields listed above and keeps them in your workspace’s secret storage.
See also: Slack in the catalog.
This guide is maintained by Publicus and published under CC BY 4.0.