Skip to main content

Identity Verification API in the UK: KYC and AML Build Guide

Build UK onboarding with our identity verification API. Full KYC costs $0.33 and AML screening costs $0.20 at list price. Test in the free sandbox, then confirm live UK coverage.

Identity Verification API in the UK: KYC and AML Build Guide

Contents

In this guide

Jump to the part you need.

If you are building onboarding for a UK product that has to check identity or screen for financial crime, this guide takes you from an empty account to a live decision through one API. We charge $0.33 per full ID check and $0.20 per AML screening. Test integration outcomes in the free sandbox, then confirm UK document and method coverage separately before launch.

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

Identity verification API in the UK: summary
ItemDetail
What it isOne REST API to create a verification session, run document, liveness, face match and AML checks, and read a structured decision.
Best fitUK fintech, payments, crypto, iGaming, marketplaces and any team that has to evidence customer due diligence in code rather than in a spreadsheet.
Price per full KYC$0.33 = ID document $0.15 + passive liveness $0.10 + face match 1:1 $0.05 + device and IP analysis $0.03.
Price per AML screening$0.20 per check. Ongoing AML monitoring $0.07 per person per year.
Standalone ID verification endpointPOST /v3/id-verification/ has separate per-call pricing. Check the price book for the endpoint you call.
Free to startThe sandbox is free and unlimited. The Free plan carries $10 of credit a month for the first eligible organization created with a work email for a company domain. Phone codes are excluded and unused credit expires at the end of the plan month.
Authenticationx-api-key header on verification.didit.me. Keys are server-side secrets.
DecisionGET /v3/session/{session_id}/decision/ returns plural feature arrays in the V3 contract.
Coverage220+ countries and territories, 14,000+ document types, 1,300+ AML watchlists.
Main caveatThe sandbox uses mocked results. Confirm production support for the specific documents and methods your UK workflow needs.

What a UK team actually needs from the API

If your firm is in scope, the Money Laundering Regulations set customer due diligence and recordkeeping obligations. Use the regulations and your supervisor’s guidance to determine which checks and records your risk policy requires. A workflow can combine document verification, liveness, face matching and AML screening. The decision response records the checks the workflow ran.

Prerequisites

  • A Didit organization and application. Sign up at business.didit.me or register programmatically with two calls.
  • An API key. New keys start with sk_test_ for a sandbox application or sk_live_ for a live application, followed by 43 URL-safe characters. Older keys can have no prefix and keep working. Treat the key as a server-side secret and never ship it to a browser or mobile bundle.
  • A workflow, which is the ordered set of checks you want to run. Sessions are created from a workflow.
  • A callback is optional. If the application has an allowlist, an HTTP or HTTPS callback must match an allowed origin exactly, including scheme, host and port. Custom app URL schemes are accepted.
  • A webhook endpoint that can answer within 5 seconds, if you want the decision pushed rather than polled.
  • A record of the evidence your risk policy requires, because that drives which fields you persist.

How to integrate the identity verification API: 7 steps

  1. Get a key. In the console go to Developers, then API keys, and copy the Primary key of your application. Or register programmatically: POST https://apx.didit.me/auth/v2/programmatic/register/ sends a 6-character code, and POST https://apx.didit.me/auth/v2/programmatic/verify-email/ returns both the sandbox and live keys inline. Persist the sandbox key as DIDIT_API_KEY and build against it for free.
  2. Create the workflow. Call POST https://verification.didit.me/v3/workflows/ with the checks you need. A sample workflow is OCR, passive liveness, face match and AML screening. Store the returned workflow id.
  3. Register a webhook destination. Call POST https://verification.didit.me/v3/webhook/destinations/ with a label, a URL, your subscribed events and webhook_version set to v3, then store the returned secret_shared_key. Verify the X-Signature-V2 header as HMAC-SHA256 over the canonical JSON, and de-duplicate on event_id.
  4. Create a session. Call POST https://verification.didit.me/v3/session/ with the workflow_id, your own stable vendor_data identifier, a callback and language set to en. The response returns session_id, url and session_token.
  5. Send the user to the flow. Redirect the browser to url, or open it in an SDK or iframe. The hosted flow handles document and selfie capture and runs the configured passive liveness check. The verification UI supports 54 languages.
  6. Read the decision. Call GET https://verification.didit.me/v3/session/{session_id}/decision/. The key must hold the read:sessions privilege. This is also the backfill route when a webhook is missed.
  7. Apply the decision. Branch on session_kind first, then on status. Persist the arrays you need as evidence: id_verifications[], liveness_checks[], face_matches[], aml_screenings[], plus decision_trace.

