Skip to main content

Identity Verification API: Choose and Implement

Use our hosted API for full KYC at $0.33 per completed check. Test in the free sandbox and confirm that the documents and methods you need are supported in production.

Identity Verification API: Choose and Implement

Contents

In this guide

Jump to the part you need.

This guide is for product and engineering teams that need to add identity checks to an app and want a published price before they start. Our full ID check costs $0.33 per completed check. Our hosted session API handles capture for you, so the first integration is a redirect and a webhook. The caveat: a published price does not establish production availability for every country or method, so check the docs before you commit.

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

Identity verification API at a glance, November 26, 2026
DecisionWhat to usePublished price
First integrationHosted session API with a workflowFull ID check $0.33 per completed check
Server-to-server document checkPOST /v3/id-verification/$0.20 per 200 response
Passive liveness in a workflowWorkflow step$0.10 per completed check
Face Match (1:1) in a workflowWorkflow step$0.05 per completed check
AML screeningOptional workflow step$0.20 per check
Age gateAge Estimation$0.10 per check
Business verificationKYB workflowFrom $2.00 per company
TestingSandbox applicationFree sandbox
A selfie capture step in the hosted identity verification flow
The hosted flow captures a selfie for the configured biometric checks.

What an identity verification API is

An identity verification API is a programmatic interface that starts a verification, runs document and biometric checks, and returns a decision. You call it from your backend. Our API handles capture, OCR, liveness, face match, and risk checks. Your app handles the account, the policy, and the customer record.

That separation matters. We return a status such as Approved, Declined, or In Review. Your system applies the rule for your product. A reviewer can override a status, and the payload records the override and the decision trace, so keep the decision history your policy requires.

AI identity verification: what the API automates

AI identity verification usually means automated checks. OCR reads the document, MRZ check digits are validated, passive liveness scores a selfie, face match compares the selfie to the document portrait, and AML screening checks lists. We run 200+ real-time fraud signals on every check and return warnings that explain the status.

The API is not your policy engine. It returns a status. Your system decides what that status means for the product. That boundary matters in regulated flows because a person can review a session, override a status, and leave a trace in the decision payload.

  • Document checks: 220+ countries and territories, 14,000+ document types, 130+ recognition languages.
  • Biometric checks: passive liveness, active liveness, face match 1:1, face search 1:N.
  • Data checks: AML screening against 1,300+ lists, proof of address, database validation.
  • Risk checks: device and IP analysis, duplicate detection, warnings on the session.

How to choose an identity verification API

Start with the flow you need: KYC at signup, KYB at business onboarding, age gate, account owner check, or re-authentication. Then run a pilot on the exact work you will ask the API to do.

Run a pilot, not a feature checklist

  • Test the exact issuing countries and document types your users carry. Coverage headlines do not prove the document in your support queue will pass.
  • Inspect the evidence returned for each outcome: Approved, Declined, and In Review. Read the warnings and the decision trace, not only the status.
  • Record the cost per completed flow. Include the checks you will actually run, the optional AML step, reviews, and retries.

Price the whole flow

All prices in this section are USD list rates. Our full ID check is $0.33: ID document $0.15, passive liveness $0.10, face match $0.05, and device and IP analysis $0.03. Add AML at $0.20 if you need it. The standalone ID Verification API is $0.20 per 200 response. We bill for checks that finish with a result. Some retries and no-match database lookups are also billable. Internal reviewer time on an In Review session is your own cost, not a Didit line. The worked example below counts only Didit checks, not reviewer time. Price the exact flow you will run, including the checks and retries. Check our pricing page and the machine-readable price feed before you finalize a budget.

Test the failure path

We return warnings and a decision trace. Test a wrong API key, an invalid workflow, a callback outside your allowed domains, a low balance, and a webhook that times out. Record the HTTP response, decision status, and recovery action for each test.

Prerequisites

  • An organization and an application for the project. Keys are scoped to the application.
  • A workflow with the checks you need. Start from a template, describe it, or start empty in the console.
  • An API key kept server-side. Use x-api-key on verification.didit.me.
  • A public HTTPS endpoint for webhooks, or a polling job if you cannot receive webhooks.
  • If you pass an HTTP or HTTPS callback and the application has allowed domains configured, match the scheme, host, and port of an allowed origin. A custom mobile deep-link scheme is also accepted.
  • Storage for the account reference, session ID, status, and timestamps. Retain decision evidence only where your policy requires it, with access controls and a defined retention period.
  • A written policy for Approved, Declined, and In Review. Route In Review to a person.

