Identity Verification API Integration: Pricing, Webhooks, UI
How to integrate an identity verification API with Didit: API keys, workflow and session calls, webhook mapping, sandbox test data, error fixes, and per-check costs from $0.33.

Contents
In this guide
Jump to the part you need.
This guide is for engineering teams adding document and face verification to an app who want to know what the integration actually involves before they commit. Didit starts at $0.33 per completed full ID check, with a free sandbox and $10 of monthly credit on the Free plan. The caveat: billing is per completed check from prepaid credit, so the live application needs funded credit before the first real session.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
Integration at a glance
| Item | What it is | Published price or setting |
|---|---|---|
| Full ID check (KYC) | ID document verification, passive liveness, face match 1:1, device and IP analysis | $0.33 per completed check |
| ID Verification (standalone API) | POST /v3/id-verification/, document OCR plus fraud checks | $0.15 per check |
| Document AI | Separate document product with its own price-book line | $0.20 per document |
| Sandbox | Per-application test mode, providers mocked, never billed | Free and unlimited on every plan |
| Free plan | $10 of credit a month for organizations that sign up with a work email | $0.00 a month |
| Growth | $115 of credit a month, 4% off every price | $99 a month, or $1,128 a year |
| Scale | $350 of credit a month, 10% off every price | $299 a month, or $3,408 a year |
| Enterprise | Annual contract, commitment becomes credit | From $15,000 a year |
| MCP server | Hosted at https://mcp.didit.me/mcp, OAuth sign-in | Free |
| Webhook retries | Two retries after about 1 and 4 minutes, then dropped | Answer within 5 seconds |
| Decision shape | Versioned V3 payload with plural arrays | id_verifications[], liveness_checks[], face_matches[], aml_screenings[] |
Where this guide and older documentation disagree, the live price feed wins. The ID Verification line is $0.15 per check. The $0.20 line in the price book is Document AI, a separate document product, not the standalone ID Verification endpoint.
You can start free in the sandbox at business.didit.me with no sales call, and developers who want Didit inside an AI assistant can connect it through the MCP setup page. The endpoint reference is in the ID Verification API docs, and every unit price sits on didit.me/pricing.
What you are actually integrating
Didit is one open API across user verification, business verification, and transaction monitoring. For an identity verification integration you touch four objects: a workflow (the checks a session runs), a session (one person or business going through that workflow), the hosted flow or SDK that captures the document and the selfie, and the webhook or decision endpoint that returns the result. The workflow orchestrator, the SDKs, reusable KYC and the MCP server are free. You pay for checks that complete.
Three install routes

