Skip to main content
POST
Verify DigiLocker

DigiLocker Verification

DigiLocker verification allows users to share their Aadhaar and PAN documents directly from the government DigiLocker service. This is a more user-friendly alternative to Aadhaar OTP verification.

Flow Overview

  1. Initialize - Get a DigiLocker consent URL
  2. User Consent - User opens URL and grants consent in DigiLocker app
  3. Check Status - Poll status until verification completes

Initialize DigiLocker Session

redirectUrl
string
Optional URL to redirect user after DigiLocker consent
deviceId
string
Device fingerprint/ID for FIU compliance. Must be captured from the client device.

Request

Response

Direct the user to the url to complete DigiLocker consent. The session expires in 10 minutes.

Check DigiLocker Status

Poll this endpoint to check if the user has completed DigiLocker consent.

Request

Response (Verified)

Response (Pending)

Response (Expired)

Status Values

Benefits Over Aadhaar OTP

Errors