Skip to main content

Webhook Reliability: Retry and DLQ in 9 Steps (2026)

Verify the signature, answer 2xx fast, deduplicate on event ID, dead-letter events that need intervention, alert on destination health, and recover by reading the current decision instead of replaying a stale payload.

Webhook Reliability: Retry and DLQ in 9 Steps (2026)

Contents

In this guide

Jump to the part you need.

This guide fits teams that already receive Didit webhooks and need the retry and dead letter layer around them: signature verification, idempotent processing, alerting, and recovery for session status events. Our public price list shows no separate webhook delivery rate. The checks that produce events are metered, for example $0.33 per completed full ID check. The caveat: delivery only helps when your receiver verifies events, deduplicates them, and reconciles current state correctly.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

Webhook reliability at a glance
ItemValueWhere it comes from
Recommended signature headerX-Signature-V2, HMAC-SHA256 over sorted canonical JSONDidit webhooks guide
Timestamp tolerance300 secondsDidit webhooks guide
HMAC inputX-Signature-V2: sorted, Unicode-preserved canonical JSON. X-Signature: exact raw request bytes.Didit webhooks guide
Event subscriptionExact event names in subscribed_events, no wildcardList webhook destinations API
Destination health valueshealthy, degraded, failingList webhook destinations API
RetriesBounded, run by DiditDidit webhooks guide
Recovery source of truthGET /v3/session/{session_id}/decision/ for session status events; delivery history for a missing deliveryDidit webhooks guide and Management API
Webhook delivery priceNo separate webhook delivery rate on our public price listLive price feed, November 26, 2026
Full ID check price$0.33 per completed checkLive price feed, November 26, 2026
Dead letterAn accepted event that still needs operator attentionThis guide

Start free in the sandbox at business.didit.me, no sales call. For developers, connect Didit to an AI assistant through Didit MCP server setup. Every module price is on the pricing page.

Who owns retry and recovery

Keep delivery and processing separate. Didit owns delivery attempts and its own retry policy. You own idempotent processing, dead letter records for accepted events that need operator attention, and current-state reconciliation for known sessions. The table below is the short version to paste into a runbook.

Retry and recovery ownership
SituationDidit ownsYou ownFirst action
Failed delivery attemptBounded retries per destination, recorded in delivery attemptsReceiver availability, security logging, and alert responseCheck destination health and the receiver log for the request
Duplicate authenticated eventMay retry the same eventDeduplication on event_id and idempotent downstream updatesIgnore the duplicate side effect and keep one state change
Temporary processing failure after acceptanceNo delivery retry for a request the receiver acknowledged with HTTP 2xxProcessing state and idempotent updatesFix the processing issue, then reconcile the current decision for a known session event
Processing failure that needs interventionNo automatic recoveryDead letter, owner assignment, and current-state reconciliationOpen the dead letter and reconcile the decision for the known session

Outcome and the method we recommend

The outcome is a receiver that can prove three things: every accepted event was authentic, every accepted event was processed idempotently, and every accepted event that still needs attention is tracked with a reason and an owner.

We sign deliveries and retry failed attempts within our retry policy. You own verification, idempotency and dead letter records for accepted events that still need operator attention. For status.updated session events, recovery is a current-state read from the decision endpoint, not a replay of an old payload. A resend is a separate recovery option.

Prerequisites

  • A Didit application and an API key sent as x-api-key. Reading destination activity needs the read:webhooks scope.
  • One destination per receiving URL, created in the Business Console or through the Management API, with exact event names in subscribed_events.
  • The destination signing secret from the single-destination call. The list call returns only secret_last4.
  • An HTTP endpoint that reads the raw body before parsing, plus a constant-time comparison function.
  • An application-side dead letter concept with an event reference, failure reason, attempt count, received timestamp and a named owner.
  • Scope for the worked receiver and recovery drill: status.updated session events. Prices for the checks behind these events are on the pricing page, and the scope itself is the User Verification product page. Other families have their own documented payloads.

