How to Add an Identity Verification API to a UK Bank in 2026
Create a Didit session from your server, send the customer to the hosted flow, and read the decision from a signed webhook or the decision endpoint. Full KYC costs $0.33 per completed check.

Contents
In this guide
Jump to the part you need.
UK banks, building societies and e-money institutions can add identity verification to their own onboarding with one server-side call to the Didit Session API, a hosted capture flow and a signed webhook. A full KYC check costs $0.33. The caveat is scope: we produce the checks and the evidence, and your bank keeps the regulated customer due diligence decision.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Item | Detail |
|---|---|
| Outcome | A UK onboarding flow that reads a document, proves liveness, matches the face, screens AML lists and returns a decision to your banking stack. |
| Recommended method | Session API plus hosted flow plus signed webhooks. Server to server, so the API key never reaches the browser. |
| Prerequisites | Didit organization and application, API key, published KYC workflow, HTTPS webhook endpoint. |
| First call | POST https://verification.didit.me/v3/session/ |
| Decision you read | status.updated webhook, or GET /v3/session/{session_id}/decision/ |
| Price per completed check | Full KYC $0.33, AML screening $0.20, UK SMS code $0.0783, NFC add-on $0.15 |
| Sandbox | Free, 500 session creates per application per 24 hours, every provider mocked |
| Review boundary | We return the decision and the evidence. Your bank decides on the customer and files reports. |
Start free in the sandbox at business.didit.me, with no sales call. Developers can connect Didit to an AI assistant through the Didit MCP server. The identity verification page shows what the API covers, and every unit price is public on the pricing page.
Why a UK bank needs an ID verification API rather than a review portal
The Money Laundering, Terrorist Financing and Transfer of Funds (Information on the Payer) Regulations 2017 put customer due diligence on the firm, and FATF Recommendation 10 sets the same expectation internationally: identify the customer, verify that identity from reliable independent sources, and keep the record. Doing that by hand does not scale past a branch queue. An API takes capture and checks out of your operations team and puts a machine-readable decision into the application the customer is already filling in.
Three things decide whether an API is usable for a UK bank:
- The key stays server side. You create the session on your own backend and hand the customer a URL.
- The evidence is auditable. The decision includes available check evidence and a decision trace showing how the status was reached.
- The review path is explicit. Some sessions go to a reviewer, and the decision says who decided and whether a person overrode the automatic result.

