Webhooks
Webhooks push events to your own HTTPS endpoint as they happen. Add an endpoint under Settings › Webhooks, choose its events, and copy the signing secret.
Events
| Event | When |
|---|---|
incident.opened | An incident opens for a monitor |
incident.updated | Acknowledged, snoozed, assigned, escalated or a new failed run attached |
incident.resolved | Resolved automatically after passes, or manually |
run.completed | Any run reaches a terminal state |
site.connected | A site pairs or reconnects |
site.disconnected | A site is disconnected or its connector stops responding |
Request format
Each delivery is a POST with a JSON body:
{
"id": "01JB90R6Y2C4D8F0H3K5M7P9QS",
"event": "incident.opened",
"createdAt": "2026-10-15T02:10:04.118Z",
"orgId": "01JB0A1B2C3D4E5F6G7H8J9K0M",
"data": { "incidentId": "…", "siteId": "…", "monitorId": "…", "severity": "critical", "reasonCode": "CATCH_NOT_RECEIVED" }
}
Headers:
| Header | Value |
|---|---|
X-FV-Event | The event name |
X-FV-Delivery | Unique delivery id; use it to de-duplicate |
X-FV-Timestamp | Unix seconds when the request was signed |
X-FV-Signature | Hex HMAC-SHA256 of timestamp.rawBody with the endpoint secret |
Verify the signature
Compute the HMAC over the timestamp, a dot and the raw request body exactly as received, compare in constant time, and reject timestamps more than five minutes old.
import { createHmac, timingSafeEqual } from "node:crypto";
export function verify(secret, rawBody, timestamp, signature) {
if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false;
const expected = createHmac("sha256", secret).update(`${timestamp}.${rawBody}`).digest("hex");
return expected.length === signature.length && timingSafeEqual(Buffer.from(expected), Buffer.from(signature));
}
function fv_verify( string $secret, string $raw_body, string $ts, string $sig ): bool {
if ( abs( time() - (int) $ts ) > 300 ) { return false; }
return hash_equals( hash_hmac( 'sha256', $ts . '.' . $raw_body, $secret ), $sig );
}
Retries
Respond with any 2xx within 10 seconds. Other responses and timeouts are retried after 1, 5, 15 and 30 minutes, then 1, 2, 4, 8 and 8 hours: about 24 hours in total. Every attempt is listed under the endpoint's deliveries with the response code. Deliveries can arrive more than once and out of order; use X-FV-Delivery and createdAt.
Testing
Use Send test on the endpoint to deliver a sample run.completed event. A request bin or a local tunnel is a convenient target while you build the handler.