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.

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.
| Item | What to use |
|---|---|
| Endpoint | A public URL that accepts POST. Use HTTPS as a security recommendation; the docs do not list it as a Didit requirement. |
| Signature | X-Signature-V2 over canonical JSON, with X-Timestamp. |
| Event selection | Exact event names in subscribed_events, chosen per destination. There is no wildcard. |
| Retry behavior | Retries within a bounded delivery policy, plus 30 day delivery health. |
| Price | Checks are billed per completed check. No separate published webhook line. |
| Test path | Sandbox 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.
Outcome and recommended method
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:sessionsprivilege. - 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
Pick the workflow and copy its
workflow_id. Didit uses the workflow type to decide whetherPOST /v3/session/creates a KYC session or a KYB session. There is no separate KYB endpoint.Create a session. Send the workflow UUID and your own stable identifier in
vendor_data. Thecallbackis 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 thesession_urlfor the hosted flow.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_eventsis 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.

Build the POST endpoint. Read the raw body first. Do not parse JSON before signature verification. Check that
X-Timestampis within 300 seconds of your clock, recompute the HMAC-SHA256 with the destination secret, and compare in constant time againstX-Signature-V2. If aX-Signature-V2-Previousheader is present, accept a match on either header so a secret rotation does not break delivery.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 byevent_id, because a retry can deliver the same event again.Test in the sandbox before live traffic. The sandbox is free and unlimited. The
activity.createdevent 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 asandbox_scenario, such as a decline scenario, so you can exercise the decision path without a real user.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_statusfirst.failingmeans three or more consecutive events failed their first delivery attempt.degradedmeans an attempt failed in the last 24 hours and no later attempt delivered that event.Reconcile with the decision endpoint. If a webhook is missed, dropped, or verified with
X-Signature-Simple, callGET /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 onuserorbusinessbefore reading feature arrays.
Signature headers and what each one covers
| Header | What it signs | When to use it |
|---|---|---|
X-Signature-V2 | Sorted, Unicode-preserved canonical JSON | Recommended default. It survives JSON re-encoding by middleware. |
X-Signature | The exact raw JSON bytes | Only 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-Timestamp | Unix epoch seconds when Didit dispatched the event | Reject 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.
| Event | What it tells you |
|---|---|
status.updated | A session or business session status changed. |
data.updated | Session or business session verification data was edited. |
user.status.updated and user.data.updated | A User entity moved to ACTIVE, FLAGGED or BLOCKED, or its profile data changed. |
business.status.updated and business.data.updated | A Business entity changed status or profile data. |
transaction.created and transaction.status.updated | A transaction was created with an initial verdict, or its status changed. |
travel_rule.status.updated | A Travel Rule exchange changed status. |
workflow.compliance_changed | A published workflow changed compliance status after re-evaluation. |
transaction_rule_suggestions.created | A rule suggestion run proposed new rule changes. |
activity.created | Reserved for the activity timeline. Currently sent only by Try Webhook tests. |
| Investigator events | The 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.
| Event | What it tells you |
|---|---|
investigator.report.ready | The Investigator wrote a report on an item. |
investigator.decision.automated | The Investigator decided an item on its own. |
investigator.decision.overridden | A person took another action than the one in the Investigator report, or overrode a decision it took on its own. |
investigator.decision.contested | The end user contested a decision and asked for a human review. |
investigator.question.raised | The Investigator asked the team a question about its policy. |
investigator.automation.paused | Automation stopped deciding, paused by a person or at the monthly spending limit. |
investigator.rfi.answered | The end user answered an information request. |
investigator.rfi.overdue | An information request passed its deadline unanswered. |
investigator.drift.detected | A queue drifted and automation stepped down a tier. |
investigator.sla.breached | A report waited past its queue's SLA without a decision. |
investigator.qa.failed | A decision a person took failed the Investigator quality review. |
investigator.external.report.ready | The 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.
| Status | What your application should do |
|---|---|
Not Started | The session exists and the user has not opened the link. Wait or send a reminder. |
In Progress | The user is completing steps. No decision yet. |
Approved | All checks passed. Store the decision and grant access according to your policy. |
Declined | One or more checks failed. Do not grant access. A reviewer can request a resubmission. |
In Review | Warnings need a human decision. Wait for a reviewer, or route the session to your own review queue. |
Awaiting User | KYB only. Key people have been submitted and child sessions are running. |
Resubmitted | The user was asked to redo specific steps. Wait for the next decision. |
Expired | The session timed out before the user opened the link. Create a new session if needed. |
Abandoned | The user started but did not finish in time. Follow up or create a new session. |
Kyc Expired | A previously approved document passed its expiry date. Re-verify if your policy requires it. |
Failure cases and recovery
| Case | What happens | Recovery |
|---|---|---|
| Your endpoint answers with HTTP 400 or higher, or does not answer because of a timeout, refused connection or blocked address | The 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 old | You should reject the request. | Check clock sync and retry the verification logic. Do not widen the window without a reason. |
| Signature does not match | The 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 rotated | Deliveries 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 twice | A retry can duplicate a delivery. | Store event_id and make the update idempotent. |
| Retries are exhausted | The event is dropped. | Reconcile with GET /v3/session/{session_id}/decision/ and update your record from the API. |
Inputs and outputs
| Direction | Field | Use |
|---|---|---|
| Input | workflow_id | Chooses the workflow and whether the session is KYC or KYB. |
| Input | vendor_data | Your stable user or business identifier, echoed in the payload. |
| Input | metadata | Arbitrary JSON you want back in the webhook. |
| Input | callback | Redirect URL after the hosted flow, with verificationSessionId and status appended. |
| Input | Destination URL and secret | Where Didit sends events and the key you use to verify them. |
| Input | subscribed_events | Exact event names, set per destination. There is no wildcard. |
| Output | event_id | Idempotency key for the delivery. |
| Output | session_id and status | The session that changed and its new exact status. |
| Output | webhook_type | The event family, such as status.updated. |
| Output | decision | Feature results when the status is Approved, Declined, In Review or Abandoned. |
| Output | business_session_id | KYB payloads only. |
Paid steps and review boundaries
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 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.

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
- Didit docs: Webhooks
- Didit docs: Verification statuses
- Didit docs: Create session
- Didit docs: Retrieve session decision
- Didit docs: List webhook destinations
- Didit docs: Data models
- Didit docs: Pricing
- Didit pricing page
- Didit integration prompt
- Didit MCP server
- Didit AML screening product page
- Didit business verification product page
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.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alejandro Rosas
Co-founder and CTO

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.
Your obligations · 3 regions
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.
- 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.
Didit Academy


