Documentation Index
Fetch the complete documentation index at: https://docs.smartcomply.com/llms.txt
Use this file to discover all available pages before exploring further.
SmartComply Web SDK
The SmartComply Web SDK enables you to rapidly and securely verify user identities and perform facial liveness checks directly in your web applications. This SDK is incredibly lightweight and mounts a beautifully animated drop-in widget right cleanly over your application layout, intercepting user webcam video and securely negotiating verifications with the SmartComply backend.Features
- Drop-in UI Modal — Clean, animated, and responsive design seamlessly overlaying via
SmartComplyFlow.open(). - Dynamic Routing — Adapts requirements dynamically, securely streaming permitted document types from your dashboard backend.
- One-Time Use Policy — Built to strictly prevent duplicate verifications ensuring maximum anti-fraud integrity.
- Nigeria & Global Identity — Fully handles Nigeria BVN/NIN validations, alongside passport mapping for International Users.
- Hardware Agnostic Liveness — Operates using raw DOM webcams and MediaRecord capturing for cross-platform device capability.
Installation
You can install the SDK via npm or yarn:./dist/smartcomply.browser.js via a CDN).
Quick Start (Recommended)
To mount the SmartComply drop-in SDK properly, provide your authenticated API Key. The widget will automatically spawn a gorgeous welcome screen to guide the end-user into copy-pasting their unique Single-Use Client ID.- Validating their provided
client_iddynamically. - Collecting and OCR processing their NIN/BVN slips or International Passports.
- Engaging their hardware camera and testing Liveness checks automatically.
- Tearing down the DOM container cleanly and gracefully returning the Promise payload.
Headless API Architecture (Advanced usage)
If you don’t want to use our modal window, you can instantiate the underlyingSmartComply Engine and orchestrate your custom Web UI natively using our methods.
Security & Architecture Limits
Client ID Redundancy Protection: Because the architecture handles zero-trust KYC policies, the activeClient ID immediately vaporizes from the backend the second the final video liveness check computes. Attempting to restart that same Client ID again via createSession will throw a CLIENT_ID_ALREADY_USED status securely blocking entry. Ensure your backend dynamically handles spinning up fresh Client IDs per-user.