Know Your Customer API: A Practical Guide for 2026
Learn how a know your customer API works, what features matter, and how to evaluate vendors for onboarding, compliance, and identity verification in 2026.

A customer uploads an identity document, takes a selfie, and waits. Your compliance team then checks the document, compares the face, searches sanctions and PEP lists, and decides whether the account can open. Without a Know Your Customer API, that workflow often becomes a queue of manual reviews, inconsistent decisions, and frustrated legitimate users.
A modern KYC API turns identity verification into an integrated, auditable workflow. It can also expose problems that vendor demos rarely show, especially poor document quality, repeated liveness failures, and the need to monitor customers after onboarding.
What a Know Your Customer API Does
A customer abandons an onboarding flow after a blurry passport image fails twice, while a compliance analyst receives no usable reason for the failure. That scenario exposes what a Know Your Customer API must handle in production: identity evidence, decision logic, retry limits, and an audit trail.
KYC, or know your customer, verifies a customer's identity and assesses relevant risk before a regulated service is provided. An API delivers that capability through software, so your team does not need to build document analysis, biometric checks, screening connections, and review tools from scratch.
Practical definition: A KYC API is the compliance layer that lets a product team verify who its customer is without creating an in-house document forensics team.
Most providers expose REST endpoints that accept customer information, document images, and biometric inputs. Responses usually return structured fields such as extracted name, date of birth, document number, document status, liveness outcome, screening results, risk flags, and a decision or confidence signal. Select a provider that exposes the underlying reasons and evidence, not only a pass or fail result.
A typical workflow includes these stages:
- Collect: Your application captures the identity document and required customer data.
- Inspect: The service reads the document, evaluates its structure, and checks authenticity signals.
- Compare: A selfie or video is compared with the document portrait, often with liveness detection.
- Screen: The customer is checked against sanctions, PEP, and other relevant risk sources.
- Decide: Your rules engine approves, rejects, or sends the case to manual review.
- Record: The system retains evidence, reasons, timestamps, and reviewer actions for audits.
The value is consistent execution. A well-designed identity verification process applies the same initial checks to each customer and directs human attention to ambiguous or higher-risk cases. Review the guidance on Identity verification when designing workflows that combine identity checks with background screening.
KYC also extends beyond account opening. Your vendor should support repeat checks when customer details change, risk signals emerge, or policy requires ongoing monitoring. Ask how it handles poor images, how many retries it permits, what happens after retry exhaustion, and whether those events reach your case-management system.
The market is a substantial technology category. Mordor Intelligence estimates USD 6.73 billion in 2025, projecting USD 16.31 billion by 2031 and a 15.88% CAGR in Mordor Intelligence's KYC market analysis. Its analysis reports that cloud deployment supports 64.60% of identity-verification workloads, reinforcing the role of API-based services in high-volume onboarding.
The Document Pipeline Behind Every KYC API
A provider may present one “verify” button, but production verification depends on several distinct operations. If one stage fails without an alert, the final decision can look authoritative while resting on incomplete or incorrect input.

