DigiLocker account lookup
curl --request POST \
--url https://api.privue.ai/digilocker/v1/account.1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"aadhaar_number": "<string>",
"mobile_number": "<string>"
}
'import requests
url = "https://api.privue.ai/digilocker/v1/account.1"
payload = {
"aadhaar_number": "<string>",
"mobile_number": "<string>"
}
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({aadhaar_number: '<string>', mobile_number: '<string>'})
};
fetch('https://api.privue.ai/digilocker/v1/account.1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"details": {
"registered": true,
"digilocker_id": "f3102754-3555-5c30-a95c-0000b31680f0"
}
}DigiLocker
DigiLocker account lookup
Look up whether a DigiLocker account is linked to an Aadhaar or mobile number.
Needs no consent. A number with no account linked answers registered: false, and is charged.
POST
/
digilocker
/
v1
/
account.1
DigiLocker account lookup
curl --request POST \
--url https://api.privue.ai/digilocker/v1/account.1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"aadhaar_number": "<string>",
"mobile_number": "<string>"
}
'import requests
url = "https://api.privue.ai/digilocker/v1/account.1"
payload = {
"aadhaar_number": "<string>",
"mobile_number": "<string>"
}
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({aadhaar_number: '<string>', mobile_number: '<string>'})
};
fetch('https://api.privue.ai/digilocker/v1/account.1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"details": {
"registered": true,
"digilocker_id": "f3102754-3555-5c30-a95c-0000b31680f0"
}
}Authorizations
Your API key, sent as Authorization: Bearer <your-key>.
Body
application/json
Response
Successful Response
Whether a DigiLocker account is linked to the number.
The account linked to the number, where there is one
Show child attributes
Show child attributes
