Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization
header as Bearer TOKEN
.https://sandbox.surepass.io
https://kyc-api.surepass.io
Header | Required | Description |
---|---|---|
Authorization | Yes | Bearer token for authentication (JWT format) |
Content-Type | Yes | Must be set to multipart/form-data |
Parameter | Type | Required | Description |
---|---|---|---|
file | File | Yes | The Aadhaar XML file to be uploaded and verified |
consent | String | Yes | User consent for processing Aadhaar data (value: "Y") |
consent_text | String | Yes | Text describing the consent given by the user |
'file=@"/path/to/file"' \
'base64=""' \
'share_code=""'
Parameter | Type | Description |
---|---|---|
data | Object | Contains the extracted Aadhaar information |
data.aadhaar_number | String | Masked Aadhaar number of the individual |
data.name | String | Full name as per Aadhaar record |
data.dob | String | Date of birth in YYYY-MM-DD format |
data.gender | String | Gender of the individual (M/F/T) |
data.address | Object | Address details from Aadhaar |
data.address.country | String | Country of residence |
data.address.dist | String | District of residence |
data.address.house | String | House number/name |
data.address.landmark | String | Landmark near residence (if available) |
data.address.loc | String | Locality information |
data.address.pc | String | Postal code (PIN code) |
data.address.po | String | Post office name |
data.address.state | String | State of residence |
data.address.street | String | Street name |
data.address.subdist | String | Sub-district information |
data.address.vtc | String | Village/Town/City |
data.face_status | Boolean | Indicates if face biometric is available |
data.face | String | Base64 encoded face image (if available) |
data.xml_timestamp | String | Timestamp of XML generation |
data.verification_timestamp | String | Timestamp of verification |
data.reference_id | String | Unique reference ID for this verification |
status_code | Integer | HTTP status code of the response |
success | Boolean | Indicates whether the API call was successful |
message | String | Human-readable message describing the result |
message_code | String | Machine-readable code indicating the result type |
{
"data": {
"aadhaar_number": "XXXX XXXX 1234",
"name": "John Doe",
"dob": "1990-01-01",
"gender": "M",
"address": {
"country": "India",
"dist": "Bangalore",
"house": "42",
"landmark": "Near City Park",
"loc": "Koramangala",
"pc": "560034",
"po": "Koramangala",
"state": "Karnataka",
"street": "5th Block",
"subdist": "Bangalore South",
"vtc": "Bangalore"
},
"face_status": true,
"face": "base64EncodedImageData...",
"xml_timestamp": "2023-05-15T10:30:45+05:30",
"verification_timestamp": "2023-05-15T10:31:12+05:30",
"reference_id": "sp-aadhar-xml-12345-abcde"
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}
{
"status_code": 422,
"success": false,
"message": "Verification Failed.",
"message_code": "verification_failed"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/aadhaar/upload/xml' \
--form 'file=@""' \
--form 'base64=""' \
--form 'share_code=""'
{
"data": {
"aadhaar_number": "XXXX XXXX 1234",
"name": "John Doe",
"dob": "1990-01-01",
"gender": "M",
"address": {
"country": "India",
"dist": "Bangalore",
"house": "42",
"landmark": "Near City Park",
"loc": "Koramangala",
"pc": "560034",
"po": "Koramangala",
"state": "Karnataka",
"street": "5th Block",
"subdist": "Bangalore South",
"vtc": "Bangalore"
},
"face_status": true,
"face": "base64EncodedImageData...",
"xml_timestamp": "2023-05-15T10:30:45+05:30",
"verification_timestamp": "2023-05-15T10:31:12+05:30",
"reference_id": "sp-aadhar-xml-12345-abcde"
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}