Build the receiver in 9 steps

  1. Register the destination and subscribe to exact event names. There is no wildcard. Add each exact event name, such as status.updated, to subscribed_events. Create separate destinations when separate services need separate exact event names. Confirm the list with the destinations call below. The worked receiver and recovery drill in this guide are scoped to status.updated session events; route entity, transaction, investigator, travel rule and bank events with their documented payloads and do not assume the session fields below apply.
  2. Read the raw body first. Capture the raw body. For X-Signature-V2, derive sorted, Unicode-preserved canonical JSON for the HMAC calculation. For X-Signature, use the exact raw bytes. Use payload fields for routing or updates only after verification succeeds.
  3. Reject stale and unauthenticated deliveries. Take X-Timestamp, Unix epoch seconds at dispatch, and refuse anything outside 300 seconds of now. Recompute the HMAC and compare it in constant time against the corresponding header and secret: the current header uses the current secret, and the Previous header uses the replaced secret. Previous headers are sent for 24 hours after destination-secret rotation and are never sent for the legacy application webhook URL. This does not promise a gap-free rotation.
  4. Answer 2xx promptly. Verify the signature and timestamp, return HTTP 2xx promptly, and apply updates idempotently. For status.updated session events, use event_id as the deduplication key for repeated deliveries of the same event. Idempotency is per event, not per session.
  5. Route on webhook_type, then on status. This worked receiver handles status.updated session events. Status strings are exact, case-sensitive and contain spaces, and Kyc Expired uses a single capital K. The decision object is present only on the four decision-bearing session statuses: Approved, Declined, In Review and Abandoned. A handler that assumes it always exists will fail on progress events. Other event families have their own payloads.
  6. Separate rejected delivery from processing failure. HTTP 400 and above counts as a failed delivery attempt. A dead letter does not control our retry policy. Create a dead letter record when an authenticated, accepted event has a processing failure that needs operator attention. Keep rejected requests in security logs with minimal metadata.
  7. Alert on Didit delivery signals, not only on your logs. GET /v3/webhook/destinations/ returns health_status per destination with failing_streak and failing_since. Use the failure activity API to list recorded failure alerts; these are distinct from individual delivery attempts. Destination health is independent of whether the destination is enabled. A receiver cannot log requests it never receives, so destination health is a separate alerting signal. Degraded means an unresolved failed attempt in the last 24 hours when the destination is not already failing. Failing means three or more consecutive events failed their first attempt since the last successful response.
  8. Recover from current state and delivery history. For a status.updated session event, use the session ID from a verified event or an existing session record. GET /v3/session/{session_id}/decision/ reads current state; it is not a resend. When no request reached the receiver, start with Didit's delivery history to investigate the missing delivery. Apply the current decision only when reconciling known session state. Label a resend as a separate recovery option.
  9. Run a recovery drill. In sandbox, test one subscribed status.updated session event, one duplicate and one failed delivery. Confirm the valid delivery in delivery history. Confirm that the duplicate produces one downstream state change in total. For the failed delivery, inspect its attempt record and reconcile the current decision for the known session. Check the failure activity API for any recorded alert separately. Success means the event is accepted only after signature verification, the duplicate causes no second state change, and the failed delivery appears in destination health or delivery history while the known session's current decision is reconciled.

The runnable examples below cover the destinations read, the failure activity read and the current decision read.

curl -X GET 'https://verification.didit.me/v3/webhook/destinations/' \
  -H 'x-api-key: YOUR_API_KEY'
curl -X GET 'https://verification.didit.me/v3/organization/ORGANIZATION_ID/application/APPLICATION_ID/webhook/destinations/DESTINATION_UUID/activity/' \
  -H 'x-api-key: YOUR_API_KEY'
curl -X GET 'https://verification.didit.me/v3/session/SESSION_ID/decision/' \
  -H 'x-api-key: YOUR_API_KEY'

Expected output

The destinations call returns a JSON array, not paginated, ordered by creation time oldest first. There is no summary object. Read these fields first:

  • uuid, url, label, enabled: identity and basic configuration.
  • webhook_version: v3 is current. Check that your receiver handles the configured version.
  • subscribed_events: the list you actually get. Compare it with the exact event names your router handles.
  • health_status, failing_streak, failing_since: the alerting signal.
  • deliveries_count, failed_deliveries_count, average_response_time_ms, error_rate_percentage: 30-day metrics, so metrics_window_days is always 30.
  • daily_points: 30 entries, oldest first, one per UTC day, with zeros on quiet days.
  • last_success_at: the last answer under HTTP 400 within 30 days, or null.
  • secret_last4: identity only. The full secret comes from the single-destination call.

Separate configuration checks from destination health. Configuration checks cover webhook_version and subscribed_events. Destination health covers health_status and failing_streak. A healthy status alone does not prove a test event arrived, so send a test event and confirm it in delivery history. The docs mark this endpoint pay-per-call, so poll on a schedule and cache the answer.

The activity call returns recorded failure alerts, newest first. Each entry has id, type (failure_alert), occurred_at and failure_count. Use limit and offset to paginate and follow next until it is null; count can be capped or estimated. A missing destination returns 404.

The decision call returns the current session state for the session ID you pass. Read the current status and the decision fields your workflow uses; per-feature data is in plural arrays such as id_verifications[] and aml_screenings[].

Failure cases and recovery

