Set up Slack authorization for Postman Flows

To run Postman Flows templates that use Slack, you need to set up authorization between Slack and Postman. You can do this by creating a Slack app with a bot user and storing its token as an environment variable in Postman.

Before you get started, you need:

Create a Slack app and bot

To create a Slack app and bot user to use with Postman Flows, do the following:

  1. Log in to the Slack developer console.

  2. Select Create an App, and then select From scratch.

  3. For App Name, enter a name for the app.

  4. Select the Slack workspace where you want to install the bot, and then select Create App.

  5. Under Features, select Bot Users > Add a Bot User.

  6. Enter a display name for the bot, and then select Save Changes.

  7. In the sidebar, select OAuth & Permissions. Assign the following scopes to the bot:

    • chat:write
    • channels:read
    • groups:read
    • channels:join
    • im:read
    • incoming-webhook
    • mpim:read
  8. Select Save Changes.

  9. Install the app to your workspace.

  10. After installation, you can access the OAuth token for the bot. Copy the token, and then save it as a variable named Slack_Bot_Token in your Postman environment.

Invite the bot to a Slack channel

  1. Open your Slack workspace.

  2. Select the Slack channel where you want the bot to post messages.

  3. View the channel details to locate its channel ID.

  4. Copy the channel ID, and then save it as a variable named Slack_Channel_ID in your Postman environment.

  5. Open the channel where you want to add the bot. Enter /invite @YourBotName, replacing YourBotName with the username you gave the bot.

Next steps

After you've completed your Slack configuration, you can return to the flow template or set up authorization for another integration in Postman.

Last modified: 2024/12/06