> ## Documentation Index
> Fetch the complete documentation index at: https://808-labs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhooks and event polling

> Verify, persist and deduplicate every notification.

Event delivery
Receive signed updates, commit them durably and reconcile from your own checkpoint after an interruption.

## Register a receiver

Discover supported event names and their payload schemas with `GET /v1/webhook-event-types`. Register a public HTTPS receiver with `POST /v1/webhook-endpoints` using `webhooks:manage` and an enabled webhook plan feature. Save the one-time signing secret securely.

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "name": "Sandbox order updates",
  "url": "https://your-receiver.example.com/ignite/events",
  "event_types": ["order.purchase.updated"]
}
```

Use exact names from the event catalog; event selection does not grant permission to foreign resources. The API Reference describes registration, testing, disabling and secret rotation.

The receiver must be public HTTPS on port 443. Registration, or changing an endpoint's `url`, returns
`422 webhook_url_not_public` for another scheme or port, embedded credentials, a local or private
address, or a host that resolves to one. It returns `422 webhook_host_unresolvable` when the host
does not resolve. No endpoint is created or changed; correct the address and send a new request.

The isolated guest-demo Sandbox may have outbound delivery disabled. In that deployment,
new endpoint creation/enabling, configuration changes, synthetic tests and new redelivery cycles return
`409 outbound_delivery_disabled`. Event polling, inspection, disabling and existing replay receipts
remain available. Matching committed create/update/test retries also return their original receipts,
without revealing an issued signing secret again. Queued evidence is retained; new purchase email is suppressed.
This deployment opt-out does not change the default configuration or Live behavior.

For `order.refund_request.updated`, the public OpenAPI's `webhooks` section includes a concrete
`RefundRequestUpdatedEvent` envelope and nested payload/item schemas. The event catalog's
`body_schema` describes the same current producer, including nullable refund identity and frozen
request facts. These are outbound receiver contracts, not additional Ignyt request endpoints.
See [refund lifecycle and historical replay compatibility](https://808-labs.mintlify.site/checkout-and-refunds.md).

## Receive safely

1. Verify `ignite-signature` against the **original raw body bytes**, the timestamp and your configured current/previous signing secrets.
2. Persist the authenticated event in your durable inbox, using the signed body `id` for deduplication, before returning 2xx.
3. Process asynchronously and make downstream effects idempotent too.
4. Reconcile current scoped resources when events arrive late or out of order.

> [!NOTE]
>
> Delivery is at least once. Losing the HTTP acknowledgement can cause the same event to arrive again. A notification is never an instruction to create a replacement purchase or payment.

```python theme={"theme":{"light":"github-light","dark":"github-dark"}}
from ignite_sdk import verify_webhook

# Include the previous secret only during the configured rotation overlap.
secrets = (current_secret, previous_secret) if previous_secret else (current_secret,)
event = verify_webhook(raw_body, signature_header, secrets=secrets)
# Commit event.event_id and authenticated payload to your inbox before 2xx.
```

## Delivery inspection and replay

Use `/v1/webhook-deliveries`, `/v1/webhook-deliveries/summary` and each delivery's `/attempts` resource. Follow returned cursors and retain the same filters. A dispatch without a confirmed result is not proof that the receiver failed.

Replay a delivered/dead notification with `POST /v1/webhook-deliveries/{attempt_id}/redeliver`. Persist an `Idempotency-Key` and reason, and reuse them after an uncertain replay response. Replay retains the event ID and does not repeat the underlying order/payment.

## Poll instead or recover gaps

`GET /v1/events` requires `events:read` and the feed feature. Persist captured events and the next checkpoint in the same consumer transaction. Keep the last item's cursor when caught up; an empty page is not an instruction to reset the cursor.

If webhook/feed features are unavailable, authorized current-resource polling remains a separate option. Integration polling consumes API allowance, so use bounded intervals/backoff and incremental catalog checkpoints.

Turning a feature off does not erase historical deliveries or purchase evidence. After re-enabling it, reconcile gaps from your saved feed checkpoint or current resources; do not assume every missed notification was queued.

## Related guides

> [card] [Catalog recovery](https://808-labs.mintlify.site/catalog.md)
>
> Resume incremental synchronization from a saved checkpoint.

> [card] [Secure your receiver](https://808-labs.mintlify.site/security-and-support.md)
>
> Protect signing secrets and minimize stored shopper data.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.