RaaqebDocsالعربية
RaaqebDocsالعربية

Slack

How to get a Slack incoming webhook URL, what a Slack channel posts, and how a refused post shows in Raaqeb.

A Slack channel posts each notification to one Slack channel through an incoming webhook, as plain text in the channel language. Slack's formatting is off, so a monitor's name shows as typed and cannot mention anyone or make a link of its own.

What you need first

An incoming webhook URL. In Slack:

  1. Open api.slack.com/apps and choose Create New App, then From scratch. Name it and pick your workspace.
  2. Open Incoming Webhooks and turn it on.
  3. Choose Add New Webhook, pick the Slack channel, and allow it.
  4. Copy the webhook URL. It starts with https://hooks.slack.com/services/.

Any receiver that takes Slack's incoming webhook body works too: the field accepts any http or https URL.

Fields

FieldMeaningRequiredDefault
NameWhat the admin area calls the channel, at most 80 characters.YesNone
Channel languageThe language of the message.NoThe install language
Apply to new monitors by defaultEvery new monitor starts with this channel selected.NoOn
URLThe incoming webhook URL. The URL carries Slack's token, so it is a secret: stored encrypted with the install key and never shown after saving.YesNone

The message

Raaqeb posts this JSON to the webhook URL:

json
{
  "mrkdwn": false,
  "text": "Main website is down\n\nThe monitor is down.\n\nMonitor: Main website\nTarget: https://example.com\nReason: Timed out\nTime: Sep 25, 2026, 18:49 (UTC)\n<https://status.example.com/admin/monitors/0199a3c2-5f1e-7c3a-9b1d-2f6e8a4c1b7d|Open the monitor>\n<https://status.example.com/admin/incidents/new?monitor=0199a3c2-5f1e-7c3a-9b1d-2f6e8a4c1b7d|Open an incident>"
}

In Slack it reads:

Main website is down

The monitor is down.

Monitor: Main website
Target: https://example.com
Reason: Timed out
Time: Sep 25, 2026, 18:49 (UTC)
Open the monitor
Open an incident

The first line is the subject. The last two lines are links, present only when the install stores a public address. Raaqeb escapes &, < and > in the text, so nothing in a name is read as markup. See What a notification says for every event's lines.

Failures and limits

One attempt gives up after 10 seconds. A failed attempt is retried 30 seconds, 2 minutes and 10 minutes later. Slack's rate limit answers 429, which retries on the same schedule.

Reason codeTextTypical cause
unexpected_statusUnexpected status codeSlack refused the post. Observed shows the status and Error text Slack's answer, such as invalid_token, no_service for a removed webhook, or channel_is_archived.
timeoutTimed outNo answer within 10 seconds.
dns_failedDNS lookup failedThe URL's host does not resolve.
connection_refusedConnection refusedNothing listens at the URL's host and port.
connection_failedConnection failedThe connection was reset or the host was unreachable.
certificate_expiredCertificate expiredThe receiver's certificate has expired.
certificate_invalidCertificate invalidThe certificate cannot be verified.
unknownUnknown errorAnything else. Error text says what happened.

The webhook URL is removed from every recorded error text.

On this page