Skip to main content

Digilocker Verification

Digilocker provides verification for the following

  • Aadhaar
  • Driving License
  • PAN

Step 1

Call the API with the redirect as the URL you want the user to return to after authenticating with digiLocker.

https://api.trential.dev/trential/api/1.0/digilocker/authorize?redirect=https://trential.com

Step 2

Get all the documents metadata that the user has given consent for sharing

API

Response

{
"items": [
{
"name": "Aadhaar Card",
"type": "file",
"size": "",
"date": "06-11-2023",
"parent": "",
"mime": [
"application/pdf"
],
"uri": "in.gov.uidai-ADHAR-e4b8736fd30e54d61b5780e8077b5b60",
"doctype": "ADHAR",
"description": "Aadhaar Card",
"issuerid": "in.gov.uidai",
"issuer": "Unique Identification Authority of India (UIDAI)"
},
{
"name": "PAN Verification Record",
"type": "file",
"size": "",
"date": "03-05-2023",
"parent": "",
"mime": [
"application/json",
"application/xml",
"application/pdf"
],
"uri": "in.gov.pan-PANCR-SCSRO2312P",
"doctype": "PANCR",
"description": "PAN Verification Record",
"issuerid": "in.gov.pan",
"issuer": "Income Tax Department"
},
{
"name": "Driving License",
"type": "file",
"size": "",
"date": "16-10-2023",
"parent": "",
"mime": [
"application/json",
"application/xml",
"application/pdf"
],
"uri": "in.gov.transport-DRVLC-RJ1420160013487",
"doctype": "DRVLC",
"description": "Driving License",
"issuerid": "in.gov.transport",
"issuer": "Ministry of Road Transport and Highways"
}]
}

Step 3

Get details for the relevant documents

Request 1 - Aadhaar

Use the uri of the revelant document from Step 2 in the following body

{
"digiLocker": true,
"uri": "in.gov.uidai-ADHAR-e4b8736fd30e54d61b5780e8077b5b60",
"token": "eaeb699635a8bd2f12deac56d797912695d569f4"
}

Response 1 - Aadhaar

{
"code": 0,
"message": "Success",
"data": {
"code": 0,
"message": "Success",
"data": {
"attributes": [
{
"name": "Aadhaar ID",
"value": "732255662234"
},
{
"name": "Date of Birth",
"value": "30-11-1992"
},
{
"name": "Gender",
"value": "Male"
},
{
"name": "Name",
"value": "Mahesh Kumar"
},
{
"name": "Care Of",
"value": "S/O Suresh Kumar"
},
{
"name": "Country",
"value": "India"
},
{
"name": "District",
"value": "Gurugram"
},
{
"name": "Locality",
"value": ""
},
{
"name": "Pin Code",
"value": "122002"
},
{
"name": "State",
"value": "Haryana"
},
{
"name": "Vtc",
"value": "Gurugram"
},
{
"name": "House",
"value": ""
},
{
"name": "Street",
"value": ""
},
{
"name": "Landmark",
"value": ""
},
{
"name": "Post Office",
"value": "Gurugram"
},
{
"name": "Sub-District",
"value": ""
},
{
"name": "Address",
"value": "Sector 43 Gurugram Haryana"
},
{
"name": "Photo",
"value": "Base-64 encoded image"
}
]
}
}
}

Request 2 - PAN

Use the uri of the revelant document from Step 2 in the following body

{
"digiLocker": true,
"uri": "in.gov.pan-PANCR-SCSRO2312P",
"token": "eaeb699635a8bd2f12deac56d797912695d569f4"
}

Response 2 - PAN


Request 3 - Driving License

Use the uri of the revelant document from Step 2 in the following body

{
"digiLocker": true,
"uri": "in.gov.transport-DRVLC-RJ1420160013487",
"token": "eaeb699635a8bd2f12deac56d797912695d569f4"
}

Response 3 - Driving License

{
"code": 0,
"message": "Success",
"data": {
"code": 0,
"message": "Success",
"data": {
"invitationUrl": "",
"attributes": [
{
"name": "License Number",
"value": "RJ02 20180012667"
},
{
"name": "Issued At",
"value": "REGIONAL TRANSPORT OFFICE, ALWAR"
},
{
"name": "Issue Date",
"value": "27-08-2018"
},
{
"name": "Issue Day",
"value": 27
},
{
"name": "Issue Month",
"value": 8
},
{
"name": "Issue Year",
"value": 2018
},
{
"name": "Expiry Date",
"value": "26-08-2038"
},
{
"name": "Name",
"value": "MUKUL VERMA"
},
{
"name": "Date of Birth",
"value": "20-10-1995"
},
{
"name": "SWD",
"value": "HARISH VERMA"
},
{
"name": "SWD Indicator",
"value": "F"
},
{
"name": "Gender",
"value": "Male"
},
{
"name": "Marital Status",
"value": ""
},
{
"name": "Religion",
"value": ""
},
{
"name": "Mobile Number",
"value": ""
},
{
"name": "Email Address",
"value": ""
},
{
"name": "Present Address",
"value": "40, MAGAL VIHAR, SCHEME NO.5, Alwar (M Cl + OG), Alwar,RJ, 301001"
},
{
"name": "Address",
"value": "40, MAGAL VIHAR, SCHEME NO.5, Alwar (M Cl + OG), Alwar,RJ, 301001"
},
{
"name": "Permanent Address",
"value": "40, MAGAL VIHAR, SCHEME NO.5, Alwar (M Cl + OG), Alwar,RJ, 301001"
},
{
"name": "Photo",
"value": "base 64 encoded image"
},
{
"name": "License Types",
"value": "[\"MCWG\",\"LMV\"]"
},
{
"name": "Blood Group",
"value": ""
}
]
}
}
}