Implement the API in 8 steps

  1. Create the organization and application. Sign up at business.didit.me, create the organization, then create an application for the project. The application is the workspace for workflows, keys, and sessions.
  2. Get the API key. In the console open Developers, then API keys, and copy the primary key. Your production backend can use a scoped key with the permissions its calls require. For a programmatic account, call POST https://apx.didit.me/auth/v2/programmatic/register/ and then POST https://apx.didit.me/auth/v2/programmatic/verify-email/ with the 6-character code. Save the sandbox key for tests and the live key for production. Never put the key in a browser or mobile bundle.
  3. Create a workflow. Call POST https://verification.didit.me/v3/workflows/ with workflow_label, workflow_type set to kyc, and the features you need. Persist workflow.id. For the advertised $0.33 full ID check, configure document verification, passive liveness, face match, and device and IP analysis. The sample below is a sandbox demo of document verification, passive liveness, face match, and AML. It does not configure device and IP analysis, so it is not the $0.33 full ID check. You can build the same workflow in the console.
  4. Register a webhook destination. Call POST https://verification.didit.me/v3/webhook/destinations/ with a label, your URL, the events status.updated, data.updated, user.status.updated, and user.data.updated, and webhook_version set to v3. Save secret_shared_key.
  5. Create a session. Call POST https://verification.didit.me/v3/session/ with workflow_id, vendor_data, and callback. The response contains session_id, url, and session_token. Redirect the user to url or open it in your SDK. Open the returned value as provided.
  6. Run the hosted flow. The user completes the steps in the hosted UI. For a server-to-server document check instead, call POST https://verification.didit.me/v3/id-verification/ with front_image and back_image for two-sided documents. Read id_verification.status and id_verification.warnings as nested response fields.
  7. Receive the webhook and return the user. Verify the X-Signature-V2 header with HMAC-SHA256 over the canonical JSON. De-duplicate on event_id. Respond within 5 seconds. If your handler is slower, or answers 5xx or 404, we retry twice, after about 1 and 4 minutes, then drop the delivery. Use the callback to return the user to your app.
  8. Retrieve the decision as a fallback. Call GET https://verification.didit.me/v3/session/<SESSION_ID>/decision/ with a key that can read:sessions. Branch on session_kind before reading feature arrays. Store the status and the evidence your policy needs. Retrieve the decision server-side after the flow to reconcile missed deliveries.

Runnable example

The commands below start from a sandbox key you create in the console. Open business.didit.me, go to Developers then API keys, and copy the sandbox key. If you prefer to create the account programmatically, use the programmatic registration and login flow as an alternative. Store the key in DIDIT_API_KEY. The sample is a sandbox demo of document verification, passive liveness, face match, and AML. It does not configure device and IP analysis. To configure the $0.33 full ID check, add device and IP analysis in the workflow editor and remove AML. If you keep AML, the combined list price is $0.53.

export DIDIT_API_KEY="paste your sandbox key from Developers then API keys"
curl -X POST https://verification.didit.me/v3/workflows/ -H "x-api-key: $DIDIT_API_KEY" -H "Content-Type: application/json" -d '{"workflow_label":"Document, selfie, and AML demo","workflow_type":"kyc","features":[{"feature":"OCR"},{"feature":"LIVENESS","config":{"face_liveness_method":"PASSIVE"}},{"feature":"FACE_MATCH"},{"feature":"AML"}]}'
export WORKFLOW_ID="paste workflow.id from the response"
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"}'
export SESSION_ID="paste session_id from the response"
curl -fsS -H "x-api-key: $DIDIT_API_KEY" "https://verification.didit.me/v3/session/${SESSION_ID}/decision/"

After the session call, set SESSION_ID from session_id. Open the returned url in a browser and finish the hosted flow before you fetch the decision. Replace the callback URL with one your application allows.

Expected output

The create-session call returns the identifiers and the hosted URL. Open the returned url exactly as provided; do not construct it yourself.

{
  "session_id": "<uuid>",
  "url": "<hosted URL returned by the API>",
  "session_token": "<token>"
}

This is an abbreviated decision response. It shows the three fields you should read first.

{
  "session_id": "<uuid>",
  "session_kind": "user",
  "status": "Approved"
}

