Webhooks
Receive signed events such as monitor.down or incident.created in your own systems.
Events
| Event | Sent when |
|---|---|
monitor.down | A monitor goes down. |
monitor.recovered | A monitor is up again. |
incident.created | An incident opens. |
incident.resolved | An incident is resolved. |
alert.triggered | An alert starts firing. |
alert.resolved | An alert resolves. |
page.published, page.unpublished | A website page goes live or is taken down. |
article.published, article.unpublished | An article goes live or is taken down. |
Add an endpoint
Open Webhooks
Go to Settings › Webhooks › Add endpoint, enter your HTTPS URL and pick the events it should receive.
Save the signing secret
The secret (it starts with
whsec_) is shown once. Store it with your application's secrets. You can rotate it later.Send a test
Send test ping delivers a signed
pingevent straight away and shows your server's answer.
What you receive
POST https://your-app.example.com/hooks/vitalrix
content-type: application/json
x-platform-event: monitor.down
x-platform-delivery: 4f6c…
x-platform-signature: t=1760000000,v1=5d0c…
{
"id": "evt_…", // the same on every retry: use it to ignore duplicates
"type": "monitor.down",
"apiVersion": 1,
"createdAt": "2026-10-08T08:00:00.000Z",
"organizationId": "…",
"data": { … }
}Answer with any 2xx status within 10 seconds. Anything else, including redirects and timeouts, is retried. Do the real work after answering, for example in a background job.
Verify the signature
Check every delivery before trusting it. The signature header is t=<unix seconds>,v1=<hex>, where v1 is HMAC-SHA256 of <t>.<raw body> keyed with your endpoint's secret.
import { createHmac, timingSafeEqual } from 'node:crypto';
// rawBody: the request body exactly as received (not re-serialized JSON)
export function verify(rawBody, header, secret, toleranceSeconds = 300) {
const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
const t = Number(parts.t);
if (!parts.v1 || !Number.isFinite(t) || Math.abs(Date.now() / 1000 - t) > toleranceSeconds) return false;
const expected = Buffer.from(createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex'));
const given = Buffer.from(parts.v1);
return expected.length === given.length && timingSafeEqual(expected, given);
}Retries and duplicates
- Each delivery is tried up to 8 times: after 30 seconds, 2 minutes, 8 minutes, 32 minutes, about 2 hours, 8.5 hours and 14 hours.
- Delivery is at least once. The same event can arrive twice: ignore events whose id you have already processed.
- Failed deliveries are kept and can be sent again with Redeliver on the endpoint’s Deliveries list.
- Endpoints must be public addresses. Private, local and cloud-metadata addresses are refused.
Something unclear or missing? Open VitalRix and use the in-app setup guides, or read Troubleshooting.