Skip to main content

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.

How to Add an Identity Verification API to a UK Bank in 2026

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.

Didit identity verification API for UK banking, at a glance
ItemDetail
OutcomeA UK onboarding flow that reads a document, proves liveness, matches the face, screens AML lists and returns a decision to your banking stack.
Recommended methodSession API plus hosted flow plus signed webhooks. Server to server, so the API key never reaches the browser.
PrerequisitesDidit organization and application, API key, published KYC workflow, HTTPS webhook endpoint.
First callPOST https://verification.didit.me/v3/session/
Decision you readstatus.updated webhook, or GET /v3/session/{session_id}/decision/
Price per completed checkFull KYC $0.33, AML screening $0.20, UK SMS code $0.0783, NFC add-on $0.15
SandboxFree, 500 session creates per application per 24 hours, every provider mocked
Review boundaryWe 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.
The hosted Didit verification flow on a phone, showing document capture followed by the selfie step
What the customer sees in the hosted flow: document capture, then liveness and face capture, then the 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 or sk_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_id UUID 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

  1. Get an API key, from the console or with two programmatic calls.
  2. Create a KYC workflow with the checks a UK bank needs.
  3. Create a session per customer and redirect them to the returned URL.
  4. Register a webhook destination and store its signing secret.
  5. Verify the signature, de-duplicate on event_id and answer within 5 seconds.
  6. 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

  1. Read the raw body before parsing JSON.
  2. Reject a request where the gap between now and X-Timestamp is more than 300 seconds.
  3. Recompute the HMAC-SHA256 of the canonical JSON with your destination secret and compare it in constant time against X-Signature-V2, and against X-Signature-V2-Previous when present, so a secret rotation does not drop events.
  4. De-duplicate on event_id, then apply status to your customer record.
  5. 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.

Didit Business Console session detail showing the extracted ID document data for one customer
The same session in the console: the document that was read, the extracted fields and the warnings attached to them.

Inputs and outputs

What you send and what you read back
Field or endpointWhere it appearsRequiredWhat it does
workflow_idSession create bodyYesUUID of the published workflow. The workflow type decides whether a user or a business session is created.
vendor_dataSession create bodyStrongly recommendedYour stable customer ID. Binds the session to an entity and is used for duplicate detection.
callbackSession create bodyOptionalWhere the hosted flow returns the customer. Must match an allowed domain when your application restricts them.
expected_detailsSession create bodyOptionalName, date of birth, nationality, id_country. Mismatches surface as decision warnings.
url, session_id, session_tokenSession create responseOutputThe hosted flow URL to redirect to, plus the identifiers you store.
statusWebhook and decisionOutputThe single field your onboarding state machine branches on.
id_verifications[], liveness_checks[], face_matches[], aml_screenings[], ip_analyses[]DecisionOutputPer-check evidence, always as plural arrays.
decision_trace, reviews, status_overrideDecisionOutputHow the status was reached, what a reviewer did and whether a person overrode the automatic result.

Failure cases and recovery

Errors you will see first, and what to do
SymptomMeaningRecovery
401 on verification.didit.meThe x-api-key value is wrong, malformed, revoked or expiredRe-fetch the key with the login and organization calls, or rotate it under Developers, API keys
403 on verification.didit.meNo key sent, a scoped key without that privilege, or a call from an address outside the key's IP listUse a key with the access you need; the decision endpoint requires read:sessions
400 on session createInvalid workflow_id, a callback outside the allowed domains, or session_expiration_time outside 3600 to 2419200Read the field named in the error and resend
404 on the decision routeThe session does not exist for this application, or sits outside the key's workflow and status scopeCheck the key scope before assuming the session is missing
429Rate limitedBack off for the seconds in the wait field, then retry
No webhook arrivedYour handler took longer than 5 seconds, or answered 5xx or 404We 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.

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.

AML screening result for one session in the Didit Business Console, showing list matches and scores
An AML screening result for a single session, with the matched lists and scores a reviewer works from.

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

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.

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 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.

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.