The platform tells your systems what happened through webhooks, which are HTTP POST requests that it sends to an endpoint you register, each one signed with that endpoint's secret. Each request carries one event, such as token.transfer.final, which confirms a token transfer. The platform selects a new event for your endpoint when one of the endpoint's subscription patterns matches the event name. When a chain reorganisation replaces recent blocks, an automatic correction can also follow a provisional event your endpoint already received.
Use webhooks when a system must react to changes, such as an accounting ledger or a monitoring pipeline. Use Platform API reads when you need current state or must reconcile an uncertain notification. Registering an endpoint and receiving notifications change no asset ownership and start no transfers.
Your receiver must expect the same event more than once. The platform retries failed attempts, and any response slower than the attempt timeout counts as a failure even if your system already processed it. Every retry carries the same webhook-id.
Build every webhook receiver around four rules:
- Verify every signature against the raw request body using your endpoint's signing secret before trusting the payload.
- Deduplicate on
evt_id(webhook-id), processing each event id once and returning2xxto repeats. - Act on
lifecycle_state(pending,provisional,final, orretracted), not only the event name suffix. - Handle retractions cleanly, reversing only effects your system applied using
supersedesor payload identifiers.
After 30 consecutive failed attempts, the platform switches the endpoint off and stops recording events for it. Repair your receiver before recovering deliveries: Resend adds another attempt to an existing delivery, and Replay sends stored events again as new events. Because neither recovers events missed while the endpoint was off, reconcile that gap from the Platform API and follow the failure runbook. Attempt outcomes stay in the endpoint's delivery history.
Every attempt and every Resend of an event carry the same webhook-id, and a Replay sends a new evt_id.
One event reaches one endpoint in three stages:
- Subscriptions. For an initial event, the platform compares its name with your endpoint's subscription patterns. A match queues the event for your endpoint with its own event id,
evt_id. A chain reorganisation can later send a correction for a delivered provisional event without matching the correction against your subscriptions. When no pattern matches, the platform queues no initial event. Subscriptions lists the patterns and the events that the default subscriptions skip. - Delivery. Each attempt is a signed POST request, and every attempt for the event carries the same
webhook-idheader, equal toevt_id. A retryable failure gets another attempt after a backoff delay. A Resend, which you request for one delivery, adds another attempt with the same id. A Replay, which you request for one event or a block range, sends each event again as a new event with a newevt_idand setsis_replaytotrue. Consuming webhooks states which failures the platform retries and how Resend and Replay work. - Your endpoint. Verify the signature on every request with your endpoint's signing secret. Then deduplicate on
evt_id: process each id once, and reply with a 2xx status to a repeat so the platform records it as delivered. Then act on the fact'slifecycle_state, not on the event-name suffix. The setup guide shows the signature check, and Lifecycle states says what each state means.
Delivery list totals
GET /api/ lists the delivery attempts of one endpoint, and meta.total counts the attempts matching your filters. Counts filtered by filter[status] (pending or failed), filter[failureClass], response status 400 or above, filter[isReplay]=true, or filter[isTest]=true are always exact.
A count filtered by a response status below 400, delivery time, a text match on the event type, or an attempt-time bound off a whole hour scans only the newest 1,000 deliveries and sets meta.totalIsLowerBound to true when more exist.
Other counts are exact for the last 30 days. Older deliveries remain readable until retention cleanup deletes them, and counts over older history scan only the newest 1,000 rows, setting meta.totalIsLowerBound to true when more exist.
When meta.totalIsLowerBound is true, meta.total and meta.facets are lower bounds and links.last is not the end of the list. Page with meta.nextCursor as Pagination describes. The field is absent when counts are exact, and the Console marks lower-bound totals with a plus sign, such as “1,040+”.
Delivery list sorting and short pages
The delivery list sorts by attempt time only: send sort=attemptedAt or sort=-attemptedAt (the default). Any other sort field is refused with COLLECTION_. Filters on other fields still work.
Filters not served by an index scan a fixed slice of deliveries per request instead of the full history. This applies to event type, delivery time, response status, and other field filters except pending or failed status, failure class, isReplay=true, and isTest=true. Filtering on response status 400 or above scans a slice of failed deliveries, keeping query cost bounded.
A slice-backed page can return fewer rows than page[limit], or none, while still returning a meta.nextCursor to continue from where the slice stopped. Follow page[cursor] until meta.nextCursor is null so every matching delivery appears once in attempt-time order. On these pages links.prev and links.last are null, and page[offset] above 0 returns WEBHOOK_ (DALP-0543).
Unfiltered reads, replay and test reads, and reads filtered on pending, failed, or a failure class read from an index and keep offset paging and full pages.
Where to find what
Related
- Webhook Delivery: the concept page on signed delivery, retries and the circuit breaker that pauses a failing endpoint.
- Platform Event: the concept page on how the platform names and records an event, with a figure of the lifecycle states.
- Webhook deliveries failing: the runbook for an endpoint that stopped receiving events.
- Webhook endpoints in the Console: create an endpoint, read its deliveries, and resend or replay events without the API.
- Machine-readable event definitions: an AsyncAPI document, a standard format for describing event interfaces, with the envelope and payload schema of each event.