Skip to main content

AI-Powered Identity Verification: Build It With One API in 2026

Didit's AI-powered identity verification API is one session call: create a workflow, redirect the user, read the decision by webhook. Full KYC costs $0.33 per completed check and the sandbox is free and unlimited.

AI-Powered Identity Verification: Build It With One API in 2026

Contents

In this guide

Jump to the part you need.

This guide is for product and engineering teams that want to add AI-powered identity verification to an app through an API rather than buy a managed service. On Didit a completed full KYC check costs $0.33 at list price: ID document $0.15, passive liveness $0.10, face match $0.05, device and IP analysis $0.03. A published price does not establish production availability, so confirm the document types and countries you need before you commit.

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

AI-powered identity verification on Didit at a glance
ItemWhat you get
What you buildOne API call creates a session, the hosted flow captures the evidence, a webhook delivers the decision
Entry pointPOST https://verification.didit.me/v3/session/
Full KYC price$0.33 per completed check: ID document $0.15, passive liveness $0.10, face match $0.05, device and IP analysis $0.03
AML screening$0.20 per check against 1,300+ lists; ongoing monitoring $0.07 per person a year
Free tier$10 of credit a month for organizations that sign up with a work email
SandboxThe sandbox is free and unlimited on every plan
Standalone APIA separate server-to-server document call, priced on its own lines in the public price book
Coverage14,000+ document types, 220+ countries, 54 languages in the verification flow
SpeedSub-2-second p99 inference
Customers4,000+ companies
CertificationsSOC 2 Type 2 and ISO/IEC 27001:2022

Start free in the sandbox at business.didit.me, with no sales call. The product documentation is at ID Verification, and plan prices and the cost estimator are on the pricing page. If you drive your stack from an AI assistant, connect Didit through the MCP server.

What you ship when you build with the API

You ship a decision, not a dashboard. The user photographs a document and takes a selfie inside a hosted flow, and your backend receives Approved, Declined or In Review with the evidence attached: extracted document fields, the liveness result, the face match result and every warning the checks raised. You do not build capture, OCR, liveness or watchlist matching yourself.

We have 4,000+ active customers, and our verification coverage spans 220+ countries. The five steps below are the same ones in our quick start, in the order a team actually ships them.

What the AI does inside a verification session

  • Capture. Auto-detection of document type and issuing country, real-time cues for position and lighting, and automatic capture when conditions are right.
  • Document authenticity. Tampering and forgery signals, including document liveness. A failure returns a warning such as DOCUMENT_LIVENESS_FAILED.
  • Extraction and cross-check. OCR, MRZ parsing and barcode decoding, then the fields are compared across the visual zones, the MRZ and the barcode. Mismatches surface as INVALID_MRZ or INCONSISTENT_DATA.
  • Biometrics. Passive liveness at $0.10 or active liveness at $0.15, then a 1:1 face match against the document portrait at $0.05.
  • Watchlists. AML screening at $0.20 against 1,300+ lists, with ongoing monitoring at $0.07 per person a year.
  • Device and network. Device and IP analysis at $0.03 plus 200+ fraud signals per session.

Each of those checks writes its own result into the decision: id_verifications[] carries the document verdict and its warnings, liveness_checks[] the liveness result, face_matches[] the 1:1 comparison and aml_screenings[] the watchlist hits. The session status is the roll-up of those results, and decision_trace records how it was reached. Your code decides what to do with the answer.

Where the AI hands over to a person

Sessions routed to In Review require manual review and are not auto-approved. Such a session can sit in the queue with an assignee and an sla_due_at, and a person closes it. The decision records how the status was reached in decision_trace, with decided_by set to manual, automatic or investigator. If a reviewer edits the status by hand, status_override keeps the automatic result next to the new one.

Prerequisites

  • A Didit organization. Sign up at business.didit.me with a work email and the Free plan includes $10 of credit a month.
  • An API key. The sandbox is free and unlimited, so you can build and test without spending credit.
  • A workflow. POST /v3/session/ requires a workflow_id, and the workflow type decides whether you get a user (KYC) or business (KYB) session.
  • An HTTPS endpoint for webhooks that can verify X-Signature-V2 and answer within 5 seconds.
  • Allowed domains registered if you pass a callback URL. An http or https callback outside them fails with a 400.