The snippet configures OCR, passive liveness, face match and AML. The $0.33 full KYC price also includes device and IP analysis. Substitute your real inbox, a password you choose, the received code, the workflow UUID, the session UUID and the sandbox key returned by the verify-email call.

# 1. Register and get keys (the sandbox key builds for free)
curl -X POST https://apx.didit.me/auth/v2/programmatic/register/ \
  -H "Content-Type: application/json" \
  -d '{"email": "you@yourdomain.co.uk", "password": "StrongP@ss1"}'

curl -X POST https://apx.didit.me/auth/v2/programmatic/verify-email/ \
  -H "Content-Type: application/json" \
  -d '{"email": "you@yourdomain.co.uk", "code": "REPLACE_WITH_RECEIVED_CODE"}'

# 2. Create the KYC and AML workflow
export DIDIT_API_KEY='REPLACE_WITH_SANDBOX_KEY'
curl -X POST https://verification.didit.me/v3/workflows/ \
  -H "x-api-key: $DIDIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workflow_label": "UK KYC and AML",
    "workflow_type": "kyc",
    "features": [
      {"feature": "OCR"},
      {"feature": "LIVENESS", "config": {"face_liveness_method": "PASSIVE"}},
      {"feature": "FACE_MATCH"},
      {"feature": "AML"}
    ]
  }'

# 3. Register a webhook destination
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.co.uk/webhooks/didit", "subscribed_events": ["status.updated","data.updated","user.status.updated","user.data.updated"], "webhook_version": "v3"}'

# 4. Create a session
export WORKFLOW_ID='REPLACE_WITH_WORKFLOW_UUID'
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.co.uk/kyc/return","language":"en"}'

# 6. Read the decision
export SESSION_ID='REPLACE_WITH_SESSION_UUID'
curl https://verification.didit.me/v3/session/$SESSION_ID/decision/ \
  -H "x-api-key: $DIDIT_API_KEY"

Expected output: what comes back

The create call returns session_id, url and session_token. The decision call returns the same session_id, a session_kind that is either user or business, the current status, and the feature arrays. Feature results are always plural arrays in V3. If a feature did not run, the field is absent or null, never a placeholder, so your handler must tolerate missing keys.

Status values you will see are Approved, Declined, In Review, In Progress, Not Started, Expired, Abandoned, Kyc Expired, Resubmitted and Awaiting User. Treat In Review as a live state, not a failure. Automated inference and manual review have separate timelines. The session remains In Review until the decision changes. When a status.updated webhook arrives, compare its session_id and status with the retrieved decision; the decision endpoint is the source of truth.

