Streamline Your Onboarding: Integrating ID Verification with Didit's JS SDK
Integrating robust ID verification doesn't have to be complex. Didit's JavaScript SDK simplifies the process, allowing developers to embed powerful identity checks directly into their web applications with minimal code.

Seamless IntegrationDidit's JavaScript SDK provides a straightforward way to embed comprehensive ID verification flows directly into your web application, enhancing user experience and reducing friction.
Configurable WorkflowsDesign custom verification journeys in the Didit Business Console, then trigger them programmatically via the SDK, including steps like ID Document Scan, Passive Liveness, and 1:1 Face Match.
Real-time Results & WebhooksReceive instant updates on verification outcomes through webhooks, enabling automated decision-making and efficient processing of user identities.
Developer-First ApproachDidit offers a modular architecture, clean APIs, and a free core KYC tier, making advanced identity verification accessible and cost-effective for businesses of all sizes.
The Challenge of Modern ID Verification
In today's digital landscape, verifying user identity is paramount for security, compliance, and fraud prevention. Whether you're a fintech startup, an online marketplace, or a gaming platform, ensuring that your users are who they claim to be is non-negotiable. However, implementing robust ID verification (IDV) can be a significant hurdle. It often involves complex document scanning, liveness detection, and data extraction, all while maintaining a smooth user experience. Traditional IDV solutions can be rigid, expensive, and require extensive development resources, leading to high abandonment rates and increased operational costs.
The need for a flexible, developer-friendly solution is clear. Businesses require a way to integrate advanced IDV capabilities directly into their applications without reinventing the wheel or compromising on security. This is where a powerful SDK, like Didit's JavaScript SDK, becomes invaluable, abstracting away the complexities and providing a clean interface for integration.
Introducing Didit's JavaScript SDK for ID Verification
Didit's JavaScript SDK is designed to simplify the integration of comprehensive identity verification workflows into any web application. Instead of building intricate frontend components for document capture, liveness checks, and data submission, developers can leverage Didit's pre-built, customizable UI and robust backend processing. This allows you to focus on your core product while Didit handles the intricacies of ID Verification, including OCR, MRZ, and barcode scanning for various ID documents.
The SDK acts as a bridge between your application and Didit's powerful identity platform. It enables you to initiate verification sessions, guide users through the process, and receive real-time feedback, all within a familiar JavaScript environment. This approach significantly reduces development time and effort, making it possible to deploy a world-class IDV solution in a fraction of the time it would take to build one from scratch.
How Didit's JS SDK Streamlines Integration
Integrating Didit's ID Verification with the JavaScript SDK follows a logical and efficient process, empowering developers with both simplicity and control.
1. Configure Your Verification Workflow
Before writing any code, your first step is to define your desired verification journey in the Didit Business Console. This no-code editor allows you to drag and drop various identity checks to create a custom workflow tailored to your needs. For instance, you might combine Didit's ID Verification (OCR, MRZ, barcodes) with Passive & Active Liveness detection and 1:1 Face Match to ensure the document is genuine and belongs to the presenter. You can also add AML Screening for compliance or Proof of Address verification. Each configured workflow receives a unique workflow_id, which you'll use in your SDK integration.
2. Generate a Verification Session
Once your workflow is ready, you'll need to create a unique verification session for each user. This can be done either directly from the Didit Business Console (for testing or manual processes) or, more commonly for programmatic integration, via a single API call to Didit's /v3/session/ endpoint. This API call generates a session ID and a unique verification URL. This URL is crucial as it links to the Didit-hosted verification flow that your SDK will embed.
Although the SDK directly initiates the flow, the underlying session creation via API ensures all parameters, like vendor_data (your internal user ID) and a callback URL for webhooks, are properly set up. This ensures a seamless connection between your system and Didit's.
3. Embed the Verification Flow with the SDK
The core of the JS SDK integration involves embedding the Didit-hosted verification UI into your web page. After obtaining the verification URL (or directly initiating a session via the SDK's methods), the SDK takes over. It handles the display of the user interface, guides the user through document capture, liveness checks, and any other steps defined in your workflow. The user never leaves your domain, maintaining a consistent brand experience.
The SDK provides methods to initialize the verification flow, listen for events (e.g., flow completion, errors), and customize certain UI elements to match your brand's look and feel. This minimizes the frontend development required on your end, offering a fully functional and secure verification experience out-of-the-box.
4. Process Real-time Results via Webhooks
As the user progresses through the verification flow, and upon completion, Didit sends automated updates to your configured webhook URL. This is a critical component for automating your backend processes. When a user successfully completes the ID Verification, you'll receive a webhook payload containing the detailed verification report, including the overall status (e.g., 'Approved', 'Declined', 'In Review'), extracted document data, and results from checks like Passive & Active Liveness and 1:1 Face Match.
This real-time feedback allows your system to make immediate decisions, such as granting access, triggering further review, or updating user profiles, without constant polling. This asynchronous communication ensures efficiency and scalability for your identity verification processes.
How Didit Helps
Didit stands out as the AI-native, developer-first identity platform, making ID verification accessible and powerful. Our modular architecture allows businesses to compose verification workflows precisely to their needs, rather than being forced into rigid solutions. With Didit's JavaScript SDK, you can effortlessly integrate comprehensive ID Verification (OCR, MRZ, barcodes), Passive & Active Liveness detection, and 1:1 Face Match directly into your web applications. This not only enhances security and compliance but also drastically improves the user onboarding experience by providing a smooth, intuitive flow.
Didit's advantages are clear: we offer Free Core KYC, a truly modular architecture for plug-and-play identity checks, and an AI-native approach that constantly improves accuracy and speed. There are no setup fees, and our pay-per-successful-check model ensures cost-effectiveness. Whether you need to verify age with our privacy-preserving Age Estimation, conduct AML Screening & Monitoring, or perform high-security NFC Verification, Didit provides the building blocks for automating trust globally and at scale.
Ready to Get Started?
Ready to see Didit in action? Get a free demo today.
Start verifying identities for free with Didit's free tier.