> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nixflex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Recover delayed or repeated webhook deliveries

> Handle webhook timing, retries, duplicates and missed events with durable acceptance and authenticated reads instead of repeating calls or bookings.

**FIXED · organisation** **MUST** With organisations enabled, each organisation has one signing secret. Send the human Owner to the dashboard. Never ask for it in chat or expose it to AI tools.\
An authorised server can use an Owner session or the organisation API credential. Admin and Member sessions cannot retrieve it. Store it on the receiving server. Without organisations, the webhook signing secret is only the owning credential’s `KEY_SECRET` part. In either mode pass the webhook signing secret as `keySecret` to the Node verifier.

**NOT OFFERED → do this instead · number** call.bookings has no account field or per-number secret. After signature verification, look up number in your own tenant table. It is the business to number inbound and from number outbound.

**YOU CAN CHANGE · number** Set delivery destinations per number. Pre-call settings can be scoped to an agent or number. Keep the delivery destination and your signature-verification secret separate.

**SCOPE · operation** Verify X-Nixflex-Signature (`t=<timestamp>,v1=<hex>`) with HMAC-SHA256 over timestamp + "." + the original raw request body. Compare the digest in constant time and enforce a freshness policy before trusting the payload.

[Read the compact AI rules](https://docs.nixflex.com/ai-rules.md#webhooks)

Recover delayed, repeated or missing webhook deliveries by reconciling saved work with authenticated resource reads.

Acceptance: **Durable save first** · Duplicates: **Atomic identity check** · Recovery: **Read current state**

**The important part**

* Save verified events durably before returning 2xx.
* Use an atomic deduplication key and a separate durable processing queue.
* Delivery timing is not a deadline or a guarantee that an event will arrive.

[Business guide](https://docs.nixflex.com/guides/business/integrations.md) · [API reference](https://docs.nixflex.com/api-reference/introduction.md) · [Glossary](https://docs.nixflex.com/guides/glossary.md)

## Understand delivery timing

The queued path defaults to five attempts. Completed calls and `call.bookings` normally start with a 60-second queue delay; SMS booking events use five seconds, and started calls request about two seconds. Retry backoff is 5, 5, 5 and 60 minutes. These are queue settings, not delivery deadlines; retention, recovery, account closure and missing data can stop or delay work.

Queued 2xx and 3xx responses count as delivered. Avoid redirects: they are not followed as successful forwarding. Network failures, 408, 429 and 5xx are retryable; other 4xx are treated as permanent. The transport helper can also retry a transport failure once. Return a prompt 2xx only after validated work is durably saved, and reconcile missed events through the call API.

The signature timestamp describes delivery, not call start. Compare it with the receiver's current clock; an old call can legitimately produce a newly signed late event.

## Make duplicate delivery harmless

After verification, atomically store/deduplicate the event and queue durable processing before returning a prompt 2xx. For call events, use `(account, event, call_id)` within each receiver, taking account identity from trusted configuration. Call ID alone would incorrectly merge started, completed and booking events. A separate check and insert can race: use a unique constraint and transaction. Quarantine a null identifier needed for deduplication. Legacy started/completed retries can contain fresher fields, so update projections deliberately without repeating business actions.

SMS booking events have no `call_id` or universal event ID. Store the verified delivery under a separate SMS path; a trusted-account plus raw-body digest can suppress exact queue redeliveries, but it is not a universal booking-action ID. Protect business actions separately using the confirmed booking operation and your own records. Do not deduplicate only by booking UID: later moves and cancellations can affect the same booking.

## Reconcile delayed results

Read current call or message state when necessary. For missed booking events, use [GET call booking results](https://docs.nixflex.com/api-reference/calls/get-bookings.md): only ready has a result, and none requires complete empty evidence. processing, deleted and unavailable must not be mapped to zero bookings. A completed call event is not a guarantee analysis and recording are already available. Fetch recording access from its authenticated endpoint. Delivery retries and eventual failures mean events are not an exactly-once or guaranteed-delivery channel.

## Diagnose a missing event

| Check | Meaning and next step |
| - | - |
| Destination and number | Read the saved integration; verify that it belongs to the intended number. |
| Signature or timestamp refused | Check raw-body handling, the correct secret and the receiver clock. Never disable verification to make a test pass. |
| Redirect response | Configure the final HTTPS receiver directly; a 3xx can be counted as delivered without forwarding. |
| Permanent 4xx | Correct the receiver contract; do not expect the queue to keep trying indefinitely. |
| Event saved but processing failed | Retry from your durable queue using the same business-action record. |
| Event unavailable after retries | Reconcile call or booking state through authenticated reads and retain an unknown result when evidence is incomplete. |

Do not place a replacement call or create another booking because its webhook is late. Those are new external actions, not delivery recovery.

## Prove the receiver before rollout

Use a controlled signed event, replay it to test deduplication, and test a processing failure after durable acceptance. Confirm that the queue can resume without another external action. Keep raw customer payloads and signing material out of routine logs; record safe IDs and error codes.

* [Verify exact request bytes](https://docs.nixflex.com/advanced/webhooks.md#3-verify-exact-request-bytes)
* [Choose the correct event](https://docs.nixflex.com/guides/developer/webhooks/event-types.md)
* [Read call and booking results](https://docs.nixflex.com/guides/developer/call-history.md)


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