1
Initiate Session
To begin the DigiLocker workflow, your application must first initiate a session
using the Initiate Session endpoint.This endpoint initializes the consent process and returns essential details for user authorization.
When the session is created successfully, you’ll receive:
cURL Request
cURL Request
A unique identifier used to track and fetch status for this specific DigiLocker consent session.
The URL where the user should be redirected to grant consent for sharing their DigiLocker documents.
2
Redirect the User to DigiLocker
Once the session is initiated, redirect the user to the authorization_url.At DigiLocker, the user will:
- Authenticate using their DigiLocker account
- Review permissions
- Grant consent for your application to access their documents
3
Handle Session Success and Failure
You can determine whether the user consented by periodically call the
Session Status API using the
Session Status API using the
session_id.cURL Request
cURL Request
4
Fetch Documents
Once the session status is succeeded, you may proceed to retrieve the user’s DigiLocker documents using the Fetch Document API.
cURL Request
cURL Request