The configured checks that ran return their results in plural feature arrays such as id_verifications[], liveness_checks[], face_matches[], and aml_screenings[]. If a check did not run, its field can be absent or null. Do not parse a fixed set of empty arrays. Branch on session_kind, then read the features you configured.

A session overview in the Didit Business Console with status and warnings
The session overview shows the workflow, status, and warnings for the session your API call created.

Sandbox acceptance test

Use a documented mocked scenario. Create a sandbox session with a scenario from the sandbox catalog, confirm the expected status, and replay one webhook event to check that it produces one account update. For a separate concurrency test, send two copies of a fresh webhook event with the same event_id simultaneously to endpoints that share deduplication state. Verify that those deliveries produce exactly one account update. The sandbox is free on every plan and uses mocked checks. A duplicate delivery must not apply the same account change twice.

The handoff is not finished when the user returns to your callback. Verify the webhook, deduplicate before you update account state, and then retrieve the decision server-side to reconcile any missed delivery. The callback returns the user to your app. The webhook and the decision fetch are how your backend learns the outcome.

Inputs, outputs, and prices

Core identity verification API calls, inputs, outputs, and published prices
CallInputOutputPublished price
POST /v3/workflows/workflow_label, workflow_type, featuresworkflow.idNo check is run, no charge
POST /v3/session/workflow_id, vendor_data, callback, optional metadatasession_id, url, session_tokenNo separate line, checks are billed when completed
GET /v3/session/{session_id}/decision/session_idStatus, session_kind, feature arrays, warningsSee Didit pricing for billing terms
POST /v3/id-verification/front_image, back_image for two-sided documents, perform_document_livenessid_verification.status, id_verification.warnings, request_id$0.20 per 200 response

AML Screening at $0.20 per check, Age Estimation at $0.10 per check, and Proof of Address at $0.20 per check are priced when they are configured in a workflow. AML screening results appear in the documented aml_screenings array, and proof-of-address results appear in poa_verifications. Use the documented decision response for the exact fields: Retrieve Session API.

Failure cases and recovery

Common identity verification API failures and fixes
Status or eventWhat it meansWhat to do
401 on verification.didit.meThe x-api-key header is wrong, malformed, revoked, or expired.Re-fetch the key, or use a key that has not expired. Do not retry with the same key.
403 on verification.didit.meNo key, a scoped key without access, or a call from an address outside the key's IP list.Use a key with the right scope. Check IP restrictions in Developers, then API keys.
400 invalid workflow_idThe workflow ID is invalid. Check that you copied the workflow ID and are using the intended application key.Read workflow.id from the create-workflow response and retry.
400 on callbackThe callback is not on one of the application's allowed domains.Use a callback whose scheme, host, and port match an allowed origin, or use a custom scheme for a mobile deep link.
403 not enough creditsThe organization balance cannot cover the call.On Free, Growth, or Scale, add credit or enable auto top-up. On Enterprise, check the contract's overage terms. The sandbox keeps working.
404 on a session routeThe session does not exist or is outside the scoped key's limits.Use a key whose limits include that session, and check the session ID.
429Rate limit.Read the wait field in the response, back off, then retry.
Webhook timeout or 5xxYour handler did not answer within 5 seconds or returned an error.We retry twice, after about 1 and 4 minutes, then drop. Resend from the destination delivery log.

For standalone document checks, a document that cannot be processed returns 400 with COULD_NOT_RECOGNIZE_DOCUMENT. A readable document can return HTTP 200 with Declined. If the document liveness check produces no usable score and no other finding already causes a decline, the API returns In Review. Read id_verification.status and id_verification.warnings before acting.

The sandbox is free on every plan and uses mocked checks. Live checks are paid from prepaid credit, and you pay for a check only when it finishes with a result. Creating a workflow and creating a session do not add a separate charge. The checks inside the workflow do.

  • Full ID check: $0.33 per completed check, made of ID $0.15, passive liveness $0.10, face match $0.05, and device and IP $0.03.
  • Standalone ID Verification API: $0.20 per 200 response. If the balance cannot cover it, the API returns 403 before processing the image.
  • AML screening: $0.20 per check. Ongoing AML monitoring is $0.07 per person a year. Age Estimation is $0.10 per check, and Proof of Address is $0.20 per check.
  • Review: In Review is a nonfinal status. The decision can include an assignee, waiting_since, and sla_due_at. Wait for status.updated. A reviewer can override the status, and the payload records status_override and decision_trace.

