Skip to main content

ISO/IEC 27001 KYC API: Secure Verification Step by Step

Run KYC under Didit's ISO/IEC 27001:2022-certified ISMS: create a workflow, open a session, verify signed webhooks, store the decision. Full KYC costs $0.33 per completed check.

ISO/IEC 27001 KYC API: Secure Verification Step by Step

Contents

In this guide

Jump to the part you need.

This guide is for teams that must run KYC inside an ISO/IEC 27001 information security management system and want the integration path, not a sales call. You will create an application key, publish a workflow, open a session, receive signed webhooks, and store the decision with the evidence your auditor will ask for. A full KYC check costs $0.33 and AML screening adds $0.20. The caveat: Didit holds ISO/IEC 27001:2022 certificate ES144068, but your own certification stays your responsibility.

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

The KYC API flow and every published unit price behind it
Step in the flowAPI call or console actionPublished price
Application and API keyBusiness Console, Developers, API keysNo separate price stated
Workflow (orchestrator, rules, branching)POST /v3/workflows/Free, included
Session creationPOST /v3/session/Billed per completed check
Full ID check (document, passive liveness, face match, device and IP)Features inside the session$0.33
ID document verification aloneFeature inside the session$0.15
Passive livenessFeature inside the session$0.10
Face match 1:1Feature inside the session$0.05
Device and IP analysisFeature inside the session$0.03
AML screeningFeature AML inside the session$0.20
Ongoing AML monitoringPer person, per year$0.07
SDKs and MCP serverClient libraries and the hosted MCP serverFree

Start free in the sandbox at business.didit.me, no sales call needed, and if your team works with an AI assistant, connect Didit through the MCP server. Every number on this page is also on the Didit pricing page.

What an API for KYC verification does, and when you need one

An API for KYC verification is a server-to-server contract. Your backend asks for a verification, the provider runs the checks against a workflow you published, and the result comes back as structured data you can store, query, and show an auditor. Nothing about the decision depends on a human opening a dashboard, unless you configure a review step.

That matters for ISO 27001 because the standard asks for repeatable, logged, auditable processing of personal data. The concrete evidence in this flow is a session creation timestamp, a signed webhook with X-Signature-V2, a stored decision with decision_trace, and retention dates you can show. A manual process with a spreadsheet is hard to evidence. An API flow with those records is straightforward.

In Didit the documented route is explicit. Create a session from your backend, send the person to the returned URL, receive the decision by webhook, and read it back with the decision endpoint. That is the path this guide uses.

AML is not a separate product here. The AML feature runs inside the same session as the identity checks, so one API KYC flow can return the document result, the liveness result and the sanctions and PEP screening in one decision. That is what people mean when they search for an AML KYC API: one call, one session, one record. Didit screens against 1,300+ AML, sanctions and PEP lists at $0.20 per check. See the AML screening product page for the list coverage.

Prerequisites

  • A Didit organization and at least one application. Sign up at business.didit.me. The Free plan includes $10 of monthly credit for the first organization created with an eligible work email for a company domain. Unused credit does not roll over, phone codes are excluded, and sandbox testing is free and unlimited.
  • An API key scoped to that application, from Developers, then API keys in the console, or from the programmatic registration endpoints below. New keys start with sk_live_ or sk_test_.
  • A published workflow containing the features you want to run. The workflow id is stable and is what you pass on every session.
  • An HTTPS endpoint on your side that accepts POST requests and can verify an HMAC signature. This is where the decision arrives.
  • A storage decision: where the decision object lives, who can read it, and how long you keep it. Didit lets you set retention from 1 month to 10 years and delete sessions on demand through the API.
  • A written scope for your ISMS that says which controls this flow supports. Your auditor maps the controls to your own Annex A. We give you the integration evidence: signed webhooks, stored decisions, retention dates and audit-log periods.

Seven steps from zero to a stored KYC decision

Step 1: Decide the checks before you write code

List the checks your policy requires and the evidence each one produces. A standard onboarding flow is OCR (document read), passive liveness, face match and AML. Each of those becomes a feature in the workflow. If your policy does not require a check, leave it out: every feature you add is a line on the invoice and a category of data you now have to govern.

Step 2: Get an application key

Fastest path is the console: log in, pick the application from the dropdown, open Developers, then API keys, and copy the primary key. Keep it server side only. You can also create the organization and the key programmatically, which is documented in API authentication:

curl -X POST https://apx.didit.me/auth/v2/programmatic/register/ -H "Content-Type: application/json" -d '{"email": "you@yourdomain.com", "password": "StrongP@ss1"}'

curl -X POST https://apx.didit.me/auth/v2/programmatic/verify-email/ -H "Content-Type: application/json" -d '{"email": "you@yourdomain.com", "code": "A3K9F2"}'
# 200 returns application.api_key (live) and sandbox_application.api_key (sandbox)

