Skip to main content
GET
Fetch a consented document

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

session_id
string
required

session_id from the initiate-session response

Pattern: ^[A-Za-z0-9_-]{8,64}$
doc_type
enum<string>
required

Document type to retrieve, from those consented to

Available options:
aadhaar,
pan,
driving_license

Response

Successful Response

Response to fetching a consented document.

code
integer
required

HTTP status code of the response

timestamp
integer
required

Unix millisecond timestamp of when the response was produced

transaction_id
string
required

Identifier for this call. Quote it when raising a query about one

data
Document · object
required

The files DigiLocker issued for a consented document type.

The links are short-lived, so download the files while they are valid. They come as the issuer signed them, so a signature check on one still verifies.