Map verification statuses to your onboarding policy. Route In Review to a named reviewer and keep the application pending. Use Approved and Declined as inputs to your account decision.

The ID document result in the Didit Business Console
The document result shows OCR fields, warnings, and the captured document so a reviewer can act on the same evidence your API receives.

Worked cost example

Suppose you run 1,000 full KYC checks and 200 standalone ID Verification API calls that return HTTP 200 in a month. Full KYC: 1,000 x $0.33 = $330.00. Standalone ID: 200 x $0.20 = $40.00. Total: $370.00.

If you add AML screening to 100 of those KYC sessions, add 100 x $0.20 = $20.00, for $390.00. For an organization eligible for the Free plan's $10 monthly credit, 30 x $0.33 = $9.90, leaving $0.10. On Growth, $115 of monthly credit covers 363 full ID checks at $0.3168 each. 363 x $0.3168 = $114.9984.

Sources

Start in the sandbox at business.didit.me. You can create an account, build a workflow, and run a test session without a sales call.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

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

$0.15 per checkStart free

Author

Alejandro Rosas

Co-founder and CTO

Alejandro Rosas

Alejandro Rosas

Co-founder and CTO

About Didit

Questions

Frequently asked questions

What is an identity verification API?

An identity verification API is a backend interface that starts a check, runs document and biometric validation, and returns a decision. It lets your app confirm a user without building OCR, liveness, or document forensics. We return the status and the evidence in one decision payload.

How do I choose an identity verification API for my app?

Start with your flow and the countries you serve. Then run a pilot on four things: document coverage for your users, the decision payload you can inspect, the full cost of the exact flow, and the failure path. A free sandbox and public docs make that test possible before a contract. We publish list prices and a JSON price feed so you can check the numbers yourself.

What does API ID mean in identity verification?

API ID can refer to different identifiers. In our verification API, workflow_id selects the workflow, session_id identifies the verification session, and vendor_data carries your own record reference.

Can I use the API for KYC verification?

Yes. Create a KYC workflow with ID verification, passive liveness, face match, and device and IP analysis, then create a session. We bill that full ID check at $0.33 per completed check. Add AML screening at $0.20 if your policy requires it.

Can I use the API to verify an account owner?

Use a KYC session to verify the person's identity. To establish that the person controls an existing account, require an authenticated account session or a separate proof-of-control step. Use vendor_data to correlate the verification with your account record. For re-authentication, use Biometric Authentication at $0.10 per auth.

Is there an age verification API?

Yes. Our list price for Age Estimation is $0.10 per check. The Adaptive Age Verification template starts with a selfie and falls back to ID if needed. Keep your threshold policy in your code.

How does AI identity verification work in the API?

The API automates OCR, MRZ validation, liveness, face match, and AML list screening, then returns a status with warnings. It is a decision support layer, not your policy engine. Your system decides what Approved, Declined, and In Review mean for your product.

How do I test the identity verification API without paying?

Use a sandbox application. The sandbox is free on every plan and uses mocked checks. Use it to test your code, webhook handling, duplicate delivery, and error paths, then switch to the live key for real checks.

What happens when a verification is In Review?

In Review is a nonfinal status: the automated checks have not produced a final decision, and the session is waiting for a person. The decision can include an assignee, waiting_since, and sla_due_at. Do not treat it as approved. Wait for status.updated.

What does the API return for a declined document?

A readable document can return HTTP 200 with Declined. If the document liveness check produces no usable score and no other finding already causes a decline, the API returns In Review. A document that cannot be processed returns 400 with COULD_NOT_RECOGNIZE_DOCUMENT. Read id_verification.status and id_verification.warnings before acting.

How do I keep the API key safe?

Keep the key server-side and send it in the x-api-key header only to verification.didit.me. Never ship it in a browser or mobile bundle. Use scoped keys for services and partners, and rotate a key if it leaks.

How do I check whether an identity API vendor is legitimate?

Look for public docs, a free sandbox, published prices, and security evidence you can verify. We serve 4,000+ companies, have a SOC 2 Type 2 report available under NDA, and are certified to ISO/IEC 27001:2022. We also have an attestation from Spain's Tesoro, Banco de España, and SEPBLAC, and we publish list prices and a machine-readable price feed.

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.