Prerequisites before the first call
- A Didit organization. Eligible organizations on the Free plan receive $10 of monthly credit when they create their first organization with an eligible work email.
- An application and its API key. Keys live under Developers, then API keys. A new key starts with
sk_test_on a sandbox application orsk_live_on a live one, and the prefix is a label, never a validation rule. - A published KYC workflow. Workflows are versioned, and the
workflow_idUUID is what you pass on every session. - An HTTPS webhook endpoint that can read the raw request body before parsing it.
- A server-side field for
vendor_data, your own customer ID. It binds sessions to a User entity and drives duplicate detection. - Credit on the live organization before you switch to the live key. Sandbox testing never bills.
The six steps
- Get an API key, from the console or with two programmatic calls.
- Create a KYC workflow with the checks a UK bank needs.
- Create a session per customer and redirect them to the returned URL.
- Register a webhook destination and store its signing secret.
- Verify the signature, de-duplicate on
event_idand answer within 5 seconds. - Read the decision, from the webhook payload or from the decision endpoint.
Step 1: Get an API key
In the console: Developers, then API keys, then copy the Primary key or create a scoped key for the onboarding service. In code, two calls create an organization and return both keys inline.
curl -X POST https://apx.didit.me/auth/v2/programmatic/register/ \
-H "Content-Type: application/json" \
-d '{"email": "you@yourbank.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@yourbank.co.uk", "code": "A3K9F2"}'
The verify call returns application.api_key and sandbox_application.api_key. Store the sandbox key as DIDIT_API_KEY while you build. An organization created through the API starts at $0 credit, so the live key only works once you add credit.
Step 2: Create the KYC workflow
A workflow is the list of checks a session runs. For a UK current account you want document reading, passive liveness, a 1:1 face match and AML screening.
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 current account KYC",
"workflow_type": "kyc",
"features": [
{"feature": "OCR"},
{"feature": "LIVENESS", "config": {"face_liveness_method": "PASSIVE"}},
{"feature": "FACE_MATCH"},
{"feature": "AML"}
]
}'
Persist workflow.id. The same endpoint with workflow_type set to kyb builds the business version, so a sole trader or a corporate applicant goes through the same session API.
Step 3: Create a session per customer
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": "customer-889120", "callback": "https://apply.yourbank.co.uk/kyc/return"}'
The response carries session_id, url and session_token. Send the customer's browser to url. If your application has allowed domains configured, an http or https callback must sit on one of those origins, otherwise creation fails with 400.
Optional fields worth setting for a bank: expected_details with first name, last name, date of birth, nationality and id_country, so mismatches come back as decision warnings; language for the capture UI; tags to mark a product line; metadata for internal references; and session_expiration_time when your onboarding link needs a shorter life than the workflow default.
Step 4: 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://apply.yourbank.co.uk/webhooks/didit", "subscribed_events": ["status.updated", "data.updated", "user.status.updated", "user.data.updated"], "webhook_version": "v3"}'
Save the returned secret_shared_key as DIDIT_WEBHOOK_SECRET. There is no wildcard subscription, so list every event family you want, and fan out to a second destination if your case system and your data warehouse both need events.
Step 5: Receive and verify the webhook
- Read the raw body before parsing JSON.
- Reject a request where the gap between now and
X-Timestampis more than 300 seconds. - Recompute the HMAC-SHA256 of the canonical JSON with your destination secret and compare it in constant time against
X-Signature-V2, and againstX-Signature-V2-Previouswhen present, so a secret rotation does not drop events. - De-duplicate on
event_id, then applystatusto your customer record. - Answer 2xx within 5 seconds and apply the update idempotently. A handler that answers 5xx or 404, or takes longer than 5 seconds, triggers the retries described below.
The envelope carries session_id, status, webhook_type, workflow_id, vendor_data, metadata and environment, and includes a decision object for Approved, Declined, In Review or Abandoned events. Status strings are exact and case sensitive, including Kyc Expired.
Step 6: Read the decision
The webhook is the fast path. The decision endpoint retrieves the full decision when the webhook is unavailable or when your integration needs a fresh read, and the documented handler pattern is this one:
const decision = await (await fetch(
"https://verification.didit.me/v3/session/" + sessionId + "/decision/",
{ headers: { "x-api-key": API_KEY } }
)).json();
switch (decision.session_kind) {
case "user":
return handleUserDecision(decision);
case "business":
return handleBusinessDecision(decision);
}
Branch on session_kind every time. Both kinds share the top-level keys, and the feature arrays differ: id_verifications, liveness_checks, face_matches and aml_screenings for a person, registry_checks, document_verifications and key_people_checks for a business. Arrays are always plural, and a check that did not run is absent or null, never a placeholder.
Expected output
A completed person session returns a shape like this, abbreviated here to the fields an onboarding service reads first.
{
"session_id": "0f6c1a3e-...",
"session_kind": "user",
"status": "Approved",
"vendor_data": "customer-889120",
"created_at": "2026-11-26T09:14:02Z",
"id_verifications": [ "..." ],
"liveness_checks": [ "..." ],
"face_matches": [ "..." ],
"aml_screenings": [ "..." ],
"decision_trace": { "decided_by": "automatic", "automatic_status": "Approved" },
"status_override": null
}
Status is one of Approved, Declined, In Review, In Progress, Not Started, Expired, Abandoned, Kyc Expired, Resubmitted or Awaiting User. Use the status values explicitly documented by Didit and define your bank's onboarding handling for each one, so your onboarding state machine has an explicit rule per string.

