What fires
Webhooks push events into your own systems (SIEM, ticketing, PagerDuty, Zapier) the moment they happen. Ten event types exist today:
- a critical issue detected
- a DNS fix applied
- a DNS fix reverted
- a DNS fix failed
- a delivery diagnosis completed
- a diagnosis recovery confirmed
- an enforcement regression detected
- an enforcement watch all clear
- a mandate gap detected
- a mandate gap resolved
An endpoint can subscribe to specific types or to all events (which includes future types automatically). Webhooks are a Pro feature; a workspace holds up to 10 endpoints.
Adding an endpoint
On Settings → Integrations → Webhooks, add an https URL, an optional label, and the events you want. The signing secret (prefix whsec_) is shown once; store it like a password. Only public addresses are accepted: private, loopback, link-local, and cloud-metadata ranges are refused. The URL must also use the standard https port (443), carry no user name or password (check our signature header to know a request is ours), and not point at a trustyourinbox or EmailAuthLab address. At delivery time the hostname is resolved and checked before each POST and again right after it; if the answer changed in between, the delivery is marked failed rather than delivered and is not retried. Deliveries follow no redirects.
A key or token that can only read sees each endpoint's host, not its full URL, since a path or query can carry your receiver's own token. The audit log records the host too.
Verifying a delivery
Every POST carries three headers: X-TYI-Event-Id, X-TYI-Timestamp, and X-TYI-Signature: sha256=<hex>, an HMAC-SHA256 of {timestamp}.{body} with your signing secret. Verify the signature and reject stale timestamps, then act on the event and data fields. The settings page shows a sample payload, and the Send test button fires a synthetic event at your endpoint through the real delivery path.
For 24 hours after you make a new signing secret, every delivery also carries X-TYI-Signature-Previous, the same signature made with the old secret. X-TYI-Signature always uses the current secret. Accept a delivery when either header matches the secret your receiver holds, and you can switch secrets without missing an event.
Event ids and duplicates
The id field (the same value as the X-TYI-Event-Id header) names one event. Every retry of that event carries the same id, so recording the ids you have handled and skipping repeats makes your handler safe under at-least-once delivery. A new event always gets a new id: a critical issue that clears and comes back, a critical issue still open when its 14-day reminder is due, a mandate gap that reopens, a further enforcement regression, or an undo that fails again after a retry. Treat the id as an opaque string and never parse it.
Events about a condition that can happen more than once also carry data.conditionKey, the same value on every occurrence: a critical issue on one domain and check, a mandate gap and its resolution on one domain, or the notices of one enforcement watch. Group on it when you want one ticket per condition rather than one per event.
An event about a tracked subdomain names the subdomain in data.domainName and its parent domain in data.parentDomain. Its data.domainId is the parent's, since the parent's reports carry the subdomain's mail, and its data.url opens the tracked subdomain's own page. An event about a domain itself has no parentDomain.
Reliability
Failed deliveries retry with backoff (one minute, five, fifteen) up to four attempts, and each endpoint card shows its recent delivery log with status codes. Use Rotate secret to issue a new signing secret (shown once) whenever you need to re-key. The old secret keeps signing in X-TYI-Signature-Previous for 24 hours, and the card says when it stops.
Managing endpoints over the API
The public API does everything the settings page does, with a key created with sharing outside the account allowed:
POST /v1/webhooksadds an endpoint andDELETE /v1/webhooks/{id}removes one.PATCH /v1/webhooks/{id}changes the URL, the label or the events. A new URL must pass the same rules as a new endpoint, and the signing secret stays.POST /v1/webhooks/{id}/testsends a test event and answers with the result. A workspace can send 5 tests a minute, counted together with the Send test button.POST /v1/webhooks/{id}/pauseand/resumeturn the endpoint off and on, like Disable and Enable.POST /v1/webhooks/{id}/secretmakes a new signing secret, returned once, with the same 24 hour overlap.
Every change is recorded in the audit log with the key that made it. The full reference is on the developers page.
When an endpoint is turned off
After 20 failed attempts in a row (every retry counts), we turn the endpoint off so a dead receiver does not burn retries forever. It gets no events until you turn it back on. We email the workspace's owners and admins once, naming the endpoint by its label and host and saying why the last attempt failed, and post the same notice to the bell. The endpoint card reads Turned off, with when it happened and the reason, and the Webhooks card on Settings → Integrations reads Reconnect needed. Fix the endpoint, use Send test to check it, then click Enable on the card. Enabling clears the failure streak and the turned-off state, so if it ever fails 20 times in a row again, you hear about it again.
An endpoint whose URL itself is not accepted (one saved before these rules, pointing at our own host, a port other than 443, or carrying a user name or password) is turned off at its first delivery, with the same email and the reason, and cannot be turned back on. Delete it and add the endpoint again with an accepted URL; its URL cannot be changed either.
Events are queued and delivered asynchronously, so a slow receiver never slows the product, and a burst of events cannot drop any.