Docs / Core Concepts

System Alerts

Workspace System Alerts post dead-letter (and, on Cloud, quota) alerts to Slack, Discord, Telegram or any HMAC-signed webhook URL.

Updated 2026-12-02~3 min readSlack · Discord · Telegram

When a delivery fails permanently, someone should know before a customer does. Workspace System Alerts send an operator alert to one destination URL per workspace.

Configure

In the dashboard, open Settings → Alerts & Notifications (workspace OWNER or ADMIN), paste a destination URL, choose which alerts to send, save, and press Send Test Alert.

DestinationURL formatBody
Slackhttps://hooks.slack.com/services/... (incoming webhook)Formatted Slack message
Discordhttps://discord.com/api/webhooks/...Embed with a severity color
Telegramhttps://api.telegram.org/bot<token>/sendMessage?chat_id=<chat_id>HTML-formatted message
Any other URLhttps://...Raw JSON event, HMAC-signed

The destination URL is a credential: it is never written to logs or error messages. It passes the same SSRF guard as webhook integrations when you save it and again at send time, so a later DNS change cannot point it at your private network. Telegram URLs must include chat_id.

Alert types

TypeWhenToggle
dlq.thresholdA delivery is dead-lettered. At most one alert per event name every 5 minutes.Dead-letter alerts
quota.warning, quota.exceeded, quota.overageMonthly usage reaches 80% or 100% of the plan, or overage billing starts (KestrelMQ Cloud only).Quota alerts
alert.testYou press Send Test Alert.Always

Via the API

terminal
curl -X PATCH "$KESTRELMQ_BASE_URL/v1/workspaces/$WORKSPACE_ID" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"alertWebhookUrl":"https://hooks.slack.com/services/T000/B000/XXXX","dlqAlertsEnabled":true}'

curl -X POST "$KESTRELMQ_BASE_URL/v1/workspaces/$WORKSPACE_ID/alerts/test" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

Set alertWebhookUrl to null or "" to turn alerts off.

Generic webhook destinations

Any URL that is not Slack, Discord or Telegram receives the alert event as JSON, signed exactly like outbound deliveries (X-KestrelMQ-Timestamp, X-KestrelMQ-Signature, including v1=<new>,v1=<old> during a secret rotation):

POST body
{
  "type": "dlq.threshold",
  "workspaceId": "6f0c1d4e-5a52-4b6e-9c0e-2f6a1f3c9a10",
  "deliveryId": "9bafef5c-41d2-4e89-9a0b-3c14d78e02f1",
  "eventName": "order.paid",
  "error": "Endpoint responded with HTTP 500",
  "timestamp": "2026-12-02T10:15:00.000Z"
}

Verify it with the SDKs:

alerts.ts
import { verifyWebhookSignature } from "@kestrelmq/sdk";

const ok = verifyWebhookSignature({
  payload: rawBody,
  signatureHeader: headers["x-kestrelmq-signature"],
  timestamp: headers["x-kestrelmq-timestamp"],
  secret: process.env.KESTRELMQ_SIGNING_SECRET!,
});

A 5xx or 429 from the destination is retried; any other non-2xx response is not.