DigiLocker files
curl --request POST \
--url https://api.privue.ai/digilocker/v1/files.1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"request_id": "652523835a9f9000112b1ee6",
"file_ids": [
"in.gov.transport-DRVLC-TN8920000007545"
]
}
'import requests
url = "https://api.privue.ai/digilocker/v1/files.1"
payload = {
"request_id": "652523835a9f9000112b1ee6",
"file_ids": ["in.gov.transport-DRVLC-TN8920000007545"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
request_id: '652523835a9f9000112b1ee6',
file_ids: ['in.gov.transport-DRVLC-TN8920000007545']
})
};
fetch('https://api.privue.ai/digilocker/v1/files.1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"details": {
"files": [
{
"name": "Driving License",
"type": "file",
"size": "",
"date": "04/10/2026",
"parent": "",
"mime": [
"application/pdf",
"application/xml"
],
"doc_type": "DRVLC",
"description": "Driving License",
"issuer_id": "in.gov.transport",
"issuer": "Ministry of Road Transport and Highways",
"id": "in.gov.transport-DRVLC-TN8920000007545",
"file": {
"pdf": "https://files.example.com/digilocker/2b8e4d06a1.pdf",
"xml": "https://files.example.com/digilocker/2b8e4d06a2.xml"
}
}
]
}
}{
"code": 123,
"timestamp": 123,
"message": "<string>"
}{
"code": 123,
"timestamp": 123,
"message": "<string>"
}{
"code": 123,
"timestamp": 123,
"message": "<string>"
}{
"code": 123,
"timestamp": 123,
"message": "<string>"
}{
"code": 123,
"timestamp": 123,
"message": "<string>"
}{
"code": 123,
"timestamp": 123,
"message": "<string>"
}{
"code": 123,
"timestamp": 123,
"message": "<string>"
}DigiLocker
DigiLocker files
Read issued documents by their file ids, each with its file as PDF and XML.
POST
/
digilocker
/
v1
/
files.1
DigiLocker files
curl --request POST \
--url https://api.privue.ai/digilocker/v1/files.1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"request_id": "652523835a9f9000112b1ee6",
"file_ids": [
"in.gov.transport-DRVLC-TN8920000007545"
]
}
'import requests
url = "https://api.privue.ai/digilocker/v1/files.1"
payload = {
"request_id": "652523835a9f9000112b1ee6",
"file_ids": ["in.gov.transport-DRVLC-TN8920000007545"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
request_id: '652523835a9f9000112b1ee6',
file_ids: ['in.gov.transport-DRVLC-TN8920000007545']
})
};
fetch('https://api.privue.ai/digilocker/v1/files.1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"details": {
"files": [
{
"name": "Driving License",
"type": "file",
"size": "",
"date": "04/10/2026",
"parent": "",
"mime": [
"application/pdf",
"application/xml"
],
"doc_type": "DRVLC",
"description": "Driving License",
"issuer_id": "in.gov.transport",
"issuer": "Ministry of Road Transport and Highways",
"id": "in.gov.transport-DRVLC-TN8920000007545",
"file": {
"pdf": "https://files.example.com/digilocker/2b8e4d06a1.pdf",
"xml": "https://files.example.com/digilocker/2b8e4d06a2.xml"
}
}
]
}
}{
"code": 123,
"timestamp": 123,
"message": "<string>"
}{
"code": 123,
"timestamp": 123,
"message": "<string>"
}{
"code": 123,
"timestamp": 123,
"message": "<string>"
}{
"code": 123,
"timestamp": 123,
"message": "<string>"
}{
"code": 123,
"timestamp": 123,
"message": "<string>"
}{
"code": 123,
"timestamp": 123,
"message": "<string>"
}{
"code": 123,
"timestamp": 123,
"message": "<string>"
}Authorizations
Your API key, sent as Authorization: Bearer <your-key>.
Body
application/json
The consent to read through, and the issued documents to read.
The request_id the consent link was created with
Minimum string length:
1Example:
"652523835a9f9000112b1ee6"
The id of each issued document to read, as /digilocker/v1/details.1 lists them
Minimum array length:
1Minimum string length:
1Example:
["in.gov.transport-DRVLC-TN8920000007545"]
Response
Successful Response
The issued documents asked for, each with its file.
The documents and their files
Show child attributes
Show child attributes