How to add AI-powered identity verification in 5 steps

  1. Create the organization and copy the sandbox key. Open business.didit.me, sign up with SSO or email and password, and create your organization. Copy the sandbox application API key into DIDIT_API_KEY. The sandbox is free and unlimited on every plan, so the first end-to-end run costs nothing. Switch to the live key only when you are ready for paid checks.

  2. Create a workflow. The workflow lists the checks a session runs. POST /v3/workflows/ returns the workflow.id you persist as 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"}
      ]
    }'

    Those features map to the line items in billing: ID document $0.15, passive liveness $0.10, face match $0.05, AML $0.20, with device and IP analysis at $0.03 in the full KYC check.

  3. Create a session. One call returns the session_id, the hosted url and a session_token. vendor_data is your own identifier for the person, and it binds later sessions to the same user.

    curl -X POST https://verification.didit.me/v3/session/ \
    -H "x-api-key: $DIDIT_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"workflow_id": "YOUR_WORKFLOW_ID", "vendor_data": "user-42", "callback": "https://myapp.com/kyc/return"}'
  4. Send the user to the flow. Redirect the browser to url, or open it in the SDK or an iframe. Set language to an ISO 639-1 code to override browser detection, and session_expiration_time between 3600 and 2419200 seconds if the link must expire sooner or later than the workflow default. The callback is where the user lands when the flow finishes, with ?verificationSessionId={session_id}&status={status} appended.

    A user walking through a Didit KYC flow: document capture, selfie and result screen
    What the user sees in the hosted flow: document capture, liveness, then the result. Your code never renders these screens.
  5. Read the decision. Register a webhook destination and subscribe to status.updated, data.updated, user.status.updated and user.data.updated with webhook_version set to v3. Verify the X-Signature-V2 header, de-duplicate on event_id and answer within 5 seconds. If a delivery never arrives, fetch the same decision directly.

    curl https://verification.didit.me/v3/session/SESSION_ID/decision/ \
    -H "x-api-key: $DIDIT_API_KEY"

    Branch on session_kind, because the same endpoint resolves both user and business sessions:

    const decision = await (await fetch(url, { headers: { "x-api-key": API_KEY } })).json();
    switch (decision.session_kind) {
      case "user": return handleUserDecision(decision);
      case "business": return handleBusinessDecision(decision);
    }

Expected output: statuses and what to do with each

V3 statuses are exact, case-sensitive strings: Approved, Declined, In Review, In Progress, Not Started, Expired, Abandoned, Kyc Expired, Resubmitted and Awaiting User.

What each status means for your application
StatusMeaningWhat your code should do
ApprovedThe configured checks passedGrant access and store the decision, including decision_trace
DeclinedA terminal warning fired, for example DOCUMENT_EXPIREDShow the first warning text, stop the flow, offer an appeal or review path
In ReviewA person must decideQueue it, notify your review team, never auto-approve
In Progress, Not Started, Awaiting UserThe user has not finishedWait for the status.updated webhook, then re-read the decision
Expired, Abandoned, Kyc ExpiredThe session ended without an approvalThese statuses generally mean you need a new session, so run one when the user returns

Feature results arrive as plural arrays, one item per step that ran: id_verifications[], liveness_checks[], face_matches[], aml_screenings[], poa_verifications[], phone_verifications[], email_verifications[], ip_analyses[] and database_validations[]. If a feature did not run, the field is absent or null, never a placeholder. Read biometric_retention.deletes_at if you store decisions, so your retention policy matches ours.

Didit Business Console showing the ID document result inside a session
The document check inside a session in the Didit Business Console: the same evidence your API receives in id_verifications[].

Inputs and outputs

Inputs to POST /v3/session/
FieldRequiredWhat it does
workflow_idYesWorkflow UUID from /v3/workflows/; its type creates a user or business session
vendor_dataNoYour stable identifier for the person or business, used for duplicate detection
callbackNoWhere the hosted flow redirects when finished; must sit on an allowed domain
languageNoISO 639-1 code for the verification UI
metadata and tagsNoYour own JSON and up to 10 tags, echoed back in responses and webhooks
expected_detailsNoExpected name, date of birth, nationality or document types; mismatches become decision warnings
session_expiration_timeNoLink lifetime in seconds, 3600 to 2419200
What the decision returns
OutputContent
session_id, session_kind, statusIdentity of the session, whether it is user or business, and the outcome
id_verifications[] and the other feature arraysPer-feature results, each with its own status and warning list
decision_traceHow the status was reached: decided_by, status_warnings, terminal_node_id
reviews and status_overrideManual review activity and any hand edit of the automatic status
biometric_retentionThe date the session's live biometric data is deleted
session_url, expires_atThe hosted link and its expiry

Session verification or the standalone ID Verification API

