Fetch PAN PDF / image from DigiLocker

Fetches the user's PAN document (PDF or image) from DigiLocker using a short-lived reference_key. Returns the file as binary (PDF or image).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
^[0-9a-zA-Z_\-]+$

Short-lived reference key obtained from /digilocker/get_reference.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

401

Unauthorized - invalid API key or client id.

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/pdf
image/png
image/jpeg
application/json