Event delivery
Ignyt sends a signed HTTPS request to your endpoint when something changes. If you can’t receive webhooks, read the same events from the event feed.
1. Register an endpoint
Pick the event types you need and register a public HTTPS URL. This needs thewebhooks:manage scope and the webhooks feature in your plan.
Response (abridged)
secret in your secret manager now. It is shown only once.
The URL must be public HTTPS on port 443. A private or local address returns 422 webhook_url_not_public, and a host that doesn’t resolve returns 422 webhook_host_unresolvable.
2. Verify the signature
Every request has anIgnite-Signature header like t=1764495000,v1=5f0c…. t is a Unix timestamp and v1 is an HMAC-SHA256 of the string "{t}.{raw body}", using your endpoint secret, as lowercase hex.
Verify against the raw request body bytes, before parsing the JSON. Reject requests whose timestamp is more than 5 minutes old.
3. Store first, then process
- Verify the signature.
- Save the event in your database, keyed by its
id, and mark it unprocessed. If theidis already saved, it’s a duplicate: return2xxand stop. - Return
2xxquickly, only after the save has committed. - Process saved events with a background worker that picks up every unprocessed event, including ones left over after a restart. Read the current resource, such as the purchase, before deciding what to do, then mark the event processed.
Delivery is at least once, and events can arrive out of order. Use the event
id to ignore duplicates and revision to ignore older updates. An event never asks you to create a new purchase or payment.Make actions safe to repeat
A worker can stop after acting but before marking the event processed, and several events can lead to the same action. For each action your worker takes, such as creating a shipment:- Key the action, not the event. Use a key that names the action, such as
create-shipment:{purchase_id}, so every event that leads to it shares one key. The eventidstill removes duplicate deliveries. - Save before you call. Store an action record with that key, the request body and its status before the first call. Later events for the same action reuse this record instead of building a new request.
- Retry with the same key and body. Reusing a key with a different body returns
409. - Resolve unknown outcomes first. A timeout or a lost response doesn’t mean the action failed. Look it up, for example by reading the shipment, and record the result before you retry or change it.
- Use a new key only for a different action, such as a second shipment.
Test your endpoint
Send a signed synthetic event to an active, subscribed Sandbox endpoint withPOST /v1/webhook-endpoints/{endpoint_id}/test. Send an Idempotency-Key and a body such as
{"event_type":"money.payment.updated"}. The response includes a delivery ID, and the callback has
"test": true. Use it to check delivery and signature verification. In Sandbox, the
scenario products trigger real payment, order and refund events.
Deliveries, retries and replays
Ignyt retries failed deliveries. To see what happened, useGET /v1/webhook-deliveries, GET /v1/webhook-deliveries/summary and each delivery’s /attempts.
To resend an event, call POST /v1/webhook-deliveries/{attempt_id}/redeliver with an Idempotency-Key and a reason. A replay sends the same event id; it does not repeat the order or payment.
Rotate a signing secret with POST /v1/webhook-endpoints/{endpoint_id}/rotate-secret. Accept both the old and new secret until the rotation finishes.
Poll the event feed instead
GET /v1/events returns the same events in order. It needs the events:read scope and the event feed feature.
cursor of the last event you stored, and request the next page from that cursor. next_cursor is null on the last page, so never overwrite your saved cursor with it. An empty page means you’re caught up; keep your cursor.
Use the feed to catch up after an outage, even if you use webhooks. Polling counts toward your API usage, so poll at a steady interval with backoff.
Related guides
Event types
Every event and its payload.
Errors and retries
Handle results you don’t know yet.