Skip to content
Docs

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.

  1. Create a new Slack app at api.slack.com/apps — from scratch or from a manifest — and pick your development workspace.
  2. In the app’s settings, open OAuth & Permissions in the left sidebar. Add the callback URL from the connect form under Redirect URLs.
  3. 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.
  4. The connect flow redirects users to https://slack.com/oauth/v2/authorize with your bot scopes in scope (comma-separated) and any user scopes in user_scope.
  5. After the user approves, Slack redirects back with a one-time code, which is exchanged at https://slack.com/api/oauth.v2.access (HTTP Basic with client ID/secret is recommended; form parameters are also accepted).
  6. The response carries the bot token (xoxb-, in access_token) with its granted scopes, and — when user scopes were requested — a user token (xoxp-) under authed_user.
  7. 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-After header in seconds (rate limits).

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.