What breaks, how you see it, what you do
FailureHow you see itRecovery
Endpoint times out, refuses the connection or the address is blockedRecorded as a failed delivery attempt. The destination is degraded if the attempt remains unresolved within the last 24 hours and the failing threshold has not been met. It is failing when three or more consecutive events have failed their first attempt since the last successful response.Fix the endpoint, then let a retry or a resend land. If no request reached the receiver, inspect delivery history. For a known session event, reconcile the current decision.
Your handler answers HTTP 400 or aboveCounted as a failed delivery attemptTreat it as a rejected delivery, keep minimal security metadata, fix the handler. A resend is separate. Reconcile the current decision for a known session event.
Signature mismatchYour handler rejects the requestCheck raw body handling, canonical V2 input, the current secret and the replaced secret for a Previous header. Log minimal security metadata.
Timestamp outside 300 secondsRejected before processingSync the receiver clock. A drifting host rejects good deliveries all day.
Unknown webhook_typeRouter falls through to a default branchFix the subscription or dead letter it as a configuration error. Do not treat it as a processing failure.
Duplicate authenticated eventA repeated delivery of the same eventDeduplicate on event_id and keep downstream updates idempotent.
Temporary processing failure after a 2xxNo Didit delivery retry for that requestFix the processing issue, then reconcile the current decision for a known session event.
Processing failure that needs interventionNo automatic recoveryDead letter it with an owner. Reconcile the current decision for a known session event.
Delivery retries exhaustedNo successful attempt in delivery history; destination health may be failingStart with delivery history to investigate. For a known session event, read the current decision. A resend is a separate recovery option.
429 while re-reading a decisiondetail, Retry-After and rate-limit headersUse Retry-After as the floor, add backoff with jitter, stop after about five attempts and page a human.
Insufficient creditInspect the response body. Session creation can return HTTP 400, standalone APIs generally return HTTP 403, and some APIs return HTTP 402.Top up or resolve the documented billing issue, then retry the original operation if appropriate.
A verification session in the Didit Business Console showing the status and warnings attached to it
A session overview in the Console. For a status.updated session event, the current decision lives here and at the decision endpoint, so a missed delivery is a reconcile step, not a new verification.
An AML screening result for one session in the Didit Business Console
An AML screening result attached to a session. This is the kind of session data you do not want to lose in a failed delivery.

Inputs and outputs

Inputs and outputs for the retry and recovery loop
NameInput or outputSource or destinationUsed for
uuidInputList destinations responseKey for metrics, activity and the single-destination read
secret_shared_keyInputGet destination responseHMAC key for signature verification
event_idInputWebhook envelopeDeduplication key for repeated deliveries
session_idInputVerified event or existing session recordCurrent decision read for status.updated session events
webhook_type and statusInputWebhook envelopeRouting and state transition for status.updated session events
health_status and failure activityInputList destinations and activity responsesAlerting and investigation
Dead letter recordOutputYour operations recordEvidence, owner assignment and recovery source
Recovery drill recordOutputYour runbook log or ticketDate, failed delivery attempt, any recorded alert, affected session, current decision and result

Our public price list shows no separate webhook delivery rate. The Management API docs describe listing destinations as pay-per-call without quoting a unit price. The example covers verification charges only.

Metered checks: $0.33 per completed full ID check and $0.20 per AML check. Sandbox testing is free and unlimited; the workflow orchestrator, MCP server and SDKs are free.

A session in In Review requires a compliance reviewer. Route AML and sanctions alerts according to your organization's review policy. This runbook routes work; it does not decide. Keep the dead letter owner named.

Worked cost example

A pilot of 2,000 completed verifications in one month, each a full ID check plus AML screening, at list price:

  • Per user: $0.33 for a completed full ID check + $0.20 for an AML check = $0.53
  • 2,000 users: 2,000 x $0.53 = $1,060.00
  • On Scale, the full ID check and AML screening in this example are each 10% lower: $0.33 x 0.90 = $0.2970 and $0.20 x 0.90 = $0.1800, so $0.4770 per user
  • 2,000 x $0.4770 = $954.00 in usage
  • Scale costs $299.00 a month and includes $350.00 of monthly credit: $954.00 minus $350.00 = $604.00 in top-up, so $299.00 + $604.00 = $903.00 of cash for that month
  • Webhook delivery: our public price list shows no separate webhook delivery rate. The example covers verification charges only.

This $903.00 is a monthly Scale example assuming no existing top-up balance and no other usage drawing on the monthly credit.

Explainer thumbnail for how Didit billing works, covering credits, auto-recharge and volume discounts
Credits, auto-recharge and plan discounts, which is where the arithmetic above comes from.

Recovery drill and records

Keep records for the recovery loop, not for a fixed repository path. A drill record should show the date, the failed delivery attempt, any recorded alert, the affected session, the current decision you read and the result. The dead letter record should carry the minimum needed to find the event and act: event reference, timestamps, failure reason and resolution.