Inputs and outputs
| Field or endpoint | Where it appears | Required | What it does |
|---|---|---|---|
workflow_id | Session create body | Yes | UUID of the published workflow. The workflow type decides whether a user or a business session is created. |
vendor_data | Session create body | Strongly recommended | Your stable customer ID. Binds the session to an entity and is used for duplicate detection. |
callback | Session create body | Optional | Where the hosted flow returns the customer. Must match an allowed domain when your application restricts them. |
expected_details | Session create body | Optional | Name, date of birth, nationality, id_country. Mismatches surface as decision warnings. |
url, session_id, session_token | Session create response | Output | The hosted flow URL to redirect to, plus the identifiers you store. |
status | Webhook and decision | Output | The single field your onboarding state machine branches on. |
id_verifications[], liveness_checks[], face_matches[], aml_screenings[], ip_analyses[] | Decision | Output | Per-check evidence, always as plural arrays. |
decision_trace, reviews, status_override | Decision | Output | How the status was reached, what a reviewer did and whether a person overrode the automatic result. |
Failure cases and recovery
| Symptom | Meaning | Recovery |
|---|---|---|
401 on verification.didit.me | The x-api-key value is wrong, malformed, revoked or expired | Re-fetch the key with the login and organization calls, or rotate it under Developers, API keys |
403 on verification.didit.me | No key sent, a scoped key without that privilege, or a call from an address outside the key's IP list | Use a key with the access you need; the decision endpoint requires read:sessions |
| 400 on session create | Invalid workflow_id, a callback outside the allowed domains, or session_expiration_time outside 3600 to 2419200 | Read the field named in the error and resend |
| 404 on the decision route | The session does not exist for this application, or sits outside the key's workflow and status scope | Check the key scope before assuming the session is missing |
| 429 | Rate limited | Back off for the seconds in the wait field, then retry |
| No webhook arrived | Your handler took longer than 5 seconds, or answered 5xx or 404 | We retry twice, about 1 and 4 minutes later, then drop the delivery. Resend from the destination's delivery log and fix the handler |
Some documented statuses are not errors. In Review means a reviewer holds the session, and the decision returns assignee, waiting_since and sla_due_at for that review clock. Abandoned, Expired, Kyc Expired and Awaiting User are status values like any other: give each one an explicit rule in your onboarding queue instead of dumping them into an exception log.
Paid steps, free steps and the review boundary
Billing is per completed check, from prepaid credit. Nothing here is a seat licence: the workflow builder, the orchestrator, the SDKs and the MCP server carry no fee, and sandbox sessions are never billed. We serve 4,000+ companies.
- Full KYC, $0.33 per completed check: ID document verification $0.15, passive liveness $0.10, face match 1:1 $0.05, device and IP analysis $0.03.
- AML screening, $0.20 per check against 1,300+ lists. Ongoing AML monitoring is $0.07 per person per year.
- Phone verification, from $0.02 plus the carrier price. A UK SMS code is $0.0783 at list price.
- Optional steps: NFC passport chip reading $0.15, proof of address $0.20, document AI $0.20, custom questionnaires $0.10, white label flow $0.10.
- Plans: eligible organizations on the Free plan receive $10 of monthly credit when they create their first organization with an eligible work email; Growth is $99 a month with 4% off Didit prices, Scale is $299 a month with 10% off, and Enterprise is an annual contract from $15,000 a year.
The review boundary matters more than the price list. We return a decision, the evidence behind it, and, when a reviewer touches the session, status_override with the automatic status plus decision_trace with who decided and when. Your bank still decides whether to open the account, whether to apply enhanced due diligence, and whether to file a suspicious activity report. No API call transfers that duty.

Worked cost example
Take a UK digital bank onboarding 10,000 current account customers a month, with a workflow of full KYC, one AML screening and one SMS code per customer.
- KYC: 10,000 x $0.33 = $3,300.00
- AML screening: 10,000 x $0.20 = $2,000.00
- UK SMS codes: 10,000 x $0.0783 = $783.00
- Total at list price: $3,300.00 + $2,000.00 + $783.00 = $6,083.00 a month, or $0.6083 per onboarding.
On the Scale plan the Didit prices carry 10% off while the carrier charge passes through at cost. The UK SMS total becomes the carrier's $0.0583 plus Didit's discounted $0.018, so $0.0763.
- KYC $0.297 + AML $0.18 = $0.477
- Add the SMS code: $0.477 + $0.0763 = $0.5533 per customer
- 10,000 x $0.5533 = $5,533.00 a month
Add $0.20 per completed proof of address check, or $0.15 per NFC chip read, only for the customers whose workflow includes that step. The same numbers are machine-readable at pricing.json, and the plan terms are on the pricing page.
Testing declines before you go live
Sandbox is a per-application mode. Every external provider is mocked, no third party is called and no session is billed, with a quota of 500 session creates per application per 24 hours. Liveness still runs the real capture so your testers see the real screens; only the result is simulated.
Use the scenario catalog at GET /v1/sandbox/scenarios/ and pass sandbox_scenario on session create to reproduce a specific outcome, or arm a scenario on a session that has not started. Webhooks from sandbox sessions carry environment set to sandbox, so a test event cannot be mistaken for a live approval.
Sources
- Didit docs: Quick Start
- Didit docs: API Authentication
- Didit docs: Create Session
- Didit docs: Retrieve Session Decision
- Didit docs: Webhooks
- Didit docs: Sandbox test data
- Didit docs: Pricing
- Didit pricing page and pricing.json, read November 26, 2026
- Didit docs: Bank Verification quickstart
- Didit MCP server and integration prompt
- Money Laundering, Terrorist Financing and Transfer of Funds (Information on the Payer) Regulations 2017
- FATF Recommendations, read November 26, 2026
Next step: create a sandbox application at business.didit.me, publish the KYC workflow above and run one session end to end. No sales call is needed to start, and sandbox sessions are never billed.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alejandro Rosas
Co-founder and CTO