We document two ways to run a document check, and they answer different questions. Session-based verification is the default for anything a person walks through: the check is a feature on a workflow, the user completes the hosted flow, and the result arrives in the session decision under id_verifications[] alongside the session status, the warnings, decision_trace and the retention record.

The standalone route is a server-to-server call for when you already hold one or two document images and want a one-shot OCR and checks call. Post them to POST https://verification.didit.me/v3/id-verification/ as multipart form data with front_image required and back_image for dual-sided documents. Allowed files are tiff, jpg, jpeg, png, webp and pdf, up to 5 MB each, uncropped with all four corners visible. The response returns request_id and one id_verification object with the extracted fields and its own warnings[].

curl -X POST 'https://verification.didit.me/v3/id-verification/' \
-H 'x-api-key: YOUR_API_KEY' \
-F 'front_image=@./id_front.jpg' \
-F 'back_image=@./id_back.jpg' \
-F 'perform_document_liveness=true' \
-F 'vendor_data=user-123'

What the standalone call does not include is the surrounding flow. The docs describe it as a one-shot OCR and checks call on images you already have, so the hosted capture screens, the selfie, the face match and the session that ties the check to a workflow all come from the session route instead. Our recommendation is to use the standalone call for a back-office re-check of files you already hold, and a session when a person is in front of you. That is our reading of the documented purpose of each route, not a documented workflow.

The ID document step inside a workflow is $0.15. The standalone lines are listed on their own lines in the public price book at https://verification.didit.me/v3/organization/price-book/, and this guide budgets per user from session prices because that is what a user-facing flow spends.

Failure cases and how to recover

Common failures and the fix
What you seeCauseRecovery
401 on verification.didit.meInvalid API keyRe-copy the key for the right application and environment
403 with a permission messageKey missing a privilege, for example read:sessions on the decision callUse a key that holds the privilege, or request it
400 on session createUnknown workflow_idConfirm the workflow belongs to the same application
400 on callbackCallback outside the allowed domainsRegister the domain, or use a custom app scheme
403 about creditsNo balance for live checksTop up, or keep testing in the sandbox
Webhook missingHandler slower than 5 seconds, or it returned 5xx or 404We retry twice, about 1 and 4 minutes later, then drop the delivery; resend from the delivery log and call the decision endpoint as a fallback
In Review with DOCUMENT_LIVENESS_NOT_COMPUTEDThe forgery check produced no usable scoreTreat the document as unchecked and route it to manual review
404 on the decision callSession does not exist or belongs to another applicationCheck the session_id and the key

Billing is per completed check from prepaid credit, not per API call. Plan credit is a monthly allowance that is spent first; top-ups are separate money you add, and they last 12 months.

  • Full KYC check: $0.33 (ID document $0.15, passive liveness $0.10, face match $0.05, device and IP analysis $0.03).
  • Compliance check: $0.53, adding AML screening at $0.20.
  • Optional steps: active liveness $0.15, NFC chip reading $0.15, proof of address $0.20, custom questionnaires $0.10, white label $0.10, ongoing AML monitoring $0.07 per person a year.
  • Database validation and non-document lookups are priced per country and are variable.

Standalone server-to-server calls are a separate set of lines in the public price book, so budget them from the price book rather than from the session prices above.

Review is the boundary. Automatic decisions stop at the status the workflow rules produce, and anything routed to a person waits in the queue with an owner and a clock. That includes a forgery check with no score: the session stays in In Review rather than being treated as clean, and your code should do the same.

Session overview in the Didit Business Console with its warnings
A session overview with its warnings. This is the same object a reviewer opens when a session lands in In Review.

Worked cost example

Say you verify 10,000 users in a month and every session runs the full KYC check plus AML screening. At list price the KYC part is 10,000 x $0.33 = $3,300.00 and AML is 10,000 x $0.20 = $2,000.00, so usage is $5,300.00. That matches the $0.53 compliance bundle: 10,000 x $0.53 = $5,300.00.

Add proof of address for the 3,000 users whose address you must document: 3,000 x $0.20 = $600.00, taking usage to $5,900.00.

On Growth every Didit price is 4% lower: full KYC 10,000 x $0.3168 = $3,168.00, AML 10,000 x $0.192 = $1,920.00, proof of address 3,000 x $0.192 = $576.00, so usage is $5,664.00. The $115.00 of monthly credit pays the first $115.00 of that usage, leaving $5,549.00 from top-up balance, and the plan itself costs $99.00 a month.

