Browse docs

API reference Webhooks

Webhooks

Get a signed HTTP POST when an incident opens, escalates, repeats or resolves.

Create

http
1POST /v1/webhooks
2{ "url": "https://hooks.example.com/superflows" }

The response includes the signing secret (whsec_…) once. The URL follows the same rules as external checks.

Payload

json
1{ "id": "dlv_42", "type": "incident.opened", "org_id": "org_…",
2 "created_at": "2026-10-18T08:21:04Z", "data": { "id": "inc_…", "severity": "DOWN", … } }

Types: incident.opened, incident.escalated, incident.reminder, incident.resolved. Headers: X-Superflows-Event, X-Superflows-Delivery, X-Superflows-Signature.

Verify the signature

X-Superflows-Signature is sha256= followed by the hex HMAC-SHA256 of the raw body with your secret. Compare in constant time.

js
1const crypto = require("node:crypto");
2function valid(rawBody, header, secret) {
3 const want = "sha256=" + crypto.createHmac("sha256", secret).update(rawBody).digest("hex");
4 return header.length === want.length && crypto.timingSafeEqual(Buffer.from(header), Buffer.from(want));
5}

Answer quickly

Return any 2xx within 15 seconds; do slow work after responding.

Retries

On a network error, a 5xx or a 429 the delivery is retried after 30 seconds, 2 minutes and 10 minutes. Any other 4xx is not retried. The same event is never sent twice once it succeeded.