Route 1: MCP connector for AI assistants
Didit runs a hosted MCP server at https://mcp.didit.me/mcp with OAuth sign-in. You add it to an AI assistant that supports MCP connectors and sign in once; the MCP setup page documents the available assistant actions. The MCP setup page documents every client. Use this route to prototype a flow, to work inside an internal tool, or to let a coding agent draft the backend calls. Production traffic still comes from your own backend, through the API or the hosted flow.
Route 2: hosted flow or SDK embed
The session response returns a url. Redirect the browser there, or open it in an iframe, a WebView or the JavaScript SDK, and Didit renders the entire capture experience: document scanning, liveness, selfie, consent, and a completion screen. There is nothing to install on the device for the web path. Native SDK 4.0 adds modular variants (Core, AutoDetection, NFC, All) if you ship mobile apps. See the web SDK overview for the four web methods.
Route 3: the API recipe from your backend
Server to server, you create the workflow once, create a session per person, and receive the result by webhook or by pulling the decision. If you already have your own capture UI, the standalone POST /v3/id-verification/ endpoint takes a document image and returns OCR fields, the parsed MRZ, a status and a warnings list in one call.
Prerequisites
| Requirement | Why you need it | Where it comes from |
|---|---|---|
| Didit account and organization | Owns workflows, API keys, sessions and billing | business.didit.me |
| Plan and credit | Live checks are paid from prepaid credit; an organization created through the API starts at $0 | Pricing |
| API key | Authenticates every call through the x-api-key header | Console, or the two programmatic register calls |
| Separate sandbox and live keys | Sandbox tests never bill and never call real providers | The register response returns both keys |
| Workflow UUID | Defines which checks a session runs | POST https://verification.didit.me/v3/workflows/ |
| Webhook destination and signing secret | Signs every delivery with HMAC-SHA256 | POST /v3/webhook/destinations/ |
| HTTPS endpoint answering inside 5 seconds | Slow or failing handlers lose the delivery | Your application |
| Callback URLs on allowed domains | A callback outside them fails with 400 | allowed_domains on PATCH /v3/webhook/ |
Seven steps from zero to a decision
- Create the account, the organization and the API key. Sign up at business.didit.me and create an Organization, which is where the team manages workflows, keys and verification activity. To do it without the console, call the two programmatic auth endpoints and keep both keys:
POST https://apx.didit.me/auth/v2/programmatic/register/ POST https://apx.didit.me/auth/v2/programmatic/verify-email/ (6-character code from the email) # response.sandbox_application.api_key -> DIDIT_API_KEY (build and test free) # response.application.api_key -> DIDIT_LIVE_API_KEY (switch only to go live) - Create a workflow and persist
workflow.id.curl -X POST https://verification.didit.me/v3/workflows/ \ -H "x-api-key: $DIDIT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "workflow_label": "Standard KYC", "workflow_type": "kyc", "features": [ {"feature": "OCR"}, {"feature": "LIVENESS", "config": {"face_liveness_method": "PASSIVE"}}, {"feature": "FACE_MATCH"}, {"feature": "AML"} ] }' - Create a session and send the user to the returned URL.
The response containscurl -X POST https://verification.didit.me/v3/session/ \ -H "x-api-key: $DIDIT_API_KEY" \ -H "Content-Type: application/json" \ -d '{"workflow_id": "'"$WORKFLOW_ID"'", "vendor_data": "user-42", "callback": "https://myapp.com/kyc/return"}'session_id,urlandsession_token.vendor_datais your stable identifier for the person and is used for duplicate detection across sessions. The workflow type decides whether a KYC or KYB session is created; there is no separate KYB endpoint. - Render the hosted flow. Redirect the browser to
url, or open it in the SDK or an iframe. When the person finishes, Didit appends?verificationSessionId={session_id}&status={status}to your callback. Optional session fields worth setting up front:language(ISO 639-1),expected_detailsso mismatches surface as warnings,contact_detailsto pre-fill the phone and email steps,metadatafor your own correlation data, andsession_expiration_timebetween 3600 and 2419200 seconds. - Register the webhook destination and save the secret.
curl -X POST https://verification.didit.me/v3/webhook/destinations/ \ -H "x-api-key: $DIDIT_API_KEY" \ -H "Content-Type: application/json" \ -d '{"label": "Production", "url": "https://myapp.com/api/webhooks/didit", "subscribed_events": ["status.updated","data.updated","user.status.updated","user.data.updated"], "webhook_version": "v3"}'labelandurlare required. Save the returnedsecret_shared_keyasDIDIT_WEBHOOK_SECRET;GET /v3/webhook/destinations/{destination_uuid}/returns it again. There is no wildcard, so list every event family you want. - Verify the signature and act on the status. Read the raw body before parsing JSON, check that
X-Timestampis within 300 seconds, recompute the HMAC-SHA256 over the sorted canonical JSON fromX-Signature-V2, and compare with a constant-time function against that header and its-Previousvariant when present. De-duplicate onevent_id, update state idempotently, and answer 2xx within 5 seconds. Status strings are exact and case sensitive:Approved,Declined,In Review,In Progress,Not Started,Abandoned,Expired,Kyc Expired,Resubmitted,Awaiting User. - Keep a pull fallback.
GET https://verification.didit.me/v3/session/{session_id}/decision/returns the same decision as the webhook payload. V3 returns plural arrays such asid_verifications[]andface_matches[], so never assume the singular V2 fields.
UI capture guidance