On Scale every price is 10% lower: 10,000 x $0.297 = $2,970.00, 10,000 x $0.18 = $1,800.00 and 3,000 x $0.18 = $540.00, so usage is $5,310.00. The $350.00 of monthly credit leaves $4,960.00 from top-up balance, before the $299.00 monthly plan fee.

How to judge AI identity verification software in 2026

  • Coverage you can test yourself: document types and countries, not a headline number.
  • Price per completed check, and which calls are billable.
  • A warning catalogue, so you route specific failures instead of one generic decline.
  • A documented review queue with an owner, an SLA and an override trail.
  • Retention: when live biometric data is deleted, readable in the decision as biometric_retention.deletes_at.
  • A sandbox you can break on purpose: the sandbox is free and unlimited on every plan.
  • Certifications you can audit: SOC 2 Type 2 and ISO/IEC 27001:2022 at Didit.

Sources

The next step is a sandbox, not a call. Create an organization at business.didit.me, copy the sandbox key and run your first session today. If you want to compare plans first, the numbers are on the pricing page.

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

What is AI-powered identity verification?

AI-powered identity verification is a check that decides whether a document and the person presenting it are genuine without a person doing the first review. The software reads the document, tests it for tampering, compares a live selfie to the portrait, screens the name against watchlists and returns a status. On Didit that sequence is one session created by one API call, priced at $0.33 for a full KYC check.

How does AI identity verification work during a session?

The user opens a session link, captures the document and takes a selfie, and the flow runs authenticity, extraction, liveness, face match and any AML screening the workflow configures. Each step writes its own array in the decision, such as id_verifications[] or liveness_checks[], so you can see exactly which check passed or failed. You receive the result by webhook or by calling GET /v3/session/{session_id}/decision/.

How much does an API identity verification call cost?

A full KYC check on Didit is $0.33: ID document $0.15, passive liveness $0.10, face match $0.05 and device and IP analysis $0.03. AML screening adds $0.20, so a compliance check is $0.53. Billing is per completed check from prepaid credit, and standalone server-to-server API lines are priced separately on their own lines in the public price book.

Can I test AI-powered identity verification for free?

Yes. The sandbox is free and unlimited on every Didit plan, so you can run as many test sessions as you need before going live. Organizations that sign up with a work email also get $10 of credit a month on the Free plan, which is about 30 full KYC checks at $0.33 each. You only spend money when you switch to the live key and complete real checks.

What happens when the AI is not confident?

Sessions routed to In Review require manual review and are not auto-approved, so they enter the review queue with an assignee and an SLA clock. The decision records how the status was reached in decision_trace. If a reviewer changes the outcome by hand, status_override stores the automatic result alongside it.

What document fraud checks does the API run on the ID document?

We run document liveness checks that flag screen replay, printed copies and portrait replacement, and the selfie side adds passive or active liveness. Failures come back as warnings such as DOCUMENT_LIVENESS_FAILED or as a declined status. If a forgery check cannot produce a score, the API warns with DOCUMENT_LIVENESS_NOT_COMPUTED and you should treat the document as unchecked.

Should I use a session or the standalone ID verification API?

Use a session when a person captures the document themselves, because the hosted flow, the selfie, the face match and the session status all come with it. Use the standalone call when you already hold one or two document images and only need the OCR and document checks on those files. The ID document step in a workflow is $0.15, and the standalone lines carry their own prices in the public price book.

Which documents and countries can the API verify?

We read 14,000+ document types across 220+ countries and 54 languages in the verification flow, including passports, ID cards, driver's licenses and residence permits. Some countries also allow verification without a document, through a database lookup or a digital ID wallet, priced per country. Confirm the specific document and country combination in the console before launch.

How long does it take to integrate the API?

The first working session takes about five minutes once you have an organization: create a workflow, create a session and redirect to the returned URL. The production work is the webhook handler, the decision routing and the review queue. The quick start covers that order end to end.

Is Didit AI identity verification software a fit for a small team?

Yes if you want a public price list and a self-serve sandbox instead of a sales process. The Free plan includes $10 of credit a month, Growth is $99 a month with $115 of credit and 4% off every price, and Scale is $299 a month with $350 of credit and 10% off. Enterprise contracts start at $15,000 a year.

What happens if a webhook never arrives?

We retry a failed delivery twice, after about 1 and 4 minutes, then drop it, and you can resend it from the destination's delivery log. As a fallback, call GET /v3/session/{session_id}/decision/ and read the same decision. De-duplicate on event_id so a retry never processes the same result twice.

Do I need a sales call before I start?

No. You can create an organization and run sandbox sessions without talking to us, and live checks use your plan credit first, then any top-up balance. Prices are on the pricing page.

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.