Skip to main content

Webhook Integration Guide: Real-Time Identity Verification

Didit sends identity, business, and transaction events to your POST endpoint. Verify X-Signature-V2, return 2xx quickly, and re-fetch decisions when using the deprecated simple signature.

Webhook Integration Guide: Real-Time Identity Verification

Contents

In this guide

Jump to the part you need.

This guide is for developers who integrate Didit identity checks and need status changes without polling. You register a POST endpoint, verify the HMAC signature, and act on the event. A full KYC check costs $0.33 per completed check at list price, and webhook delivery has no separate published line. The main caveat: when you reconcile or verify with the simple signature, treat the webhook as a notification, not your only decision source, and re-fetch the decision.

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

Didit webhook integration at a glance
ItemWhat to use
EndpointA public URL that accepts POST. Use HTTPS as a security recommendation; the docs do not list it as a Didit requirement.
SignatureX-Signature-V2 over canonical JSON, with X-Timestamp.
Event selectionExact event names in subscribed_events, chosen per destination. There is no wildcard.
Retry behaviorRetries within a bounded delivery policy, plus 30 day delivery health.
PriceChecks are billed per completed check. No separate published webhook line.
Test pathSandbox application and Try Webhook tests.

Start free in the sandbox at business.didit.me, with no sales call. For developer setup, the Didit integration prompt covers the API and webhook route, MCP connects Didit to an AI assistant, and the pricing page lists every unit price.

The outcome is a working POST endpoint that receives Didit events as they are dispatched after a status change, proves the request came from Didit, and updates your own record. The recommended method is X-Signature-V2, because it signs the sorted, Unicode-preserved canonical JSON and keeps working when middleware re-encodes the body. Use X-Signature only when you have the exact raw bytes, and treat X-Signature-Simple as a deprecated last resort that authenticates the envelope but not the decision body.

Webhooks let you receive events without polling every session. A session moves from Not Started to In Progress, then to Approved, Declined or In Review. Didit sends the status change to every destination subscribed to status.updated. The payload mirrors the decision response, and a verified payload for a final status carries the decision object, so your application can store the result, notify the user, and open or block access without making another call. The verification status docs are the source of truth for the strings.

Prerequisites

  • A Didit account and an application. The sandbox is free and unlimited.
  • A workflow UUID. KYC workflows create user sessions; KYB workflows create business sessions.
  • An API key that can create sessions and read decisions, including the read:sessions privilege.
  • A public endpoint that accepts POST and can read the raw request body before JSON parsing. Serving it over HTTPS is a security recommendation, not a documented Didit requirement.
  • The destination signing secret from the Business Console.
  • A clock in sync, because the timestamp check uses a 300 second window.

Step-by-step: add real-time identity verification webhooks

  1. Pick the workflow and copy its workflow_id. Didit uses the workflow type to decide whether POST /v3/session/ creates a KYC session or a KYB session. There is no separate KYB endpoint.

  2. Create a session. Send the workflow UUID and your own stable identifier in vendor_data. The callback is where the hosted flow redirects the user when it finishes. If the application has allowed domains, the callback must use one of those origins.

    curl -X POST 'https://verification.didit.me/v3/session/' -H 'x-api-key: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{"workflow_id":"WORKFLOW_UUID","vendor_data":"user_1234","callback":"https://app.example.com/verified"}'

    The response includes the session_id. Keep it for reconciliation, and use the session_url for the hosted flow.

  3. Add a webhook destination in the Business Console. Enter your endpoint URL, choose the exact events, and copy the signing secret. There is no wildcard: include every event family you want to receive. The exact list in subscribed_events is chosen per destination, so two destinations can receive different sets of events. You can create multiple destinations to fan out to different URLs, such as one endpoint for KYC and another for transaction events.

A session overview with its warnings in the Didit Business Console.
The Console session overview shows the warnings that a webhook reports when a session moves to In Review.
  1. Build the POST endpoint. Read the raw body first. Do not parse JSON before signature verification. Check that X-Timestamp is within 300 seconds of your clock, recompute the HMAC-SHA256 with the destination secret, and compare in constant time against X-Signature-V2. If a X-Signature-V2-Previous header is present, accept a match on either header so a secret rotation does not break delivery.

  2. Parse the body only after verification. Branch on webhook_type. Return a 2xx status as soon as you have accepted the event. Update your state idempotently by event_id, because a retry can deliver the same event again.

  3. Test in the sandbox before live traffic. The sandbox is free and unlimited. The activity.created event is reserved for the activity timeline and is currently only sent by Try Webhook tests, so it is a documented Try Webhook test path to check that your endpoint receives and verifies a request. Sandbox sessions can also carry a sandbox_scenario, such as a decline scenario, so you can exercise the decision path without a real user.

  4. Audit the destination from the API. The list endpoint returns the URL, subscribed events, webhook version, 30 day delivery metrics and health status.

    curl -X GET 'https://verification.didit.me/v3/webhook/destinations/' -H 'x-api-key: YOUR_API_KEY'

    Read health_status first. failing means three or more consecutive events failed their first delivery attempt. degraded means an attempt failed in the last 24 hours and no later attempt delivered that event.

  5. Reconcile with the decision endpoint. If a webhook is missed, dropped, or verified with X-Signature-Simple, call GET /v3/session/{session_id}/decision/ and store the decision from the API, not from the payload.

    curl 'https://verification.didit.me/v3/session/SESSION_ID/decision/' -H 'x-api-key: YOUR_API_KEY'

    The response includes session_kind, so branch on user or business before reading feature arrays.