Persist the sandbox key as DIDIT_API_KEY while you build. Sandbox checks are mocked, so you can exercise every branch without spending credit. Switch to the live key only when the organization has credit.

Step 3: Create the workflow

The workflow is the artifact your auditor can read: it lists the checks, their order and their rules. Create it once, publish it, and store the returned id as WORKFLOW_ID.

curl -X POST https://verification.didit.me/v3/workflows/ -H "x-api-key: $DIDIT_API_KEY" -H "Content-Type: application/json" -d '{
  "workflow_label": "Standard KYC",
  "workflow_type": "kyc",
  "features": [
    {"feature": "OCR"},
    {"feature": "LIVENESS", "config": {"face_liveness_method": "PASSIVE"}},
    {"feature": "FACE_MATCH"},
    {"feature": "AML"}
  ]
}'

Step 4: Create the session

This is the call your backend makes for each person you verify. Pass vendor_data with your own stable identifier so the session binds to your customer record and duplicate detection works across sessions.

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"}'

Step 5: Send the person into the hosted flow

The response contains session_id, url and session_token. Redirect the browser to url, or open it in a native SDK. When the flow finishes, Didit appends ?verificationSessionId={session_id}&status={status} to your callback URL. Treat that redirect as a user experience event only. The authoritative decision arrives by webhook or from the decision endpoint, never from the query string.

Step 6: Register a webhook destination

Register the destination once per environment, then store the returned secret_shared_key as your signing secret. It is also readable later from GET /v3/webhook/destinations/{destination_uuid}/.

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.com/api/webhooks/didit","subscribed_events":["status.updated","data.updated"],"webhook_version":"v3"}'

There is no wildcard. Subscribe to each event family you actually consume. On the receiving side, read the raw body before parsing JSON. Then recompute HMAC-SHA256 over the canonical JSON with the shared secret and compare it with X-Signature-V2. Reject anything whose X-Timestamp is more than 300 seconds old, de-duplicate on event_id, and answer 2xx within 5 seconds. All of that is documented in webhooks.

A session overview with its warnings in the Didit Business Console
A session overview in the console. This is the record your webhook mirrors, including the warnings attached to the decision.

Step 7: Retrieve and store the decision

Use the webhook as the primary path and the decision endpoint as the reconciliation path, for example when a delivery was dropped or when a reviewer changed a status by hand. Branch on session_kind before you read anything else.

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

Store the whole object, not just the status. The fields that carry audit weight are status, decision_trace, reviews, status_override, created_at, expires_at and biometric_retention.deletes_at. If your auditor asks who approved a customer and on what basis, those fields support the audit record.

Expected output

Session creation returns the identifiers you need to route the user. The decision endpoint returns the full record. Both session kinds share the top-level keys, and the discriminator is session_kind, which is either user or business.

  • status is one of Approved, Declined, In Review, In Progress, Not Started, Expired, Abandoned, Kyc Expired, Resubmitted, Awaiting User. The strings are case sensitive.
  • Feature results are always plural arrays: id_verifications, liveness_checks, face_matches, aml_screenings, poa_verifications, phone_verifications, email_verifications, database_validations, ip_analyses. A feature that did not run is absent or null, never a placeholder.
  • decision_trace records how the status was reached: decided_by (manual, automatic or investigator), automatic_status, warning_counts and the terminal node.
  • linked_records summarises same-face matches, earlier verifications and networks, which is the field you want when you investigate duplicate accounts.
Document verification result for a session in the Didit Business Console
The document result behind id_verifications, shown in the console so a reviewer can compare it with the stored decision.
Liveness result for a session in the Didit Business Console
The liveness evidence behind liveness_checks, the biometric record your retention policy has to cover.

Failure cases and recovery

What breaks, what you get back, and what to do
SymptomCauseRecovery
401 on verification.didit.meThe x-api-key header is wrong, malformed, revoked or expiredRe-fetch the key with the recover-key flow, or use a key that has not expired
403 on verification.didit.meNo key header, a scoped key without access to this resource, or a call from an address outside the key's IP listUse a key with that access, managed under Developers, API keys
403 with application_deletedThe key's application was deleted minutes agoDo not retry. Use a key from an application that exists
400 on session creationInvalid workflow_id, or a callback outside the application's allowed domainsRe-read the published workflow id, or add the origin to the allowed domains
404 on a session routeThe session sits outside the scoped key's workflows or statusesUse a key whose limits include that session
429Rate limitThe response carries a wait field in seconds. Back off, then retry
Webhook never arrivesYour handler answered 5xx or 404, or took longer than 5 secondsDidit retries twice, after about 1 and 4 minutes, then drops the delivery. Resend it from the destination's delivery log, and reconcile with the decision endpoint
Status looks final but the user is waitingSession in Awaiting User or In ProgressNothing to fix. The user still has an open step or the review queue holds it

