Webhooks
Receiving events
This guide is for the developer who builds the receiver: what a sedisto installation delivers to a webhook endpoint, how to verify it, and what happens when a delivery fails. The endpoint itself is registered by the operator in the portal or by an integration through the API, see Managing webhook endpoints via the API.
What arrives
Section titled “What arrives”One HTTPS POST per event with a JSON body:
{ "id": "0197f4d2-5f7c-7a41-b2c2-6b0c9a2e5f31", "type": "access.granted", "version": 1, "occurred_at": "2026-09-04T08:21:44.512Z", "installation": { "id": "…", "domain": "acme.sedisto.eu" }, "site": { "id": "…", "name": "Acme Berlin Nord" }, "data": { }}| Field | Meaning |
|---|---|
id |
This event, once. Deduplicate on it. |
type |
The event type, see the Webhook event catalogue. |
version |
The envelope’s schema version, 1 today. |
occurred_at |
When the thing happened, not when it was sent. RFC 3339, milliseconds, UTC. |
installation |
The operator’s installation: id and domain, the hostname it is reached at. |
site |
The site: id and name. |
data |
The fields of this event type. |
Route on type in the body, not on headers. Ignore fields you do not know: new fields can be added at any time. An incompatible change ships as a new type with a .v2 suffix, delivered beside the old one. installation and site are always present but can be null, for example in a test delivery.
occurred_at can be tens of seconds older than the delivery. Order your records by it, not by arrival. Do not expect the events of one door opening in order: access.granted and interaction_request.* are separate deliveries with separate retries.
Verify the signature
Section titled “Verify the signature”Every delivery carries three headers, following the Standard Webhooks scheme:
| Header | Content |
|---|---|
Webhook-Id |
The delivery’s identifier, not the envelope id. |
Webhook-Timestamp |
Unix seconds as a decimal string. |
Webhook-Signature |
One or more signatures, separated by spaces. |
- Take the raw request body, the exact bytes received. Do not parse and serialize it again.
- Build the signed content
<Webhook-Id>.<Webhook-Timestamp>.<raw body>. - Strip the
whsec_prefix from your signing secret and base64-decode the rest. These bytes are the key. - Compute HMAC-SHA256 over the signed content, base64-encode the digest and compare it, in constant time, with every
v1,<base64>entry inWebhook-Signature. Any one match is a pass. Skip entries with another version prefix. - Reject the delivery if
Webhook-Timestampis more than five minutes away from your clock, in either direction.
Answer with a 2xx status once you have accepted the delivery. Anything else, including a timeout, is a failure.
The signing secret
Section titled “The signing secret”The secret (whsec_…) is shown once, when the endpoint is created or the secret is rotated. No endpoint returns it again; if it is lost, rotate it. After a rotation the old secret stays valid for 24 hours, so you can deploy the new one on your own schedule.
When a delivery fails
Section titled “When a delivery fails”A failed delivery is retried after 5 seconds, 5 minutes, 30 minutes, 2 hours, 5 hours, 10 hours and 10 hours: eight attempts over roughly 28 hours. After that, only a replay delivers it.
An endpoint that fails continuously for five days is disabled, and the operator who registered it receives an email. A health warning goes out much earlier, about half an hour after the first failure. A disabled endpoint receives nothing, and re-enabling it does not deliver what was missed.
To get missed events, request a replay for a time window of up to 90 days back. Replayed messages carry the same id as the first attempt. Delivery attempts, with the status code and body your server returned, can be read back. Both are described in Managing webhook endpoints via the API.
Requirements for your endpoint
Section titled “Requirements for your endpoint”- HTTPS only. An
http://URL is refused at registration. - Publicly reachable from the internet.
- Answer quickly with
2xxand do the work afterwards. A slow answer counts as a failure and causes duplicates. - Keep the
idof every event you have handled and ignore repeats. - Do not rely on order between deliveries.
To read an event again later, use GET /events/{id}, see Reading access events.