Feel free to reach techsupport@surepass.io for any technical support or guidance.
client_id
. Upon successful request, the API returns parsed Aadhaar XML data, key metadata, and a direct URL to the original XML file. This enables seamless integration of Aadhaar-based identity verification into your digital onboarding, KYC, or compliance workflows.Authorization
header as Bearer TOKEN
.https://sandbox.surepass.io
https://kyc-api.surepass.io
Header | Required | Description |
---|---|---|
Authorization | Yes | Bearer token in the format Bearer <JWT> |
Content-Type | No | application/json (recommended) |
// No request body required for this GET endpoint.
Parameter | Type | Description |
---|---|---|
data | object | Contains the main Aadhaar data and metadata. |
data.client_id | string | Unique DigiLocker client identifier. |
data.digilocker_metadata | object | Basic metadata from DigiLocker. |
data.digilocker_metadata.name | string | Name as per DigiLocker. |
data.digilocker_metadata.gender | string | Gender (M/F/O). |
data.digilocker_metadata.dob | string | Date of birth (YYYY-MM-DD). |
data.aadhaar_xml_data | object | Parsed Aadhaar XML fields. |
data.aadhaar_xml_data.full_name | string | Full name from Aadhaar. |
data.aadhaar_xml_data.care_of | string | Care of (e.g., S/O, D/O, W/O). |
data.aadhaar_xml_data.dob | string | Date of birth (YYYY-MM-DD). |
data.aadhaar_xml_data.yob | string | Year of birth. |
data.aadhaar_xml_data.zip | string | Postal code. |
data.aadhaar_xml_data.profile_image | string | Base64-encoded profile image. |
data.aadhaar_xml_data.gender | string | Gender (M/F/O). |
data.aadhaar_xml_data.masked_aadhaar | string | Masked Aadhaar number. |
data.aadhaar_xml_data.full_address | string | Complete address. |
data.aadhaar_xml_data.father_name | string | Father's name or care of. |
data.aadhaar_xml_data.address | object | Structured address fields. |
data.aadhaar_xml_data.address.country | string | Country. |
data.aadhaar_xml_data.address.dist | string | District. |
data.aadhaar_xml_data.address.state | string | State. |
data.aadhaar_xml_data.address.po | string | Post office. |
data.aadhaar_xml_data.address.house | string | House number. |
data.aadhaar_xml_data.address.loc | string | Locality. |
data.aadhaar_xml_data.address.vtc | string | Village/Town/City. |
data.aadhaar_xml_data.address.subdist | string | Sub-district. |
data.aadhaar_xml_data.address.street | string | Street name. |
data.aadhaar_xml_data.address.landmark | string | Landmark. |
data.xml_url | string | URL to download the original Aadhaar XML file. |
status_code | number | HTTP status code (e.g., 200 for success). |
success | boolean | Indicates if the request was successful. |
message | string | Human-readable status message |
message_code | string | Machine-readable status code |
{
"data": {
"client_id": "digilocker_12345ABCDE",
"digilocker_metadata": {
"name": "RAHUL KUMAR",
"gender": "M",
"dob": "1995-05-15"
},
"aadhaar_xml_data": {
"full_name": "Rahul Kumar",
"care_of": "S/O: Mohan Kumar",
"dob": "1995-05-15",
"yob": "1995",
"zip": "110001",
"profile_image": "base64_encoded_image_string",
"gender": "M",
"masked_aadhaar": "XXXXXXXX1234",
"full_address": "Connaught Place, New Delhi, Delhi, India",
"father_name": "S/O: Mohan Kumar",
"address": {
"country": "India",
"dist": "New Delhi",
"state": "Delhi",
"po": "Connaught Place",
"house": "12B",
"loc": "Central Delhi",
"vtc": "Connaught Place",
"subdist": "New Delhi",
"street": "Main Road",
"landmark": "Near Metro Station"
}
},
"xml_url": "https://dummy-url.com/rahul/aadhaar.xml"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}
{
"status_code": 401,
"success": false,
"message": "Unauthorized: Invalid or missing token",
"message_code": "unauthorized"
}
curl --location --request GET 'https://kyc-api.surepass.app/api/v1/digilocker/download-aadhaar/'
{
"data": {
"client_id": "digilocker_12345ABCDE",
"digilocker_metadata": {
"name": "RAHUL KUMAR",
"gender": "M",
"dob": "1995-05-15"
},
"aadhaar_xml_data": {
"full_name": "Rahul Kumar",
"care_of": "S/O: Mohan Kumar",
"dob": "1995-05-15",
"yob": "1995",
"zip": "110001",
"profile_image": "base64_encoded_image_string",
"gender": "M",
"masked_aadhaar": "XXXXXXXX1234",
"full_address": "Connaught Place, New Delhi, Delhi, India",
"father_name": "S/O: Mohan Kumar",
"address": {
"country": "India",
"dist": "New Delhi",
"state": "Delhi",
"po": "Connaught Place",
"house": "12B",
"loc": "Central Delhi",
"vtc": "Connaught Place",
"subdist": "New Delhi",
"street": "Main Road",
"landmark": "Near Metro Station"
}
},
"xml_url": "https://dummy-url.com/rahul/aadhaar.xml"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}