Skip to content

Webhooks

Receive signed events such as monitor.down or incident.created in your own systems.

Events

Webhook event types
EventSent when
monitor.downA monitor goes down.
monitor.recoveredA monitor is up again.
incident.createdAn incident opens.
incident.resolvedAn incident is resolved.
alert.triggeredAn alert starts firing.
alert.resolvedAn alert resolves.
page.published, page.unpublishedA website page goes live or is taken down.
article.published, article.unpublishedAn article goes live or is taken down.

Add an endpoint

  1. Open Webhooks

    Go to Settings › Webhooks › Add endpoint, enter your HTTPS URL and pick the events it should receive.

  2. 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.

  3. Send a test

    Send test ping delivers a signed ping event straight away and shows your server's answer.

What you receive

Example delivery
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.

Node.js
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.