Signature headers and what each one covers

Didit signature headers
HeaderWhat it signsWhen to use it
X-Signature-V2Sorted, Unicode-preserved canonical JSONRecommended default. It survives JSON re-encoding by middleware.
X-SignatureThe exact raw JSON bytesOnly when your stack gives you the raw body before any parsing or re-encoding.
X-Signature-Simple{timestamp}:{session_id}:{status}:{webhook_type}Deprecated last resort. It authenticates the envelope only, so re-fetch the decision before you trust the result.
X-TimestampUnix epoch seconds when Didit dispatched the eventReject the request if the absolute difference from your clock is more than 300 seconds.

When a destination secret is rotated in the Business Console, Didit sends X-Signature-V2-Previous, X-Signature-Previous and X-Signature-Simple-Previous for 24 hours. These are the same signatures made with the replaced secret. Accept a match on either the current or the previous header while you deploy the new secret.

Event types and payload fields

Didit sends a flat envelope for session events. The fields you can rely on are event_id, session_id, status, webhook_type, created_at, timestamp, application_id, environment, workflow_id and workflow_version. vendor_data and metadata appear only when they were present on the session. A decision object appears only when the status is Approved, Declined, In Review or Abandoned.

Common Didit webhook event types
EventWhat it tells you
status.updatedA session or business session status changed.
data.updatedSession or business session verification data was edited.
user.status.updated and user.data.updatedA User entity moved to ACTIVE, FLAGGED or BLOCKED, or its profile data changed.
business.status.updated and business.data.updatedA Business entity changed status or profile data.
transaction.created and transaction.status.updatedA transaction was created with an initial verdict, or its status changed.
travel_rule.status.updatedA Travel Rule exchange changed status.
workflow.compliance_changedA published workflow changed compliance status after re-evaluation.
transaction_rule_suggestions.createdA rule suggestion run proposed new rule changes.
activity.createdReserved for the activity timeline. Currently sent only by Try Webhook tests.
Investigator eventsThe twelve investigator events, such as investigator.report.ready. Each one is listed in the table below.

The exact event names in subscribed_events are chosen per destination, so subscribe only the families that endpoint needs and create a second destination for the rest. One family deserves its own list because it has many members.

Investigator event names you can subscribe to
EventWhat it tells you
investigator.report.readyThe Investigator wrote a report on an item.
investigator.decision.automatedThe Investigator decided an item on its own.
investigator.decision.overriddenA person took another action than the one in the Investigator report, or overrode a decision it took on its own.
investigator.decision.contestedThe end user contested a decision and asked for a human review.
investigator.question.raisedThe Investigator asked the team a question about its policy.
investigator.automation.pausedAutomation stopped deciding, paused by a person or at the monthly spending limit.
investigator.rfi.answeredThe end user answered an information request.
investigator.rfi.overdueAn information request passed its deadline unanswered.
investigator.drift.detectedA queue drifted and automation stepped down a tier.
investigator.sla.breachedA report waited past its queue's SLA without a decision.
investigator.qa.failedA decision a person took failed the Investigator quality review.
investigator.external.report.readyThe report on an item you sent from outside Didit is ready.

KYB payloads add business_session_id and session_kind set to business. The decision object uses plural arrays because a workflow can run the same feature more than once: id_verifications[], liveness_checks[], face_matches[], aml_screenings[], poa_verifications[], phone_verifications[], email_verifications[], ip_analyses[], database_validations[] and, for KYB, registry_checks[], document_verifications[] and key_people_checks[]. The data model reference has the full schema.

Expected output

A verified status.updated delivery for an approved session looks like this. The decision object is abbreviated here; in production it carries every feature result the workflow ran.