Step 1 begins with OCR
Optical character recognition, or OCR, converts a document image into machine-readable text. For a passport, the service may extract the visual fields and machine-readable zone, often called the MRZ. OCR is useful, but it doesn't prove that the document is authentic. It only tells you what the system can read.
A camera image with glare, blur, or a missing edge can produce plausible but incorrect text. Your integration should therefore receive image-quality signals and field-level confidence, not just a completed JSON object.
Step 2 confirms document type
Classification determines whether the uploaded file is a passport, national identity card, driving licence, utility bill, or something else. It should also identify unsuitable inputs such as screenshots, duplicate pages, or unsupported document variants.
This stage matters because the validation rules depend on document type and issuing jurisdiction. A passport workflow can't safely apply the same assumptions to a bank statement or residence permit.
Step 3 tests authenticity
Validation checks document structure and security indicators. Depending on the document and provider, this can include MRZ checksum validation, template comparison, hologram analysis, image-forensics signals, and checks against known issuing-country patterns.
For example, a passport scan may pass OCR but fail authenticity checks because expected security layers or visual patterns aren't present. OCR alone won't reliably identify that problem.
Step 4 returns normalized data and risk signals
The final stage combines extracted identity fields with biometric comparison, liveness, and screening results. Your application should receive normalized data, decision reasons, confidence indicators, and enough evidence to support a review or audit.
For teams comparing broader intelligent document processing platforms, the important distinction is whether the product extracts information only or also supports classification, validation, and workflow routing. Those capabilities determine whether the KYC API becomes a usable operating layer or merely another OCR endpoint.
A practical passport flow therefore looks like this:
- Capture: The customer submits a passport image and selfie.
- Read: OCR extracts the visual fields and MRZ.
- Classify: The service confirms the document type and supported variant.
- Validate: Authenticity checks identify tampering, duplication, or missing signals.
- Match: Face comparison and liveness assess whether the customer is present.
- Screen: The identity is checked against relevant risk lists.
- Respond: The API returns a structured result for approval, decline, or review.
Core Features That Separate Production APIs from Demos
Feature lists are easy to copy. Production resilience is not. A KYC API should be evaluated against the failure modes your users and compliance team will encounter, not the number of logos on a marketing page.
Document coverage comes first. Confirm support for the passports, national IDs, driving licences, residence permits, and supplementary documents used in your actual markets. A thin country library creates manual-review work and forces customers into unsupported fallback paths.
Liveness needs scrutiny. Active liveness asks the customer to perform an action. Passive liveness attempts to assess presence with less interaction. The right choice depends on risk, device conditions, accessibility, and conversion priorities. Ask for independent testing, demographic evaluation, retry behavior, and clear rejection reasons.
Screening must be configurable. Sanctions and PEP screening should support thresholds, matching rules, review queues, and evidence retention. Adverse media can add useful context, but it should not become an opaque automatic-decline mechanism without a clear policy.
Forgery detection sits beyond OCR. A system should distinguish readable text from authentic identity evidence. Standards alignment and independent testing matter more than a vendor's headline accuracy claim.
Data governance is equally important. Procurement teams should verify GDPR controls, deletion rights, encryption, access management, data residency, incident response, and relevant certifications. A technically strong API can still fail procurement if your legal or security team can't approve its data handling.
| Feature | Category | Risk If Missing |
|---|---|---|
| Regional document coverage | Must-have | Unsupported customers are pushed into manual review or abandonment |
| Liveness with retry controls | Must-have | Spoofing exposure and avoidable user friction |
| Sanctions and PEP screening | Must-have | Incomplete compliance controls |
| Authenticity and tamper checks | Must-have | OCR may accept altered or non-genuine documents |
| GDPR deletion and residency controls | Must-have | Procurement, privacy, and regulatory blockers |
| Ongoing rescreening | Nice-to-have becoming expected | One-time decisions can become outdated |
| Reusable digital identity | Nice-to-have | Customers may repeat the same verification unnecessarily |
| Transaction monitoring | Nice-to-have for a KYC API | Risk detection remains separated from identity context |
The European regulatory direction reinforces the need for adaptable systems. The EU adopted the 6th Anti-Money Laundering Directive on May 30, 2024, identifying 22 predicate offences and giving member states 24 months to transpose the rules into national law, as explained in Moody's overview of 6AMLD. Your vendor should make policy changes, evidence collection, and jurisdictional variation manageable rather than hard-coded.
Integration Patterns Endpoints Payloads and Webhooks
A CTO usually needs three interaction surfaces, not one.
The synchronous verification endpoint supports live onboarding. Your application sends identity fields and document inputs, then waits for a decision or an intermediate status. This works when the checks complete quickly and the user is still in the onboarding session.
The asynchronous submission endpoint handles heavier workflows. It accepts the case, returns a case or job identifier, and lets your application continue without holding the request open. Manual review, complex screening, or an external data-source delay belongs here.
Webhooks deliver status changes to your system. A provider may notify you when screening finishes, a reviewer changes a decision, a document needs replacement, or a customer requires reverification.

