Webhook alerts
Signed JSON alerts for your own systems: headers, events, payloads and verification.
Add a webhook
- Open Alerts, choose Webhook and enter your Webhook URL. It must be https://.
- Click Add contact.
- Next to Signing secret, click show and copy the secret. It starts with whsec_.
- Click Send test: your endpoint receives a test event.
The request
Answer with any 2xx status. Anything else, or no answer, is retried after 1, 5, 30 and 120 minutes.
- POST with a JSON body, 10 second timeout. Redirects aren't followed.
- Content-Type: application/json
- User-Agent: UptimeTimmy-Webhooks/1.0
- X-UptimeTimmy-Event: the event name, such as incident.opened
- X-UptimeTimmy-Delivery: a unique id for this delivery (the same as the body's id), useful for ignoring repeats
- X-UptimeTimmy-Signature: t=<unix seconds>,v1=<signature>
Events
- incident.opened, incident.escalated (Delayed became Cancelled), incident.resolved
- domain.expiring, domain.expired
- certificate.expiring, certificate.expired
- maintenance.started, maintenance.ended
- test
Incident payload
incident.status is on_time, delayed or cancelled; severity is degraded or down. Domain events carry a domain object (name, expires_at, days_left, reminder_days, registrar), certificate events a certificate object (host, port, expires_at, days_left, reminder_days, issuer, trust_error) and maintenance events a maintenance object (id, name, note, starts_at, ends_at, all_monitors, monitor_count, monitors).
{
"id": "…",
"event": "incident.opened",
"sent_at": "2026-10-20T14:05:12.000Z",
"workspace": { "slug": "acme", "name": "Acme" },
"monitor": { "id": "…", "name": "Checkout API", "url": "https://api.example.com/health", "kind": "http" },
"incident": {
"id": "…",
"status": "cancelled",
"severity": "down",
"cause": "HTTP 503 from P2 IAD, P3 FRA",
"started_at": "2026-10-20T14:04:58.000Z",
"resolved_at": null
}
}Verify the signature
The signature is a hex HMAC-SHA256, made with your whsec_ secret, of the timestamp, a dot and the raw request body. Compute it over the body exactly as received, before parsing the JSON, and reject timestamps more than 300 seconds from now. An example in Node.js with Express:
import { createHmac, timingSafeEqual } from "node:crypto";
import express from "express";
const SECRET = process.env.UPTIMETIMMY_SECRET; // whsec_…
function verify(header, body, toleranceSeconds = 300) {
const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
const t = Number(parts.t);
if (!Number.isFinite(t) || Math.abs(Date.now() / 1000 - t) > toleranceSeconds || !parts.v1) return false;
const expected = createHmac("sha256", SECRET).update(`${t}.${body}`).digest();
const given = Buffer.from(parts.v1, "hex");
return expected.length === given.length && timingSafeEqual(expected, given);
}
const app = express();
app.post("/uptime-timmy", express.raw({ type: "application/json" }), (req, res) => {
const body = req.body.toString("utf8");
if (!verify(req.get("X-UptimeTimmy-Signature") ?? "", body)) return res.sendStatus(401);
const event = JSON.parse(body);
console.log(event.event, event.incident?.cause);
res.sendStatus(204);
});
app.listen(3000);Still stuck? Email support@uptimetimmy.com.