{
  "event_id": "8b1c0f2e-4a6d-4f3a-9a1e-2f6c8d0b7a11",
  "session_id": "3f2a7c1d-9e4b-4a2f-8c6d-1b7e5a9f0c22",
  "status": "Approved",
  "webhook_type": "status.updated",
  "created_at": 1627680000,
  "timestamp": 1627680000,
  "application_id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
  "environment": "live",
  "sandbox_scenario": null,
  "workflow_id": "c3d4e5f6-a7b8-4c9d-8e0f-1a2b3c4d5e6f",
  "workflow_version": 1,
  "vendor_data": "user_1234",
  "metadata": {"user_type": "premium"},
  "decision": {"id_verifications": [], "liveness_checks": [], "face_matches": []}
}

The request also carries X-Signature-V2 and X-Timestamp. Your endpoint should answer with a 2xx status and no dependency on a slow downstream service. A failed attempt is an HTTP 400-or-higher response, or no response because of a timeout, refused connection, or blocked address.

Status strings are exact

Every status is a case-sensitive string. Use strict matching, including spaces. Kyc Expired uses a single capital K, not KYC.

Didit session statuses
StatusWhat your application should do
Not StartedThe session exists and the user has not opened the link. Wait or send a reminder.
In ProgressThe user is completing steps. No decision yet.
ApprovedAll checks passed. Store the decision and grant access according to your policy.
DeclinedOne or more checks failed. Do not grant access. A reviewer can request a resubmission.
In ReviewWarnings need a human decision. Wait for a reviewer, or route the session to your own review queue.
Awaiting UserKYB only. Key people have been submitted and child sessions are running.
ResubmittedThe user was asked to redo specific steps. Wait for the next decision.
ExpiredThe session timed out before the user opened the link. Create a new session if needed.
AbandonedThe user started but did not finish in time. Follow up or create a new session.
Kyc ExpiredA previously approved document passed its expiry date. Re-verify if your policy requires it.

Failure cases and recovery

Webhook failure cases and recovery
CaseWhat happensRecovery
Your endpoint answers with HTTP 400 or higher, or does not answer because of a timeout, refused connection or blocked addressThe attempt fails. Didit retries within a bounded delivery policy, and the destination health can move to degraded or failing.Fix the endpoint, then resend or wait for a retry. Check health_status and failing_streak.
Timestamp is more than 300 seconds oldYou should reject the request.Check clock sync and retry the verification logic. Do not widen the window without a reason.
Signature does not matchThe request is not authentic, or you signed the wrong bytes.Use the raw body for X-Signature, or switch to X-Signature-V2. Confirm the destination secret.
The secret was rotatedDeliveries carry the previous headers for 24 hours after rotation.Accept a match on the current or previous header, deploy the new secret, then remove the old one.
The same event arrives twiceA retry can duplicate a delivery.Store event_id and make the update idempotent.
Retries are exhaustedThe event is dropped.Reconcile with GET /v3/session/{session_id}/decision/ and update your record from the API.

Inputs and outputs

Webhook integration inputs and outputs
DirectionFieldUse
Inputworkflow_idChooses the workflow and whether the session is KYC or KYB.
Inputvendor_dataYour stable user or business identifier, echoed in the payload.
InputmetadataArbitrary JSON you want back in the webhook.
InputcallbackRedirect URL after the hosted flow, with verificationSessionId and status appended.
InputDestination URL and secretWhere Didit sends events and the key you use to verify them.
Inputsubscribed_eventsExact event names, set per destination. There is no wildcard.
Outputevent_idIdempotency key for the delivery.
Outputsession_id and statusThe session that changed and its new exact status.
Outputwebhook_typeThe event family, such as status.updated.
OutputdecisionFeature results when the status is Approved, Declined, In Review or Abandoned.
Outputbusiness_session_idKYB payloads only.

Webhook delivery is not a separate published price line. You pay for the checks the session runs. A full KYC check is $0.33 per completed check: ID document verification $0.15, passive liveness $0.10, face match 1:1 $0.05, and device and IP analysis $0.03. AML screening is $0.20 per check, proof of address is $0.20 per check, and business verification starts at $2.00 per company, with linked KYC and person AML billed per person.

The ID document result for a session in the Didit Business Console.
The ID document check is the $0.15 part of the $0.33 KYC check, and its result appears in the decision object.

The review boundary is separate from billing. When a session moves to In Review, the webhook carries the decision and warnings, but it does not approve the user. A compliance reviewer decides in the Business Console or with PATCH /v3/session/{sessionId}/update-status/. Your application should treat In Review as pending, not as approved. A reviewer can also move an Approved, Declined, Resubmitted, Abandoned or Kyc Expired session to another decision status, so a webhook can arrive after your first record.

The details of an AML hit in the Didit Business Console.
AML screening is a separate $0.20 check, and its result appears in the decision object when that feature runs.

