> ## 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.

<Card title="View Demo" icon="window" href="https://demo.sandbox.co.in/kyc/digilocker">
  See a live demo of the DigiLocker integration in action
</Card>

## How it works

The SDK integration follows a four-step process:

1. **Create a session** on your backend using the [Create Session](../endpoints/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](../endpoints/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.

<Note>
  **Important**: The DigiLocker SDK requires specific SDK endpoints. Use these endpoints when integrating with the SDK:

  * [Create Session](../endpoints/create-session)
  * [Get Session Status](../endpoints/get-session-status)
  * [Get Document](../endpoints/get-document)
</Note>

## Choose your platform

Select your platform to view the integration guide:

<CardGroup cols={2}>
  <Card title="Web" icon="laptop" href="./platforms/web">
    JavaScript SDK for web applications
  </Card>

  <Card title="Android" icon="android" href="./platforms/android">
    Native SDK for Android applications
  </Card>

  <Card title="iOS" icon="apple" href="./platforms/ios">
    Native SDK for iOS applications
  </Card>

  <Card title="Flutter" icon="flutter" href="./platforms/flutter">
    Plugin for Flutter applications (iOS & Android)
  </Card>
</CardGroup>

## 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](/api-reference/kyc/digilocker/endpoints/initiate_session) instead.