Decision states and the first fields to read
StatusWhat it meansWhat to doFields to read
ApprovedThe session was approved.Apply your account state.status, decision_trace.decided_by, feature arrays.
DeclinedThe session was declined.Apply your decline outcome and route to appeals if you have one.decision_trace.decided_by, decision_trace.status_warnings, feature warnings.
In ReviewA pending decision state.Route to your review process and apply your approved account restrictions while the case is unresolved.reviews, assignee, waiting_since, sla_due_at, later status_override.
In Progress, Not Started, Awaiting UserThe session is incomplete and user action may be needed.Send the user back to session_url or wait for the next event.status, expires_at, session_url.
Expired, Abandoned, Kyc ExpiredThe session is incomplete or needs a restart.Create a new session or resend a link under your own policy.status, expires_at, session_url.
ResubmittedThe session was resubmitted.Retrieve the current decision for the existing session and handle the status it reports.status, decision_trace.
Session detail view in the Didit Business Console showing the OCR fields read from the ID document
After the decision call, the same data is visible per session in the Business Console, including the document fields the OCR read.
Session inputs and decision outputs
FieldDirectionWhat to know
workflow_idInput, requiredStable UUID of the workflow. A KYC workflow creates a user session, a KYB workflow creates a business session. There is no separate KYB endpoint.
vendor_dataInput, recommendedYour stable identifier for the person or business. Binds the session to an entity and drives duplicate detection across sessions.
callbackInput, optionalA callback is optional. If the application has an allowlist, an HTTP or HTTPS callback must match an allowed origin exactly, including scheme, host and port. Custom app URL schemes are accepted.
languageInput, optionalISO 639-1 code for the verification UI, for example en. Defaults to browser detection.
expected_detailsInput, optionalFirst name, last name, date of birth, nationality, document country. Mismatches surface as decision warnings rather than silent passes.
session_expiration_timeInput, optionalSeconds the link stays valid, between 3600 and 2419200. Overrides the workflow setting for this session only.
statusOutputOverall decision. Branch on session_kind first, then handle status.
id_verifications[]OutputExtracted holder fields, parsed MRZ, document warnings and authenticity results.
liveness_checks[]OutputPassive or active liveness result for the selfie capture.
face_matches[]Output1:1 comparison between the selfie and the portrait on the document.
aml_screenings[]OutputAML screening results for the session.
decision_traceOutputHow the status was reached: decided_by is manual, automatic or investigator, with warning counts attached.

Failure cases and how to recover

Common API errors and the fix
SymptomCauseRecovery
401 on verification.didit.meKey is wrong, malformed, revoked or expired.Re-fetch it with the login and organization endpoints, or use a key that has not expired. Never validate a key by its prefix, because older keys have no prefix.
403 with a permission messageNo x-api-key header, a scoped key without access to that resource (for the decision route, read:sessions), or a call from an address outside the key's IP list.Use a key with that access, or create a scoped key in Developers, then API keys.
400 on session createInvalid workflow_id, or a callback that does not match an allowed origin exactly.Re-read the workflow id, or add the exact origin, including scheme, host and port, to your allowed domains. Custom app deep links are accepted.
404 on the decision routeThe session does not exist, belongs to a different application, or is outside the scoped key's workflow or status limits.Use a key with read:sessions and limits that include the session, and confirm the session_id and application.
429Rate limit hit. The response carries a wait field in seconds.Back off for that long, then retry.
Webhook never arrivesYour handler took longer than 5 seconds or answered 5xx or 404.We retry twice, after about 1 and 4 minutes, then drop the delivery. Resend from the destination delivery log, and use the decision endpoint as the source of truth.
AML call times outAdverse media enrichment needs an initial pause of about 5 seconds plus up to about 25 seconds of polling.Plain standalone AML screening typically completes in a few seconds. With adverse media enrichment, use a client timeout of at least 60 seconds.
Duplicate AML charge after a retryThe retry did not share the original idempotency key and exact body.Prevent duplicate AML charges. Send Idempotency-Key on the initial request and reuse the same key with the exact same body on retries. An identical replay of a completed request does not incur a second charge. Reusing the key with a different body returns 409.
400 COULD_NOT_RECOGNIZE_DOCUMENT on the standalone ID callThe image could not be processed at all.Re-capture uncropped with all four corners visible. Do not pre-crop, the service aligns and crops itself.
403 with the insufficient-credits error on standalone ID verification or AML screeningThe organization balance cannot cover the call.Top up the balance. The API refuses the call before it processes the document or runs the screening.

Billing is per completed check, from prepaid credit. Some no-match database lookups and retries are billable; the docs pricing page lists them. Nothing is charged in the sandbox. Our full list lives on the pricing page and in pricing.json.

  • ID document inside a workflow: $0.15. Passive liveness: $0.10. Face match 1:1: $0.05. Device and IP analysis: $0.03. Together, the $0.33 full KYC.
  • Standalone server-to-server calls have their own per-call prices; standalone AML screening is $0.20 per check. Check the price book for the endpoint you call.
  • Add-ons: NFC passport chip reading $0.15, proof of address $0.20, email verification $0.02, phone verification with our $0.02 fee per code plus the carrier charge. A UK SMS code is $0.0783 at list price.
  • AML: $0.20 per screening, and $0.07 per person per year for ongoing monitoring that keeps the profile monitored after onboarding.