Questions
Frequently asked questions
What is an identity verification API for UK banking?
It is a server-side interface that takes a customer's identity document, a selfie and a liveness capture, runs the checks and returns a machine-readable decision. With our API you create a session with POST /v3/session/, send the customer to the hosted flow, and read the result from a webhook or from GET /v3/session/{session_id}/decision/.
How much does the Didit identity verification API cost per check?
A full KYC check is $0.33: ID document verification $0.15, passive liveness $0.10, face match 1:1 $0.05 and device and IP analysis $0.03. AML screening adds $0.20. Billing is per completed check from prepaid credit, and the sandbox is free on every plan.
What does an API identity verification call return?
It returns one status plus the evidence arrays: id_verifications, liveness_checks, face_matches, aml_screenings and ip_analyses for a person session. decision_trace shows whether the status came from automatic rules or from a person, and status_override records a manual change.
Is Didit an account verification API as well as an identity API?
Yes. A workflow can include a Bank Verification step, and the decision returns bank_verifications[] with a method of open_banking for a bank sign-in or account_lookup for an account check. The setup is in the Bank Verification quickstart.
Does Didit make the KYC decision for my bank?
No. We run the checks and return a decision with evidence, and a reviewer can change a status, recorded in status_override. Your bank remains the firm responsible for customer due diligence, enhanced due diligence and any suspicious activity report.
How do I know a webhook really came from Didit?
Verify X-Signature-V2, an HMAC-SHA256 of the canonical JSON body made with your destination secret, and check that X-Timestamp is within 300 seconds. Compare in constant time, accept X-Signature-V2-Previous during a rotation, and de-duplicate on event_id.
What happens if my webhook endpoint is down?
We retry twice, roughly 1 minute and 4 minutes after the first attempt, then drop the delivery. The event is still available: resend it from the destination's delivery log, or call the decision endpoint for that session_id.
Which UK documents can the flow read?
We cover 14,000+ document types across 220+ countries and territories, with capture and UI in 54 languages. Check the docs for the specific UK document you plan to accept, and add NFC chip reading at $0.15 if you want the passport chip as an extra signal.
Can I test a decline without real customer data?
Yes. Sandbox scenarios reproduce a decline, an AML hit or a session sent to review deterministically, with no PII and no billing. Read the catalog at GET /v1/sandbox/scenarios/ and pass the slug as sandbox_scenario when you create the session.
Can an AI assistant build this integration for me?
Yes. The integration prompt and the MCP server let a coding agent create workflows, sessions and webhook destinations against the same public API your own code calls.
Do I get free credit to test the API?
Sandbox testing is free and unlimited within the 500 session creates per application per 24 hours, and no session is billed in that mode. For live checks, eligible organizations on the Free plan receive $10 of monthly credit when they create their first organization with an eligible work email.
Compliance built in
Audited, certified and attested.
We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center
- Regulation encoded into your flows
Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.
- Ready for AMLR
Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.
- Tested in Spain's Treasury sandbox
Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.
- Audited, not self-declared
iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.
Your obligations · 3 regions
SOC 2 Type 2
ISO 27001
iBeta Level 1 and Level 2
EU regulator attestation
FSM youth protection
GDPR
EBA remote onboarding
MiCA compatible
FIDO Alliance member
- AMLREU AML Regulation ready
Integration · Didit MCP
Run Didit from your own AI agent
Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.
- Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
- Run investigationsAsk why a session was declined, review cases, search people and companies.
- Change rulesCreate payment rules, test them on past data and switch them on.
- Pull reportsAsk for numbers, exports or the audit log.
Didit Academy