Destination metrics cover 30 days. Set a retention period for your own records based on applicable obligations and operational needs. Restrict access and follow your approved deletion policy.

Other event families

Bank links, connections and synced bank data send their own bank.* events, documented on the bank webhooks page. Give them their own destination and read their documented payloads. Do not apply the session routing or session recovery steps to bank events. Delivery attempts and destination analytics are documented separately at the delivery attempts page and the destination analytics page.

Sources

Next step: open the sandbox at business.didit.me, create one destination, and run the sandbox drill in step 9 against it today. No sales call, and sandbox checks are free.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alejandro Rosas

Co-founder and CTO

Alejandro Rosas

Alejandro Rosas

Co-founder and CTO

About Didit

Questions

Frequently asked questions

Does Didit retry failed webhook deliveries?

Yes. Didit runs bounded retries per destination, and the current policy is on the webhooks guide under retry policy. A failed delivery attempt is one your endpoint answers with HTTP 400 or above, or one that times out, refuses the connection or hits a blocked address. Retries do not add to failing_streak, and any successful attempt, including a retry or a resend, ends the streak.

How do I verify a Didit webhook signature?

Read the raw body first, recompute HMAC-SHA256 with the destination signing secret, compare in constant time, and confirm that X-Timestamp is within 300 seconds of now. X-Signature-V2 hashes sorted, Unicode-preserved canonical JSON and is recommended because it survives re-encoding that preserves the same canonical JSON. When a Previous header is present, compare it with the replaced secret as well. Previous headers are sent for 24 hours after destination-secret rotation and are never sent for the legacy application webhook URL.

What is the difference between X-Signature, X-Signature-V2 and X-Signature-Simple?

X-Signature hashes the exact raw bytes and only works when nothing re-encodes them. X-Signature-V2 hashes the sorted, Unicode-preserved canonical JSON and is what the docs recommend. X-Signature-Simple is deprecated and authenticates only the envelope, so if you verify with it you must re-fetch the decision from the API instead of trusting the payload.

What happens when Didit webhook retries run out?

The webhooks guide documents bounded retries, but the supplied material does not quote an exact retry schedule or attempt limit. Inspect delivery history to see whether any attempt for that event succeeded. Destination health is a separate signal and can be healthy even when a specific event was never delivered. For a status.updated session event, reconcile the known session by reading its current decision. A resend is a separate recovery option, not a substitute for current-state reconciliation.

How do I inspect a failed Didit webhook delivery?

Use the delivery history to inspect individual attempts for a destination, and the destination activity endpoint for recorded failure alerts, which are distinct from individual attempts.

How long should I retain dead letter records?

Destination metrics cover 30 days. Set a retention period for your own records based on applicable obligations and operational needs. Restrict access and follow your approved deletion policy.

Which Didit webhook event types can I subscribe to?

You list them explicitly in subscribed_events, because there is no wildcard. The families include status.updated, data.updated, transaction.created, transaction.status.updated, travel_rule.status.updated, workflow.compliance_changed, the user and business entity events, and the investigator family. The worked receiver in this guide is scoped to status.updated session events; other families have their own documented payloads.

How do I replay a Didit webhook I missed?

For a status.updated session event, use the session ID from a verified event or an existing session record and read the current decision. That is current-state reconciliation, not a resend. When no request reached the receiver, start with Didit's delivery history to investigate the missing delivery. Label a resend as a separate recovery option, use event_id as the deduplication key for repeated deliveries of the same event and make each downstream state update idempotent.

What does health_status failing mean on a destination?

It means three or more consecutive events failed their first delivery attempt since the destination last answered successfully, with failing_streak counting them and failing_since giving the start. It is independent of enabled, so a paused destination can still show failing. Degraded means an unresolved failed attempt in the last 24 hours when the destination is not already failing. A receiver cannot log requests it never receives, so destination health is a separate alerting signal.

Do Didit webhooks cost anything?

Our public price list shows no separate webhook delivery rate. The Management API docs describe listing destinations as pay-per-call without quoting a unit price. The example covers verification charges only. Verification checks have their own published prices. A completed full ID check costs $0.33 and an AML check costs $0.20 at list price.

How do I handle a 429 when re-reading a decision?

Read Retry-After and treat it as the floor for your delay. Add exponential backoff with jitter on top so two clients that hit the limit at the same moment do not synchronise, and stop after about five attempts before alerting a person. Rate-limit headers are present on the 429 response, not on successful responses.

How do I run a sandbox drill for webhook recovery?

Test one subscribed status.updated session event, one duplicate and one failed delivery. Success means the event is accepted only after signature verification, the duplicate causes no second state change, and the failed delivery appears in destination health or delivery history while the known session's current decision is reconciled. Record the date, the failed delivery attempt, any recorded alert, affected session, current decision and result in your runbook log or ticket.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.