Communication

Slack OAuth Integration

Connect Slack to your application without building and maintaining the OAuth flow.

Each user connects their own Slack workspace through your OAuth app. Pathfix manages the authorization flow, stores and refreshes their tokens, and authenticates the requests your application makes to the Slack Web API. What your app posts, reads or reacts to is defined by your code.

Start building with Pathfix Read the setup guide

What can you build?

Examples of what the Slack API supports. Your application implements the logic; Pathfix authenticates the requests.

  • Post messages from your app

    Send updates to a channel the user chooses when something happens in your product.

  • Format messages with Block Kit

    Use blocks to lay out richer messages than plain text.

  • Let users choose where messages go

    List the conversations your app can access so users can pick a channel or direct message.

  • Look up workspace members

    Match people in your product to members of their Slack workspace.

How Pathfix helps

  • 01

    OAuth authorization

    Pathfix runs the authorization flow with your Slack OAuth app, so users approve access on Slack’s own consent screen.

  • 02

    Token management

    Each user’s access and refresh tokens are stored by Pathfix rather than in your application.

  • 03

    Token refresh

    Where Slack issues refresh tokens, Pathfix refreshes them as they expire, so connections keep working after the first authorization.

  • 04

    Authenticated API passthrough

    Your application sends Slack API requests through Pathfix, which adds the connected user’s credentials before passing them on to Slack.

You own the Slack OAuth application and its credentials, and your code implements the API logic.

Passthrough endpoint for SlackPOST https://labs.pathfix.com/oauth/method/slack/call

How to get started

  1. 1

    Create a Slack app in Slack's app settings

    The app gives your application its own OAuth credentials.

  2. 2

    Copy your Client ID and Client Secret

    These belong to your Slack app. Pathfix uses them to run the OAuth flow as your application.

  3. 3

    Choose your scopes

    Add the scopes for the Web API methods you plan to call. Slack lists the required scopes on each method's documentation page.

  4. 4

    Add the credentials in Pathfix

    In your Pathfix account, add an application, select Slack from the providers and enter the Client ID and Client Secret.

  5. 5

    Let your users authorize

    Add the connect step to your app. Each user signs in to Slack and approves the scopes you requested.

  6. 6

    Call the Slack API

    Send requests through the Pathfix passthrough API using the provider reference slack.

The Pathfix setup guide for Slack covers the app settings Slack requires.

Documentation

More Communication integrations

Your Slack OAuth app. Your users.

Start building with Pathfix Browse all integrations