Create a Slack app
- Go to api.slack.com/apps and select Create New App.
- Choose Starter app and select the Slack workspace where the app will run.
- Open OAuth & Permissions. Under Bot Token Scopes, add
chat:write.
Enable incoming webhooks
- In your app settings, open Incoming Webhooks.
- Turn on Activate Incoming Webhooks.
- Select Add New Webhook to Workspace. Choose the channel where Midway should post and authorize the app.
- Copy the generated webhook URL.
incoming-webhook permission as part of creating the webhook; this is separate from the chat:write bot scope. You can create additional webhooks for other channels from Incoming Webhooks.
Add the webhook to Midway
Run the Midway setup command and paste the webhook URL when prompted:notification.send_to and include Slack; configured methods left out of the list will not receive notifications. With pick_from: All, Midway sends through every method listed there:
pick_from can further select a subset of the methods in send_to for each notification.
The current setup prompt accepts one webhook URL per configuration. Creating additional Slack webhooks does not add more Midway prompts; use a separate configuration for another channel.
You can also add the webhook URL directly to midway.yaml under tokens.slack:
Slack may limit message delivery from apps that have not been published or
distributed. Limits can depend on Slack’s current policies, so check Slack’s
documentation before relying on an unpublished app for high-volume
notifications.