The default is to let Didit render capture and put your effort into the surrounding product. If you build your own capture or send images to the standalone API, follow the same rules the hosted flow uses.
- Send uncropped images with all four corners of the document visible, and do not pre-crop them. The service detects, aligns and crops the document itself.
- Do not ask users to declare a country or document type. Classification is automatic, and the same endpoint handles passports, ID cards, residence permits and driving licences across 14,000+ document types from 220+ countries and territories.
- For two-sided documents send
back_imageas well, and keepperform_document_livenesson if you want screen replay, printed copy and portrait manipulation screening. - Set
languagefrom the user's locale: the flow and the native SDKs cover 54 capture and UI languages. - Pass
user_statewhen you know it. In Auto consent mode, Illinois, Texas and Colorado trigger an explicit biometric consent step before the first face capture, and passingbiometric_consentrecords consent you already collected. - Custom domains are live only. A sandbox application always runs on the default hosted verification domain.

Webhook event and decision field mapping
| Event type | Fires when | What your handler stores |
|---|---|---|
status.updated | A session or business session status changed | The session status, and the decision when the status is Approved, Declined, In Review or Abandoned |
data.updated | Verification data was edited | Re-read the decision arrays for that session |
user.status.updated | A User entity moved to ACTIVE, FLAGGED or BLOCKED | Your account state for that person |
user.data.updated | A User profile or aggregate changed | The refreshed profile fields |
business.status.updated | A Business entity status changed | Business account state; payloads carry business_session_id and session_kind: "business" |
transaction.created | A transaction is created with its initial verdict | The monitoring verdict, if you also run Transaction Monitoring |
| Field | Contents | Where to inspect it |
|---|---|---|
id_verifications[] | Extracted holder fields, parsed MRZ, document status, warnings list | Session detail, ID document |
liveness_checks[] | Passive or active liveness result and method | Session detail, liveness |
face_matches[] | 1:1 comparison of the selfie against the document portrait | Session detail |
aml_screenings[] | AML, sanctions and PEP screening results across 1,300+ lists | AML screening result |
nfc_verifications[] | Passport chip reading, a $0.15 add-on when your workflow includes it | Session detail |
poa_verifications[] | Proof of address result | Session detail, proof of address |
phone_verifications[], email_verifications[] | Contact verification results | Session detail |
ip_analyses[] | Device and IP risk signals | Session detail |
database_validations[] | Government database lookups | Session detail |
The envelope also carries vendor_data, metadata, workflow_id, workflow_version, environment, and on sandbox sessions an armed sandbox_scenario slug.

