Send Notifications to Slack

You can easily configure Express to send alert or incident notifications to Slack using the Slack API. The following steps describe the workflow.

In Slack:

  1. Go to your Slack app and create a new channel with a descriptive name such as express-incidents.

  2. Log in to your organization's Slack site and create a new Slack bot with a descriptive name such as express-bot.

  3. Make sure that the bot is running in the new channel you just created.

  4. Copy/paste the API key for the bot into a text file.

In Express:

  • Type: Incident (recommended)

  • URL: https://slack.com/api/chat.postMessage

  • Authorization:

    • Authorization = Bearer Token

    • Paste the API key for the Slack bot into the field provided.

  • Headers: Add the following key-value pair:

    Content-type = application/json

  • Body: Enter a JSON structure in the following format. You can use Incident Labeler tags to customize the the "text" description that appears in Slack.Incident labeler

    {"channel":"<destination-slack-channel>", "text" : "incident $description"}