Webhooks
Send notifications to any web endpoint (HTTPS recommended): Discord, Slack, Teams, PagerDuty, OpsGenie, your own backend or n8n. With templated payloads and automatic retries.
Email is fine for humans. Webhooks are for everything else: your incident management tool, your custom dashboard, Discord, Slack, Teams, n8n, or an internal bot. Any HTTP or HTTPS endpoint that accepts JSON can be a UptimeWarden notification target; HTTPS is recommended. For how requests are signed and how your endpoint verifies them, see Webhook Security.
Setup
Open the Notifications page in the sidebar, and in the Webhook endpoints tab click Add webhook. The Connect a webhook wizard has four steps:
- Essentials:
- Name: an internal label (
Discord #ops channel,Internal incident bot). - Provider: providers with a ready-made formatter such as Slack, Discord, Telegram, Teams, PagerDuty and OpsGenie, or a generic webhook.
- Method:
POST(default),GET,PUT,PATCHorDELETE. - Endpoint URL: the target address. Use HTTPS. A plain
http://address is accepted and delivered to, and the form shows a warning under it (the API answerswarningstoo): the alert, its signature and any token or password you set travel unencrypted; the Test URL button checks that the address is reachable. Private network addresses are blocked. - Format:
JSON,Markdown,HTMLorPlain Text. Formats other than JSON are sent astext/plain. - Timeout (s): how long a request may wait at most (the field accepts 1 to 300 seconds). A request is cut off after 15 seconds at the latest, whatever you set here.
- Name: an internal label (
- Authentication: the authentication method and the Signing secret. A Bearer token, a Basic password or Custom Headers (a JSON object such as
{"X-Api-Key": "…"}) are stored encrypted and sent with every alert. The values of headers whose name looks like a credential (Authorization,Proxy-Authorization,Cookie, or a name containingkey,token,secret,password,passwd,auth,signatureorsession) are shown as*****in API responses and in the dashboard. Sending*****back on an update keeps the stored value, and a value starting withenc:is refused with400. Custom headers cannot setHost,Content-Type,Content-Length, hop-by-hop headers such asConnectionorTransfer-Encoding, or UptimeWarden's own signature and event headers, and a value cannot hold a line break. Saving refuses such a header and says which one and why next to the field. Headers set on the webhook through the API follow the same rules. A webhook saved before this check still sends, without those headers, and Test says which were left out. Leave the signing secret blank and UptimeWarden generates one when you save and shows it once, or paste your own. For Slack, Discord, Teams and Telegram this step only notes that their URL carries the credential. See Webhook Security. - Targeting: Trigger Events (which alert types trigger the webhook) and Monitor Filtering (only certain monitor types). A webhook created without a list of alert types (for example through the API without
enabledAlertTypes) gets every alert type. - Review: check the summary and, under Which monitors send alerts here?, choose the monitors to attach the webhook to.
A webhook only sends alerts from the monitors it is attached to; a webhook with no monitor sends no alerts. A single webhook can serve many monitors. The wizard has no general header field and no webhook-level quiet hours field. The Telegram provider adds a Telegram Chat ID field; see Telegram. On the API's webhook endpoints (POST and PATCH) an unknown field in the body is refused with 400, so a typo cannot silently drop a setting.
Payload shape
A generic webhook (one without a provider-specific formatter) sends this payload:
{
"event": "down",
"timestamp": "2026-04-27T03:12:00Z",
"monitor": {
"id": "01HMON7Q2K9V4XWZ3RBN5T8C6D",
"publicId": "01HMON7Q2K9V4XWZ3RBN5T8C6D",
"name": "Payment API",
"type": "http",
"url": "https://api.example.com/health"
},
"alert": {
"type": "down",
"message": "Connection refused",
"severity": "critical",
"incidentId": "01HABC...",
"incidentUrl": "https://app.uptimewarden.online/incidents/01HABC..."
},
"data": {
"status": "down",
"responseTime": 0,
"statusCode": 0,
"errorMessage": "Connection refused",
"sslExpiry": null,
"daysRemaining": 0
},
"metadata": {
"source": "UptimeWarden",
"version": "1.0",
"sentAt": "2026-04-27T03:12:01Z"
}
}
The top-level event field carries the alert type (down, recovery, ssl, high_response, and so on), timestamp is an RFC3339 string, and alert.severity is derived from the alert type. monitor.id and monitor.publicId both carry the monitor's public id, the one the API uses; internal numeric ids are never sent. Before 2026-11-28 monitor.id was the internal number; the {{monitorId}} and {{monitor_id}} template variables changed the same way. alert.incidentId and alert.incidentUrl are present only when the alert belongs to an incident. Providers such as Slack, Teams, Telegram and Discord are sent in the format their platform expects. When a deploy started for the monitor within the 2 hours before the alert, the payload carries a recentDeploy object (service, version, environment, startedAt) and Slack alerts get a deploy line. You record deploy markers with GitHub Actions or the deploys API.
Custom payloads (templates)
If your endpoint expects a different shape, define a template. On the webhook's row, click the Manage Templates icon; the Templates for dialog opens:
- Alert type: choose which alert type the template is for.
- Format: JSON, Markdown, HTML or Plain Text.
- Write the content in the editor. Use Insert a variable to add a variable and Load default to load the default template.
incident_url, ack_url, downtime, verification_summary, evidence_line, recentDeploy and the grouped-alert variables are filled only on the relevant alert and are empty otherwise. recentDeploy is filled when a deploy started within the 2 hours before the alert. ack_url is valid for 24 hours. Templates can use {{#if variable}} blocks.
An example template for Discord:
{
"content": "**{{monitor_name}}** - **{{incident_type}}** - {{error_message}}"
}
Retry policy
If a send fails, it is retried up to three times. The schedule:
| Attempt | Delay |
|---|---|
| First send | immediately |
| Retry 1 | about 30 seconds |
| Retry 2 | about 2 minutes |
| Retry 3 | about 5 minutes |
Each delay varies by about ±20%, so a struggling receiver is not hit by the retries of many monitors at the same moment. Only a 2xx response counts as delivered. Any other response, a timeout or a network error is a failure and is retried. A 3xx redirect is not followed and counts as a failure too. A retry goes out as the same webhook configuration: signed with its secret, with its authentication and headers. If every retry fails, the notification stays undelivered.
Two settings on each webhook shape this schedule:
retryCount: how many retries are made. From 0 to 3; 0 means never retry.retryDelay: from 0 to 300 seconds. The first retry waits at least this long, that is, 30 seconds orretryDelay, whichever is larger.
A value outside these ranges is refused with 400. Older saved values above the bounds are cut to 3 and 300 seconds.
Circuit breaker
Each webhook configuration has its own circuit breaker. After repeated failures (5xx, timeouts), the breaker opens and the configuration is skipped for a cooldown period, preventing a single broken endpoint from clogging the entire dispatch pipeline. The breaker auto-resets when the receiver recovers.
SSRF protection
Webhook URLs are validated before sending:
- Private network ranges are blocked.
- Cloud metadata endpoints are blocked.
- Loopback and link-local addresses are blocked.
- DNS rebinding is mitigated: we resolve the host name once and use the same IP for the actual request.
So a webhook cannot reach an endpoint inside a private network; the address must be reachable from the internet.
Testing
Use the Test Webhook button on the webhook's row. UptimeWarden sends a small test request to your endpoint:
{
"event": "test",
"timestamp": "2026-04-27T03:12:00.000Z",
"webhook": { "publicId": "…", "name": "Discord #ops channel" },
"monitor": { "name": "…", "url": "…" },
"message": "…"
}
The test request is not a real alert. It has no provider-specific formatting and no template, and it expects a response within 5 seconds. Only a 2xx answer counts as delivered; a 3xx redirect is not followed. It is signed like a real alert (X-Webhook-Timestamp, X-Webhook-Signature-V2, X-Webhook-Signature) and also carries X-Uptimewarden-Event: test and X-Uptimewarden-Signature, so you can test your signature check with it. On Telegram webhooks the test request has no chat_id and text, so it does not show up as a message in Telegram; verify the setup on the first real alert.
Related topics
- Webhook Security: the signing secret and how to verify a signature
- Notification Channels: the full channel matrix
- Integrations: third-party platforms over webhooks
- GitHub Actions: the CI/CD heartbeat flow