> ## Documentation Index
> Fetch the complete documentation index at: https://developer.sandbox.co.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Integrate DigiLocker document retrieval into your application with client-side SDKs

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](https://demo.sandbox.co.in/kyc/digilocker)**
>
> 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](https://developer.sandbox.co.in/api-reference/kyc/digilocker-sdk/endpoints/create-session.md) 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](https://developer.sandbox.co.in/api-reference/kyc/digilocker-sdk/endpoints/get-document.md) endpoint

The SDK manages the complete DigiLocker authentication flow, including OTP verification and document selection, while providing callbacks for you to handle the results.

> [!NOTE]
>
> **Important**: The DigiLocker SDK requires specific SDK endpoints. Use these endpoints when integrating with the SDK:
>
> * [Create Session](https://developer.sandbox.co.in/api-reference/kyc/digilocker-sdk/endpoints/create-session.md)
> * [Get Session Status](https://developer.sandbox.co.in/api-reference/kyc/digilocker-sdk/endpoints/get-session-status.md)
> * [Get Document](https://developer.sandbox.co.in/api-reference/kyc/digilocker-sdk/endpoints/get-document.md)

## Choose your platform

Select your platform to view the integration guide:

> **[Web](https://developer.sandbox.co.in/api-reference/kyc/digilocker-sdk/getting-started/platforms/web.md)**
>
> JavaScript SDK for web applications

> **[Android](https://developer.sandbox.co.in/api-reference/kyc/digilocker-sdk/getting-started/platforms/android.md)**
>
> Native SDK for Android applications

> **[iOS](https://developer.sandbox.co.in/api-reference/kyc/digilocker-sdk/getting-started/platforms/ios.md)**
>
> Native SDK for iOS applications

> **[Flutter](https://developer.sandbox.co.in/api-reference/kyc/digilocker-sdk/getting-started/platforms/flutter.md)**
>
> Plugin for Flutter applications (iOS & Android)

## 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](https://developer.sandbox.co.in/api-reference/kyc/digilocker/endpoints/initiate_session.md) instead.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.