Inputs and outputs

The fields that matter for a KYC session and its decision
FieldDirectionRequiredWhat it does
workflow_idInputYesSelects the published workflow, which decides whether a user or business session is created
vendor_dataInputRecommendedYour stable identifier for the person. Binds the session to your record and feeds duplicate detection
callbackInputNoWhere the hosted flow redirects at the end. Must be on an allowed domain if the application has any
metadataInputNoArbitrary JSON echoed in responses and webhooks, never shown to the user
expected_detailsInputNoName, date of birth, nationality, document types you expect. Mismatches surface as decision warnings
session_expiration_timeInputNoSeconds the link stays valid, between 3600 and 2419200, overriding the workflow setting
session_id, url, session_tokenOutputAlwaysCreated by POST /v3/session/; the URL is what you send the user to
session_kindOutputAlwaysBranch on this before reading any feature array
status and decision_traceOutputAlwaysThe verdict and the record of how it was reached
aml_screeningsOutputWhen AML runsHits, list names and scores from the screening step
biometric_retentionOutputAlwaysJurisdictions and the date live biometric data is deleted

You pay per completed check from prepaid credit. Creating a session does not by itself charge you, and sandbox sessions never do, because every sandbox check is mocked. The docs pricing page lists the small set of no-match database lookups and retries that are billable.

The paid units in a KYC flow are the checks themselves: $0.33 for the full ID check (document $0.15, passive liveness $0.10, face match $0.05, device and IP $0.03), $0.20 for AML screening, $0.07 per person per year for ongoing AML monitoring. Workflow orchestration, the SDKs and the MCP server are listed as free. We do not state a separate price here for webhook delivery or decision readback; check the live price feed for current billing treatment.

Review is where the boundary sits. Your workflow rules decide automatically, and decision_trace records whether the outcome was automatic, manual or taken by the Investigator. A person in the console can change a status, which sets status_override and leaves the original automatic_status visible. Review work is configured in your workflow and recorded in reviews; this guide does not state a separate review fee. Didit does not set your risk appetite and does not approve your policy: you decide which checks run, what triggers In Review, and who may override. Didit runs the rules and keeps the record.

Worked cost example

Three numbers matter in the example. Usage charges are the per-check list prices. Plan credit is the monthly allowance applied to usage first; it does not roll over. The monthly plan fee is charged separately. The calculation below shows usage before credit, then the cash effect.

Take 20,000 completed KYC checks a month, with AML screening on every one, at list price.

  • Full ID check: 20,000 x $0.33 = $6,600.00
  • AML screening: 20,000 x $0.20 = $4,000.00
  • Monthly list total: $6,600.00 + $4,000.00 = $10,600.00

The same volume on the Scale plan, where every Didit price carries a 10% discount:

  • Full ID check: 20,000 x $0.297 = $5,940.00
  • AML screening: 20,000 x $0.18 = $3,600.00
  • Usage before credit: $5,940.00 + $3,600.00 = $9,540.00
  • Less Scale monthly credit: $9,540.00 - $350.00 = $9,190.00
  • Plus the $299.00 monthly plan fee: $9,190.00 + $299.00 = $9,489.00

The effective cash cost is $9,489.00. The $350.00 credit does not roll over. If you monitor every verified person for a full year, add 20,000 x $0.07 = $1,400.00 of ongoing AML monitoring. Growth gives 4% off every Didit price, with a $99.00 monthly fee and $115.00 of monthly credit. Carrier charges for phone codes pass through at cost and are the only line the plan discount does not apply to. Check current plan terms on the pricing page before you quote anything internally.

How Didit billing works: credits, auto-recharge and volume discounts
How credits, auto-recharge and volume discounts work, which is the part auditors ask about when they see per-check billing.

What Didit gives your ISO/IEC 27001 evidence file

