Skip to main content

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.

Identity Verification API Integration: Pricing, Webhooks, UI

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

Didit identity verification integration facts, read from the live price feed on November 26, 2026
ItemWhat it isPublished 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 AISeparate document product with its own price-book line$0.20 per document
SandboxPer-application test mode, providers mocked, never billedFree 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
EnterpriseAnnual contract, commitment becomes creditFrom $15,000 a year
MCP serverHosted at https://mcp.didit.me/mcp, OAuth sign-inFree
Webhook retriesTwo retries after about 1 and 4 minutes, then droppedAnswer within 5 seconds
Decision shapeVersioned V3 payload with plural arraysid_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

Academy lesson cover for using Didit with MCP inside an AI assistant
The MCP route: the Didit connector inside an AI assistant, no backend code to start.

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

What you need before the first live session
RequirementWhy you need itWhere it comes from
Didit account and organizationOwns workflows, API keys, sessions and billingbusiness.didit.me
Plan and creditLive checks are paid from prepaid credit; an organization created through the API starts at $0Pricing
API keyAuthenticates every call through the x-api-key headerConsole, or the two programmatic register calls
Separate sandbox and live keysSandbox tests never bill and never call real providersThe register response returns both keys
Workflow UUIDDefines which checks a session runsPOST https://verification.didit.me/v3/workflows/
Webhook destination and signing secretSigns every delivery with HMAC-SHA256POST /v3/webhook/destinations/
HTTPS endpoint answering inside 5 secondsSlow or failing handlers lose the deliveryYour application
Callback URLs on allowed domainsA callback outside them fails with 400allowed_domains on PATCH /v3/webhook/

Seven steps from zero to a decision

  1. 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)
  2. 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"}
        ]
      }'
  3. Create a session and send the user to the returned URL.
    curl -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"}'
    The response contains session_id, url and session_token. vendor_data is 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.
  4. 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_details so mismatches surface as warnings, contact_details to pre-fill the phone and email steps, metadata for your own correlation data, and session_expiration_time between 3600 and 2419200 seconds.
  5. 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"}'
    label and url are required. Save the returned secret_shared_key as DIDIT_WEBHOOK_SECRET; GET /v3/webhook/destinations/{destination_uuid}/ returns it again. There is no wildcard, so list every event family you want.
  6. Verify the signature and act on the status. Read the raw body before parsing JSON, check that X-Timestamp is within 300 seconds, recompute the HMAC-SHA256 over the sorted canonical JSON from X-Signature-V2, and compare with a constant-time function against that header and its -Previous variant when present. De-duplicate on event_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.
  7. 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 as id_verifications[] and face_matches[], so never assume the singular V2 fields.

UI capture guidance

Document scanning screen in the Didit verification flow, framing an identity document inside the capture guide
The hosted flow frames, detects and crops the document itself, so users do not need to line it up perfectly.

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_image as well, and keep perform_document_liveness on if you want screen replay, printed copy and portrait manipulation screening.
  • Set language from the user's locale: the flow and the native SDKs cover 54 capture and UI languages.
  • Pass user_state when you know it. In Auto consent mode, Illinois, Texas and Colorado trigger an explicit biometric consent step before the first face capture, and passing biometric_consent records consent you already collected.
  • Custom domains are live only. A sandbox application always runs on the default hosted verification domain.
Academy walkthrough cover showing the full end-user KYC verification experience
What the user sees end to end: document, liveness, selfie, and the completion screen.

Webhook event and decision field mapping

Event types to subscribe to and what your handler should do with each
Event typeFires whenWhat your handler stores
status.updatedA session or business session status changedThe session status, and the decision when the status is Approved, Declined, In Review or Abandoned
data.updatedVerification data was editedRe-read the decision arrays for that session
user.status.updatedA User entity moved to ACTIVE, FLAGGED or BLOCKEDYour account state for that person
user.data.updatedA User profile or aggregate changedThe refreshed profile fields
business.status.updatedA Business entity status changedBusiness account state; payloads carry business_session_id and session_kind: "business"
transaction.createdA transaction is created with its initial verdictThe monitoring verdict, if you also run Transaction Monitoring
Decision arrays returned in V3 and what each one carries
FieldContentsWhere to inspect it
id_verifications[]Extracted holder fields, parsed MRZ, document status, warnings listSession detail, ID document
liveness_checks[]Passive or active liveness result and methodSession detail, liveness
face_matches[]1:1 comparison of the selfie against the document portraitSession detail
aml_screenings[]AML, sanctions and PEP screening results across 1,300+ listsAML screening result
nfc_verifications[]Passport chip reading, a $0.15 add-on when your workflow includes itSession detail
poa_verifications[]Proof of address resultSession detail, proof of address
phone_verifications[], email_verifications[]Contact verification resultsSession detail
ip_analyses[]Device and IP risk signalsSession detail
database_validations[]Government database lookupsSession detail

The envelope also carries vendor_data, metadata, workflow_id, workflow_version, environment, and on sandbox sessions an armed sandbox_scenario slug.

Didit Business Console session detail showing the ID document check result with extracted fields
The same decision data in the Business Console: document fields, status and warnings for one session.

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 in x-api-key.
  • Reproduce an outcome at create time by passing sandbox_scenario on POST /v3/session/. It expands the scenario's magic values onto contact_details and expected_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.

Error cases you will hit in the first week, and the fix
SymptomCauseFix
403 {"detail": "You do not have permission to perform this action."}Calling verification.didit.me with no API keySend the x-api-key header on every call
401Wrong, revoked or expired keyCopy the key again from the organization; rotate if it leaked
403 on apx.didit.meJWT problem on the auth serviceRe-run the register and verify-email calls
400 on session createInvalid workflow_idPersist the UUID returned by the workflow call, not the label
400 callback must be on one of the application's allowed domainsCallback origin not in allowed_domainsAdd the origin, or use a custom URL scheme for app deep links
400 on session_expiration_timeValue outside 3600 to 2419200, or not a whole numberClamp the value in your code
400 with portrait_image messageBiometric Authentication session with no stored face and no reference imageSend a base64 portrait under 2MB, or reuse the stored face
403 not enough credits on the standalone APIBalance cannot cover the callTop up, or test on a sandbox application
400 COULD_NOT_RECOGNIZE_DOCUMENTThe document could not be processed at allResend an uncropped photo with all four corners visible
Webhook delivered twice, then droppedHandler slower than 5 seconds, or answering 5xx or 404Answer 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

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.

ID Verification

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

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

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.

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.