Slack¶
Send alerts to a Slack channel using an incoming webhook.
Setup¶
- Go to Slack → Manage apps → Incoming Webhooks → Add to Slack
- Choose the destination channel and click Authorize
- Copy the webhook URL (
https://hooks.slack.com/services/...)
Adding a Slack channel¶
Payload format¶
Wanepia sends a Slack block-kit message:
{
"text": "payments-api is now DOWN",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*payments-api* transitioned *up → down*\nReason: 3 consecutive failures"
}
}
]
}
Message colours¶
| Status | Colour |
|---|---|
down |
Red |
degraded |
Yellow / orange |
up (recovery) |
Green |
Troubleshooting¶
channel_not_found: the webhook app was removed from the workspace or the channel was deleted. Re-create the webhook.no_service: the webhook URL is malformed. Check for extra whitespace.- Check delivery status with
wnp notify logs.