Didit maintains a certified information security management system covering the design, development and operation of the identity verification service, certified to ISO/IEC 27001:2022 under certificate ES144068. Certificate excerpts are available on request. That is the supplier side of your control set; the full list, with dates and how to obtain each report, is in the certifications documentation.

  • SOC 2 Type 2, audited against the AICPA Trust Services Criteria for an observation period of March 9 to July 1, 2026, issued July 2026. The report is shared with enterprise customers under NDA.
  • GDPR: Didit acts as data processor and you remain the controller. The DPA and the TOMs are available from privacy@didit.me.
  • iBeta Level 1 and Level 2 under ISO 30107-3 for presentation attack detection, covering printed photos, screen replays and 3D masks.
  • EBA and MiCA: an independent legal opinion confirms the remote onboarding meets the EBA Remote Customer Onboarding Guidelines (EBA/GL/2022/15) and is compatible with the EU AML Single Rulebook and MiCA.
  • Government validation: Spain's Treasury, SEPBLAC, Banco de España and CNMV concluded that Didit's NFC plus active liveness flow offers security equivalent to or greater than in-person verification. The report is public at tesoro.es.
  • Controls you can cite directly: TLS 1.3 in transit and AES-256 at rest, role-based access control, complete audit logs with timestamps, user ids and IP addresses, 24/7 security monitoring, EU processing and storage on AWS by default with in-country residency available on Enterprise contracts.
  • Audit log retention by plan: 30 days on Free, 1 year on Growth, 3 years on Scale, and whatever the contract sets on Enterprise, with export on Scale and Enterprise.
  • Configurable retention from 1 month to 10 years, with on-demand session deletion through the API, and a finite expiry on any biometric template you choose to keep after a session deletion.

4,000+ companies are active Didit customers across 220+ countries and territories. The security and compliance detail, including the encryption and retention model, is documented at Security and compliance. If you are moving from another provider, the switch guide covers the migration path, and the full end-to-end recipe lives in the integration prompt.

Sources

Next step: open business.didit.me, create an organization with your work email, and run the seven steps above against the sandbox. No sales call, and no credit spent until you switch to the live key.

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

An API for KYC is a server-to-server interface that starts an identity verification and returns a structured decision. With Didit you POST to /v3/session/ with a workflow id, redirect the user to the returned URL, and receive the result by signed webhook or from GET /v3/session/{session_id}/decision/. Pricing is per completed check, from $0.33 for a full ID check.

How do I add KYC verification to my app?

After account and API key setup, four calls do it: create a workflow, create a session, register a webhook destination, then read the decision. The workflow defines which checks run, the session binds a specific person to your internal id through vendor_data, and the webhook delivers the outcome. You can build and test the whole thing in the sandbox for free before spending credit.

Is Didit ISO 27001 certified?

Yes. Didit is certified to ISO/IEC 27001:2022 under certificate ES144068, and the certified management system covers the design, development and operation of the identity verification service. Certificate excerpts are available on request, and the full certification list with dates is published in Didit's documentation.

Does using an ISO 27001 certified KYC API make my company compliant?

No. The certification covers the provider's management system, not yours. What it gives you is a supplier whose controls are independently audited, plus evidence you can file under your own supplier and cryptography controls. Your certification still depends on your own scope, risk assessment, policies, training and internal audit.

Is there an AML KYC API?

Yes. With Didit, AML screening is a feature inside the same session as the identity checks, not a separate integration. Add AML to the workflow features and the decision returns hits in the aml_screenings array, screened against 1,300+ AML, sanctions and PEP lists at $0.20 per check. Ongoing monitoring for verified people is $0.07 per person per year.

What does a KYC API cost?

A full ID check costs $0.33 and is made of four published lines: document $0.15, passive liveness $0.10, face match $0.05, device and IP $0.03. AML screening is $0.20. The Free plan includes $10 of monthly credit for the first organization created with an eligible work email for a company domain; Growth is $99 a month with 4% off Didit prices, Scale is $299 a month with 10% off, and Enterprise starts at $15,000 a year.

What happens if my webhook endpoint fails?

Didit retries twice, after about 1 and 4 minutes, then drops the delivery. You can resend it from the destination's delivery log, and you should reconcile with GET /v3/session/{session_id}/decision/ so a missed delivery never leaves a customer in limbo. Handlers must answer within 5 seconds and de-duplicate on event_id.

How long does Didit keep audit logs and verification data?

Audit logs are kept 30 days on Free, 1 year on Growth and 3 years on Scale, with the Enterprise contract setting its own period, and export available on Scale and Enterprise. Verification data retention is configurable from 1 month to 10 years, and sessions can be deleted on demand through the API.

Where is my verification data stored?

By default data is processed and stored in the EU on AWS, encrypted in transit with TLS 1.3 and at rest with AES-256. Enterprise contracts can enable in-country processing with local data residency. Didit acts as data processor while you remain the controller, and the DPA and TOMs are available from privacy@didit.me.

Do I need a sales call to start?

No. You can create an organization, publish a workflow and run sandbox sessions from the self-serve console, and the programmatic registration endpoints create an organization and keys without a human on our side. Talk to sales only if you need an Enterprise contract, in-country residency or a specific certification report.

Can I switch to Didit from another KYC provider?

Yes. The integration surface is one endpoint for sessions plus a webhook destination, so the swap is usually a matter of pointing your existing verification call at Didit and mapping the decision object into your own schema. The switch guide walks through the mapping.

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.