Worked cost example

Take 1,000 completed KYC checks at list price. 1,000 x $0.33 = $330.00. Add AML screening to 250 of those users: 250 x $0.20 = $50.00. Total list price is $330.00 + $50.00 = $380.00. On the Scale plan, the 10% discount applies to Didit prices: $380.00 x 0.10 = $38.00, so $380.00 - $38.00 = $342.00. That $342.00 is the discounted usage before the plan monthly credit is applied; the $350.00 of Scale credit covers it in the month it is earned, and unused monthly credit does not roll over. The $299.00 monthly plan fee is separate, and webhook delivery adds no line item.

Sources

Start with the sandbox at business.didit.me. No sales call is required, and you can create a destination, send a test event, and verify the signature before you run a live check.

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

What is a Didit webhook and when should I use one?

A Didit webhook is an HTTP POST that Didit sends to your endpoint when an event such as a session status change happens. Use it when you need the result without polling, for example to grant access after Approved or to queue a manual review after In Review. The payload mirrors the decision response and is signed so you can verify it.

How do I verify a Didit webhook signature?

Read the raw request body before parsing, check that X-Timestamp is within 300 seconds, recompute the HMAC-SHA256 with your destination secret, and compare in constant time. With X-Signature-V2, the signature covers the sorted, Unicode-preserved canonical JSON. Accept a match on the current or the -Previous header while a secret rotation is in progress.

Which signature header should I use?

Use X-Signature-V2 first because it works even when middleware re-encodes the JSON. Use X-Signature only if you have direct access to the exact raw bytes and no layer rewrites them. X-Signature-Simple is a deprecated last resort that authenticates the envelope only, so re-fetch the decision from GET /v3/session/{session_id}/decision/ if you rely on it.

What event types can I subscribe to?

Didit sends status.updated and data.updated for sessions and business sessions, plus user.status.updated, user.data.updated, business.status.updated, business.data.updated, transaction.created, transaction.status.updated, travel_rule.status.updated, workflow.compliance_changed, transaction_rule_suggestions.created, activity.created and twelve investigator events, including investigator.report.ready, investigator.decision.automated, investigator.rfi.overdue and investigator.sla.breached. There is no wildcard, so include every event name you want in subscribed_events, and choose that list per destination. You can create multiple destinations to fan out different families to different URLs.

How does Didit retry failed webhooks?

A failed attempt is an HTTP 400-or-higher response, or no response because of a timeout, refused connection, or blocked address. Didit retries within a bounded delivery policy. Retries do not extend the failing streak, and any successful attempt ends it. Use GET /v3/webhook/destinations/ to read health_status, failing_streak and the 30 day delivery metrics, then reconcile any dropped event from the decision endpoint.

What status values can a webhook send?

The status values are Not Started, In Progress, Approved, Declined, In Review, Awaiting User, Resubmitted, Expired, Abandoned and Kyc Expired. They are exact, case-sensitive strings with spaces. Kyc Expired uses a single capital K.

Do I pay extra for webhooks?

Didit does not publish a separate webhook delivery price. You pay per completed check from prepaid credit, with a full KYC check at $0.33, AML screening at $0.20 and business verification from $2.00 per company. The sandbox is free on every plan.

Can one endpoint receive KYC, KYB and transaction events?

Yes, if you subscribe that destination to every family you need, because there is no wildcard. Branch on webhook_type and, for decisions, on session_kind. KYB payloads include business_session_id and session_kind set to business.

What should my app do when a session is In Review?

Store the decision and warnings, mark the user as pending, and route the session to a reviewer if your policy requires one. The webhook does not approve the user. A reviewer decides in the Business Console or with PATCH /v3/session/{sessionId}/update-status/, and the next webhook reports the final status.

How do I test Didit webhooks without live users?

Use a sandbox application, which is free and unlimited. The activity.created event is currently only sent by Try Webhook tests, so it lets you check receipt and signature verification. Sandbox sessions can also carry a sandbox_scenario so you can reproduce a decline or review path.

How do I rotate a webhook signing secret?

Rotate the secret for the destination in the Business Console. For 24 hours, Didit also sends X-Signature-V2-Previous, X-Signature-Previous and X-Signature-Simple-Previous, made with the replaced secret. Deploy code that accepts either the current or previous header, then remove the old secret after the window.

Where do I see whether my webhook destination is healthy?

Call GET /v3/webhook/destinations/ with your API key. Each item includes health_status, failing_streak, failing_since, last_delivery_at, error_rate_percentage and 30 daily points. failing means three or more consecutive first attempts failed, and degraded means an attempt failed in the last 24 hours without a later success.

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.