The API returns a status, and we do not decide your commercial outcome. Route In Review to your review process and apply your approved account restrictions while the case is unresolved. When a reviewer changes the status by hand, status_override.automatic_status records the automated status. decision_trace shows how the current decision was reached.

Academy lesson cover for Didit billing, credits and volume discounts
The live price feed lists current plan credits and discounts.

Worked cost example for a UK onboarding flow

Take a UK payments firm onboarding 2,000 users a month, each with a full ID check and an AML screening, and keeping all 2,000 under ongoing monitoring.

  • ID checks: 2,000 x $0.33 = $660.00
  • AML screenings: 2,000 x $0.20 = $400.00
  • First month of checks at list price: $660.00 + $400.00 = $1,060.00. This excludes ongoing monitoring.
  • Ongoing monitoring for one 2,000-user cohort: 2,000 x $0.07 = $140.00 per year. New cohorts add monitoring usage.
  • On Growth, at 4% off every Didit price: 2,000 x $0.3168 = $633.60 and 2,000 x $0.192 = $384.00, so the usage subtotal is $633.60 + $384.00 = $1,017.60. Monthly cash cost with the full month's plan credit: $99 + $1,017.60 - $115 = $1,001.60. Excludes ongoing monitoring.
  • On Scale, at 10% off: 2,000 x $0.297 = $594.00 and 2,000 x $0.18 = $360.00, so the usage subtotal is $954.00. Monthly cash cost with the full month's plan credit: $299 + $954.00 - $350 = $903.00. Excludes ongoing monitoring.

Plan prices, credits and discounts move, so re-read didit.me/pricing before you quote anyone internally.

Running an AML check API next to KYC

Inside the workflow is the normal path. Add {"feature": "AML"} to the workflow and the screening result arrives in aml_screenings[] in the same decision as the document and biometric results. One session, one status, one audit trail.

As a standalone call is for cases where identity is already known: re-screening an existing customer, screening a director during business onboarding, or screening a counterparty you never verified. Call POST https://verification.didit.me/v3/aml/ with at least full_name.

In the standalone AML response, every hit carries a match_score from 0 to 100, which is identity confidence, and a risk_score from 0 to 100, which is entity risk. Hits below aml_match_score_threshold, default 93, are tagged as false positives and ignored for risk. The highest remaining risk_score becomes aml.score. A score above aml_score_review_threshold returns Declined. Otherwise, a score above aml_score_approve_threshold returns In Review, and all other scores return Approved. With defaults of 80 and 100, a score of exactly 80 returns Approved with a POSSIBLE_MATCH_FOUND warning, and scores from 81 through 100 return In Review. The default cannot produce an automatic decline because scores are capped at 100. Set these thresholds to match your risk policy.

Coverage is 1,300+ global watchlists. Confirm that the specific UK sanctions and PEP sources your risk policy expects are inside your selected lists before you go live, and say so in your compliance documentation.

AML screening result for a single session in the Didit Business Console, showing matched lists and scores
A screening result per session: the matched lists, the two scores and the review status for each hit.

Standalone APIs versus a workflow session

Sessions are the default because they carry state, a hosted UI and one decision object. Standalone calls suit server-to-server checks where no user is present. Standalone calls have separate per-call prices. The standalone ID verification and AML endpoints default save_api_request to true. A saved call appears in the console, and its request_id can be used with the decision endpoint. With false, the call is not persisted as a session. Standalone ongoing AML monitoring requires persistence.

Business verification uses the same create call. A KYB workflow creates a business session. To prefill the registry search, you can supply company_name, registry_country and registration_number inside expected_details. Check the available registry coverage and data tiers for the United Kingdom. Registry retrieval starts at $2.00 per company. Linked full ID checks and person AML are billed separately per person. The KYB quickstart walks the flow.

If you would rather drive the whole integration from a coding agent, the integration prompt is the canonical end-to-end recipe, and the MCP server is free on every plan.