Conceptually, request payloads contain:
- Identity fields: Name, date of birth, address, nationality, and customer reference.
- Document inputs: Images or files, commonly sent as multipart data or encoded content.
- Biometric inputs: Selfie or video data, with consent and capture metadata.
- Control data: Jurisdiction, workflow type, correlation ID, and idempotency key.
Responses should be structured rather than reduced to “pass” or “fail.” Look for extracted fields, document status, confidence signals, risk flags, reason codes, review status, and a link or reference for authorized reviewers.
Webhook reliability deserves the same attention as endpoint design. Require HMAC signing so your system can verify the sender. Use idempotency keys and replay protection so duplicate events don't create duplicate accounts or repeat decisions. Define retry semantics with exponential backoff, and test what happens when your endpoint or the vendor's upstream screening source is unavailable.
For teams building adjacent extraction workflows, an API for data extraction can help normalize document inputs before they enter downstream compliance logic.
Accuracy Latency and Security Benchmarks That Matter
A customer submits a valid identity document from an older phone, under poor lighting, with a damaged corner. The demo flow passes clean images. Production must handle this case without exhausting retries or sending every uncertain result to manual review.
The U.S. General Services Administration found that some digital identity verification offerings had a false rejection rate above 50%, meaning legitimate users with valid identification could be blocked more than half the time, according to Nextgov's coverage of GSA testing. Treat that finding as a procurement warning. Require demographic testing, image-quality controls, threshold configuration, and a review path that explains why a decision failed.
Face matching needs the same discipline. Industry results cited in a technical overview of forged-document detection place face verification around 99.7% to 99.9%, with false match rates near one in a million comparisons. Use these figures as benchmark context, not as a promise for your users, devices, or workflow.
Measure the full decision path
Track p50 and p95 latency for each stage, then measure the complete customer journey. Document extraction may finish quickly while liveness, sanctions screening, manual review, or webhook delivery leaves the user waiting.
Retry behavior belongs in the benchmark. Test how many attempts users receive, which image-quality failures are recoverable, and whether repeated submissions create new charges or duplicate reviews. A provider that reports high accuracy but gives poor capture guidance can still produce abandonment.
Security controls should cover encryption in transit and at rest, regional storage, role-based access, audit logs, deletion workflows, and webhook signing. SOC 2 Type II or ISO 27001 can support diligence, but neither replaces an architecture review, contract review, or verification of continuous KYC controls.
| Metric | Minimum Target | Source | Business Impact |
|---|---|---|---|
| False rejection | Keep below the level that blocks legitimate users | GSA testing | Protects conversion and reduces avoidable manual review |
| Face verification | Compare against independent results around 99.7% to 99.9% | NIST FRVT-style results | Reduces impersonation exposure while supporting automation |
| False match rate | Evaluate against results near one in a million comparisons | NIST FRVT-style results | Frames residual biometric risk |
| Latency | Define p50 and p95 targets for each workflow | Your production test plan | Separates API speed from end-to-end customer wait time |
| Security | Require documented encryption, access, residency, deletion, and signing controls | Your security assessment | Supports approval and audit defensibility |
Use a structured method to calculate error rate across fields, decisions, retries, and manual escalations. If company-data tools sit beside identity checks, compare Fetchin with other providers to distinguish API breadth from the evidence your compliance workflow requires.
Selection Criteria and Vendor Evaluation Checklist
Vendor selection should produce a defensible decision matrix, not a preference based on the smoothest demo. Score every provider against your real markets, document mix, risk policy, and operating model.
| Evaluation area | Questions to ask | Evidence to request |
|---|---|---|
| Document and biometric coverage | Does the provider support every document type and jurisdiction you serve? | Coverage list, test credentials, rejection examples |
| Accuracy | Are results independently evaluated across relevant demographics and capture conditions? | Benchmark reports and methodology |
| Compliance | Does the vendor support GDPR, regional residency, audit evidence, and deletion? | Certifications, data-processing terms, control documentation |
| Integration | Are SDKs stable, webhooks signed, and sandbox cases realistic? | Sandbox access, retry tests, API documentation |
| Security | How are images, biometric data, credentials, and reviewer access protected? | Architecture review and security questionnaire |
| Commercial terms | How are retries, resubmissions, screening, and manual review charged? | Complete pricing schedule and SLA |
| Continuous KYC | Can risk events trigger rescreening and reverification? | Workflow demonstration and event catalogue |

