Digilocker

The DigiLocker API provides a secure and standardized interface for accessing and managing digital documents issued by various government agencies and organizations in India.

DigiLocker Process Flow

Step 1: Validate whether the Aadhaar number or mobile number is already registered on DigiLocker.

If an account exists, pass SIGNIN in the user key to generate the URL.
If no account exists, pass SIGNUP in the user key to generate the URL.

For SIGNUP, the generated URL will prompt the user to create a DigiLocker account using Aadhaar or mobile. For SIGNIN, the user can directly log in using their Aadhaar number or mobile number, followed by PIN or OTP authentication.

Step 2: After successful authorization, the user will select the required document (PAN, Aadhaar, or Appaar ID) from the list. They will then be redirected to the callback URL provided in the Generate URL API.

Step 3: After redirection, call the Verification Status API to confirm whether the user has completed the authorization process.

Possible status values:

PENDING: User has not completed the verification process.

AUTHORIZED: User has logged in and provided consent.

EXPIRED: The link expired before the process was completed.

CONSENT_DENIED: User rejected the consent request.

Step 4: If the verification status API returns AUTHORIZED, the user can fetch PAN or Driving Licence details via the Fetch Documents API.