UK launch checklist

Separate mocked integration testing from production document and screening coverage. In the sandbox, test the API outcomes you need: Approved, Declined, In Review and incomplete sessions, using synthetic data and sandbox_scenario when you need a specific result. In production, confirm the UK document types and versions your flow accepts, whether NFC is supported for those documents, and that the sanctions, PEP and watchlist sources in your selected lists meet your risk policy.

Map the evidence you keep to customer due diligence under Regulation 28 and recordkeeping under Regulation 40 of the Money Laundering Regulations. Store the decision fields your policy relies on, including the feature arrays, warnings, decision_trace and any status_override. Review the record with the people who own your risk policy before launch, not after the first review case.

Sources

Start in the sandbox at business.didit.me. You get keys immediately, every check is mocked, and no sales call is needed to build and test a full UK KYC and AML flow. Switch to a live key once your organization has credit, and compare the result against the price list at didit.me/pricing before you scale.

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 AML KYC API?

An AML KYC API combines identity verification with screening for possible sanctions, PEP and watchlist matches. Your firm determines what additional customer due diligence its obligations and risk assessment require. Add the AML feature to a full KYC workflow to receive both results in one decision object. At list price, a completed full KYC check costs $0.33 and an AML screening costs $0.20.

How much does an identity verification API cost in the UK?

With us a full ID check is $0.33, made up of document verification $0.15, passive liveness $0.10, face match $0.05 and device and IP analysis $0.03. An AML screening is $0.20. Billing is per completed check from prepaid credit. The sandbox is free, and the standalone AML endpoint is listed with no monthly minimum.

Is there a free way to test the API before going live?

Sandbox checks are mocked and free. Use synthetic test data and pass sandbox_scenario when you need a specific outcome. New sandbox keys start with sk_test_; older keys can have no prefix. Separately, the Free plan carries $10 of credit a month for eligible organizations that sign up with a work email.

How do I check which UK documents and digital IDs I can use?

The coverage figures we publish are global: 14,000+ document types across 220+ countries and territories. Check each UK document version and digital ID method your flow needs before launch. The Didit methods feed lists each digital ID wallet with its status: Available means it runs in production today, and Coming soon means the method is not live yet, even where a rate is published. NFC chip reading is a separate $0.15 add-on where the flow supports it.

How do I handle webhooks securely?

Register a destination, store the returned secret_shared_key, and verify the X-Signature-V2 header as an HMAC-SHA256 of the canonical JSON body. Answer within 5 seconds and de-duplicate on event_id, because deliveries can arrive more than once. If your handler fails, we retry twice at roughly 1 and 4 minutes and then drop the delivery.

What happens when a verification lands in In Review?

In Review is a pending decision state. Billing follows the completed checks and the applicable price-book lines. When a reviewer changes the status by hand, status_override.automatic_status records the automated status, and decision_trace shows how the current decision was reached. Route it to your review process and apply your approved account restrictions while the case is unresolved.

Can one API handle both users and businesses?

Yes. POST /v3/session/ creates a user session or a business session depending on the workflow type, so there is no separate KYB endpoint. Always branch on session_kind in the decision response before reading feature arrays, because the arrays differ between the two kinds.

How fast is the decision?

Automated inference runs at sub-2-second p99, but that is not complete onboarding time. Plain standalone AML screening typically completes in a few seconds. When adverse media enrichment is enabled, use a client timeout of at least 60 seconds.

Is the API suitable for a startup as well as an enterprise?

Eligible work-email organizations can receive $10 monthly credit on Free, Growth is $99 monthly with $115 in monthly credit and a 4% discount on our prices, and Enterprise starts at $15,000 annually. 4,000+ companies run on the platform today.

What compliance evidence can I show a UK supervisor?

We have a SOC 2 Type 2 report, available under NDA, and are ISO/IEC 27001:2022 certified. The decision object records the document data read, the liveness and face match results, aml_screenings[] for a workflow, and how the status was reached. The standalone AML response carries its own aml.score and aml.status. biometric_retention.deletes_at is the scheduled deletion date for the session's live biometric data.

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.