Testing with sandbox data
A sandbox application is a mode, not a separate product. Every external provider is mocked, outcomes come from a scenario rather than the pixels, custom domains are unavailable, and sessions are never billed. Sandbox testing is free and unlimited on every plan.
- List the scenarios with
GET /v1/sandbox/scenarios/, sending your API key inx-api-key. - Reproduce an outcome at create time by passing
sandbox_scenarioonPOST /v3/session/. It expands the scenario's magic values ontocontact_detailsandexpected_details, and is rejected with 400 on a live application. - Arm or re-arm a scenario after creation with
POST /v3/session/{session_id}/sandbox/arm/, while the session is still Not Started. - Confirm your handler reads
"environment": "sandbox"and does not treat test traffic as production.
Expected success. A full KYC session with a scenario that passes returns status Approved, id_verifications[] with extracted fields and an empty or informational warnings list, a liveness result, and a face match entry. Your handler answers 2xx, the delivery logs once, and the console session shows the same data.
| Symptom | Cause | Fix |
|---|---|---|
403 {"detail": "You do not have permission to perform this action."} | Calling verification.didit.me with no API key | Send the x-api-key header on every call |
| 401 | Wrong, revoked or expired key | Copy the key again from the organization; rotate if it leaked |
| 403 on apx.didit.me | JWT problem on the auth service | Re-run the register and verify-email calls |
| 400 on session create | Invalid workflow_id | Persist the UUID returned by the workflow call, not the label |
400 callback must be on one of the application's allowed domains | Callback origin not in allowed_domains | Add the origin, or use a custom URL scheme for app deep links |
400 on session_expiration_time | Value outside 3600 to 2419200, or not a whole number | Clamp the value in your code |
400 with portrait_image message | Biometric Authentication session with no stored face and no reference image | Send a base64 portrait under 2MB, or reuse the stored face |
| 403 not enough credits on the standalone API | Balance cannot cover the call | Top up, or test on a sandbox application |
400 COULD_NOT_RECOGNIZE_DOCUMENT | The document could not be processed at all | Resend an uncropped photo with all four corners visible |
| Webhook delivered twice, then dropped | Handler slower than 5 seconds, or answering 5xx or 404 | Answer 2xx fast, process after, resend from the destination's delivery log |
Disconnecting. Revoke the API key in the organization so further calls answer 401, remove the webhook destination, and rotate its signing secret in the Business Console. Rotation keeps the previous secret valid for 24 hours, so deliveries keep verifying while you deploy the new one; after those 24 hours the old secret is no longer accepted. Then delete the redirect or SDK embed from your app. An abandoned sandbox costs nothing and keeps working, so you can keep a test application around after the live cutover.
What the integration costs on both ends
You pay for a check only when it finishes with a result.
Three separate things make up the bill. The plan fee is $0.00 on Free, $99 a month on Growth, $299 a month on Scale, or a custom annual contract from $15,000 a year on Enterprise. The monthly plan credit is $10 on Free, $115 on Growth and $350 on Scale, and it expires at the end of the plan month. Top-ups are separate money: $50 to $20,000 at face value, spendable on any product, lasting 12 months. Each check draws on this month's credit first, then on your oldest top-up.
On Didit's side the only per-unit cost is the published price of each completed check, and those prices come from the live feed rather than older documentation. Billing follows the published rule: you pay per completed check from prepaid credit. On your side, the cost is engineering attention in three places: rendering the hosted flow, the webhook handler, and mapping the decision arrays into your own account state. The workflow orchestrator, the SDKs and the MCP server are listed as free on the published price feed; completed checks remain billable.
Worked example, 10,000 full ID checks in one month. No mix of other checks, so the arithmetic is only multiplication and subtraction of published prices.
- Free plan: 10,000 x $0.33 = $3,300.00. Plan fee $0.00. Credit $10.00. Cash out: $3,300.00 - $10.00 = $3,290.00 in top-ups.
- Growth: unit price $0.33 with 4% off is $0.3168. 10,000 x $0.3168 = $3,168.00. Credit $115.00, plan fee $99.00. Cash out: $3,168.00 - $115.00 + $99.00 = $3,152.00.
- Scale: unit price $0.33 with 10% off is $0.297. 10,000 x $0.297 = $2,970.00. Credit $350.00, plan fee $299.00. Cash out: $2,970.00 - $350.00 + $299.00 = $2,919.00.
Worked example with AML. Adding AML screening at $0.20 to the same session gives $0.33 + $0.20 = $0.53 per user. For 2,500 users: 2,500 x $0.53 = $1,325.00 at list price.
The Free plan's $10 of credit covers about 30 full ID checks ($10.00 / $0.33). Credit does not roll over, while a top-up lasts 12 months.
Sources
- Didit docs: Quick Start
- Didit docs: Create Session API
- Didit docs: Webhooks, HMAC signing and event types
- Didit docs: Sandbox test data, scenarios and magic values
- Didit docs: Pricing and billing rules
- Didit docs: ID Verification API
- Didit docs: Web SDKs (JS, iframe, redirect, WebView)
- Didit docs: canonical integration prompt
- Didit pricing page and pricing as JSON, read November 26, 2026
- Didit MCP server setup and integration prompt
- No third-party vendor pages were used for this guide. Provider comparisons here are evaluation criteria, not claims about other vendors, because no competitor page was verified for this edition.
Start with a sandbox application at business.didit.me: sign up, create a workflow, and run your first session against a scenario. There is no sales call and the sandbox does not bill.
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
Alberto Rosas
Co-founder and CEO

