Skip to main content
The DigiLocker SDK provides a pre-built interface for retrieving government documents from your users’ DigiLocker accounts. Use the SDK when you want a faster integration with minimal code, while we handle the authentication flow and UI.

View Demo

See a live demo of the DigiLocker integration in action

How it works

The SDK integration follows a four-step process:
  1. Create a session on your backend using the Create Session endpoint
  2. Initialize the SDK on your client app with the session ID
  3. Handle the response when users complete or exit the document retrieval flow
  4. Fetch documents from your backend using the Get Document endpoint
The SDK manages the complete DigiLocker authentication flow, including OTP verification and document selection, while providing callbacks for you to handle the results.
Important: The DigiLocker SDK requires specific SDK endpoints. Use these endpoints when integrating with the SDK:

Choose your platform

Select your platform to view the integration guide:

When to use the SDK

Use the DigiLocker SDK when you need:
  • Pre-built UI for the DigiLocker flow
  • Faster implementation without building custom interfaces
  • Consistent user experience across platforms
  • Automatic handling of OTP verification and consent flow
For backend-only integration with full control over the UI, use the DigiLocker API instead.