DigiLocker - All Documents - 4. Get Document Links

These APIs enable you to retrieve an individual's documents such as Aadhaar, PAN, and driving license stored in their DigiLocker account.

There are 4 APIs you need to call to retrieve documents:

1. Generate URL API: This API generates a DigiLocker link that you can redirect the user to. Upon visiting this link, the user has the option to either grant or deny access. To share documents, the user enters their Aadhaar number and verifies it using an OTP sent to their linked mobile number. After successful verification, the user can select which documents they want to share.

2. Fetch Status API: Use this API to check whether the user has granted access to DigiLocker. It helps you verify the current status of access permissions.

3. Get Document Short URIs API: When granted access, this API retrieves short URIs for the documents. These URIs allow you to access the documents efficiently.

4. Get Document Link API: Finally, this API provides links to access the documents in the specified formats. You can retrieve the necessary documents seamlessly using these links.

Language
Authorization
Basic
base64
:
URL
Click Try It! to start a request and see the response here!