Questions
Frequently asked questions
How long does an identity verification API integration take?
Didit's documented quick start is five moves: create the account and organization, build a workflow from a template, register a webhook destination, copy the API key, then create a session with one call to POST /v3/session/ and redirect the user to the returned url. That path uses the hosted flow, so there is no camera or document capture UI to build, and the documented quick start covers the initial integration path. Custom capture work is the part that adds real time: if you replace the hosted flow with your own camera experience, you own framing, liveness UX, consent and retries yourself.
What does an identity verification API cost in 2026?
Didit lists a full ID check at $0.33, made of ID document verification at $0.15, passive liveness at $0.10, face match at $0.05, and device and IP analysis at $0.03. The standalone ID Verification API call is $0.15 per check, and the $0.20 line in the price book is Document AI, a different product. Growth takes 4% off every price and Scale takes 10%, and the live price feed overrides any older documentation value.
Is there a free sandbox or free tier for identity verification APIs?
Yes. The sandbox is free on every plan and sandbox testing is unlimited, so test sessions are never billed and never call a real provider. The Free plan adds $10 of credit a month for organizations that sign up with a work email, which buys about 30 full ID checks at $0.33 in the live application.
How should I evaluate an IDV provider before integrating?
Read the provider's own documentation and check five things: are per-check prices published, can the sandbox reproduce a decline on demand, are webhooks signed and retried, is the decision payload versioned, and are coverage claims specific. Didit publishes 220+ countries and territories and 14,000+ document types, and holds SOC 2 Type 2 and ISO/IEC 27001:2022. Ask for the report under NDA before your security review, not after.
What do Didit webhooks send and how do I verify them?
Each delivery is a JSON envelope with event_id, session_id, status, webhook_type, vendor_data and, on Approved, Declined, In Review or Abandoned, a decision object. Verify X-Signature-V2, an HMAC-SHA256 over the sorted canonical JSON using your destination secret, and reject timestamps older than 300 seconds. De-duplicate on event_id and answer within 5 seconds.
Why does my webhook get retried or dropped?
Didit retries twice, after about 1 and 4 minutes, when your endpoint answers 5xx or 404 or takes longer than 5 seconds, then drops the delivery. Resend it from the destination's delivery log. If the handler is slow because it does work inline, answer 2xx first and update state idempotently afterwards.
Can one API verify an account holder and their passport?
Yes. A session with the OCR feature reads a passport or any of 14,000+ document types, returning the extracted holder fields, the parsed MRZ, a status and a warnings list. Pass expected_details with first name, last name and nationality, and any mismatch surfaces as a decision warning rather than a silent pass.
How do I test a declined verification without real documents?
Create the session on a sandbox application with a sandbox_scenario slug from GET /v1/sandbox/scenarios/, or arm one on a session that has not started with POST /v3/session/{session_id}/sandbox/arm/. Outcomes come from the scenario, not from the image, and nothing is billed. Sandbox webhooks carry "environment": "sandbox" so your handler can tell them from live traffic.
Does the Didit API work with AI assistants through MCP?
Yes, through the hosted MCP server at https://mcp.didit.me/mcp, which signs in with OAuth and is free on every plan. You add it to an AI assistant that supports MCP connectors and the MCP setup page documents every client. The MCP route is for prototyping a flow and for driving Didit from an assistant before you write the backend calls yourself.
Should I build my own capture UI or use the hosted flow?
Use the hosted flow unless you have a strong reason not to. It handles document framing and cropping, liveness, consent, 54 languages and the completion screen. If you already own the camera experience, send uncropped images with all four corners visible and do not pre-crop them, then keep document liveness on.
What is the difference between the webhook and the decision endpoint?
The webhook pushes a status change to you in real time, and GET /v3/session/{session_id}/decision/ pulls the same decision when you need it. Use the webhook as the trigger and the endpoint as the fallback after a dropped delivery or when you verify with the deprecated simple signature. V3 returns plural arrays such as id_verifications[] and face_matches[], never singular V2 fields.
How do I disconnect or cancel the integration?
Revoke the API key so further calls answer 401, remove the webhook destination, and rotate its signing secret in the Business Console. The previous secret stays valid for 24 hours after rotation, so your deploy does not drop deliveries, and after that window the old secret is refused. Then remove the hosted flow redirect or SDK embed from your app. Nothing bills while no sessions complete, and the sandbox keeps working at no cost.
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