Request sample rejection reasons before signing. Test webhook retries, duplicate events, upstream outages, and manual-review escalation. Review the SLA language for actual remedies, not just an availability statement, and confirm that extracted data and audit evidence can be exported if you change vendors.
Your compliance team should also decide how KYC connects with KYB, beneficial ownership, transaction monitoring, and enhanced due diligence. A practical AML guide for web3 is useful context when your product serves digital assets or other higher-risk environments, but your own risk policy must determine the final controls.
Common Pitfalls Document Quality Retry Friction and Continuous KYC
The most expensive KYC failures often begin before the identity check. A customer photographs an ID under glare, crops an edge, or submits a compressed image. The API then asks for another attempt without explaining the underlying problem.
One industry source attributes approximately 36% of incomplete identity-verification sessions to document-quality issues, with 21% linked to liveness retry exhaustion and 17% to address-verification mismatches, according to Zyphe's digital identity verification trends. These figures make retry design a conversion issue, not a minor interface detail.
Document quality needs active handling
Demand image-quality scoring before expensive downstream checks. Give users real-time capture guidance, identify glare or missing edges, and route borderline cases to a controlled review path instead of forcing endless resubmission.
Manual entry creates another avoidable risk. A review covering 93 studies found an approximate error rate of 0.29% per field, or about 29 errors per 10,000 fields, as summarized in this OCR accuracy review. At scale, a small field-level error rate can alter a name, address, or document number.
Retry budgets should be explicit
Aggressive liveness settings may protect against advanced attacks, but they can also reject legitimate customers using older devices or poor lighting. Ask vendors how many retries a session permits, which thresholds are configurable, and whether passive liveness or human review provides a fallback.
One-time KYC is no longer enough
Customer risk changes after onboarding. Sanctions, PEP status, adverse media, ownership, and customer behavior can change, so continuous KYC should use event-driven rescreening, configurable thresholds, and auditable reverification records.
The EU's 6AMLD package, adopted on May 30, 2024, broadens the predicate-offence framework and requires national transposition within 24 months, as covered earlier through the linked Moody's analysis. The practical requirement is straightforward. Choose an API that can absorb policy changes and ongoing monitoring without rebuilding the onboarding flow.

Real-World KYC Flows and Where Matil.ai Fits
A retail onboarding flow starts with a passport, selfie, and customer details. The KYC API reads the document, checks authenticity, evaluates liveness, compares the face, screens the identity, and returns a decision or routes the case to review. The product team should measure not only approval accuracy, but also image-quality failures, retry causes, reviewer workload, and the quality of the audit record.
Periodic review works differently. An existing customer may trigger a new check because a relevant risk source changes or the customer's profile changes. Your orchestration layer should receive an event, retrieve the latest screening result, and route only the profiles requiring deeper verification. This is more efficient than repeatedly subjecting every customer to the same full workflow.
Corporate KYC creates a different problem. A business may submit certificates of incorporation, utility bills, ownership records, bank statements, and notarized translations in mixed PDF and image formats. The identity-verification API may handle individual identity, biometrics, sanctions screening, entity resolution, and UBO mapping, but it shouldn't be expected to interpret every unstructured document perfectly.
That is where a document-extraction layer fits. Matil.ai combines OCR, document classification, validation, and workflow orchestration through an API. It supports identity-document extraction for KYC workflows, as well as document types such as invoices, payslips, bank statements, receipts, contracts, Bills of Lading, and customs declarations. The platform provides pre-trained models, flexible data structures, JSON output, document splitting, and workflow automation. Its stated enterprise controls include GDPR, ISO 27001, AICPA SOC, and zero data retention.
The boundary should remain clear:
- Document extraction: Reads mixed files, identifies document types, extracts fields, and validates structure.
- KYC verification: Performs identity, biometric, liveness, sanctions, PEP, and risk checks.
- Your orchestration layer: Applies policy, manages exceptions, records decisions, and triggers continuous review.
A useful production test starts with your regulated markets and real capture conditions. Then assess independent accuracy evidence, rejection reasons, webhook behavior, data residency, upstream outage handling, and pricing during retry-heavy periods. SDK quality and sandbox responsiveness matter, but they shouldn't outweigh coverage, evidence, security, and failure recovery.
Choose the vendor whose failure modes your operations team can absorb.
If a workflow contains mostly clean identity images, a focused KYC provider may be enough. If it includes large volumes of PDFs, scans, supplementary evidence, and non-standard documents, pairing a KYC API with a specialized extraction layer can keep responsibilities clear and reduce manual handling.
Matil offers API-based extraction for identity documents and broader document workflows, combining OCR, classification, validation, and orchestration with enterprise security controls. If your KYC process is slowed by mixed PDFs, scans, supplementary evidence, or manual field entry, visit Matil to evaluate how its extraction layer can connect to your verification workflow.


