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. Format: Bearer <your_jwt_token> |
Content-Type | Yes | Must be set to multipart/form-data |
Parameter | Type | Required | Description |
---|---|---|---|
file | File | Yes | The eAadhaar PDF file to be uploaded and verified |
base64 | String | Yes | A base64 encoded string of the Aadhaar data. |
yob | String | Yes | Year of Birth of the Aadhaar holder (optional). |
full_name | String | Yes | Full name of the Aadhaar holder. |
'file=@"/path/to/file"' \
'base64=""' \
'yob=""' \
'full_name=""'
Parameter | Type | Description |
---|---|---|
data | Object | Contains the extracted Aadhaar information |
data.aadhaar_number | String | The 12-digit Aadhaar number (partially masked) |
data.name | String | Full name of the Aadhaar holder |
data.dob | String | Date of birth in DD/MM/YYYY format |
data.gender | String | Gender of the Aadhaar holder |
data.address | String | Complete address as mentioned in the Aadhaar |
data.face_status | Boolean | Indicates if a face image was successfully extracted |
data.face | String | Base64 encoded image of the face extracted from the Aadhaar |
data.split_address | Object | Address broken down into components |
data.split_address.house | String | House number/name |
data.split_address.street | String | Street name |
data.split_address.landmark | String | Landmark information |
data.split_address.locality | String | Locality or area |
data.split_address.vtc | String | Village/Town/City |
data.split_address.district | String | District name |
data.split_address.state | String | State name |
data.split_address.pincode | String | 6-digit PIN code |
data.phone | String | Phone number (if available in the Aadhaar) |
data.email | String | Email address (if available in the Aadhaar) |
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": "01/01/1990",
"gender": "M",
"address": "123, Sample Street, Landmark, City, District, State - 123456",
"face_status": true,
"face": "base64_encoded_image_data",
"split_address": {
"house": "123",
"street": "Sample Street",
"landmark": "Landmark",
"locality": "",
"vtc": "City",
"district": "District",
"state": "State",
"pincode": "123456"
},
"phone": "9876543210",
"email": "johndoe@example.com"
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}
{
"status_code": 422,
"success": false,
"message": "Incorrect PDF or signature.",
"message_code": null
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/aadhaar/upload/eaadhaar' \
--form 'file=@""' \
--form 'base64=""' \
--form 'yob=""' \
--form 'full_name=""'
{
"data": {
"aadhaar_number": "XXXX XXXX 1234",
"name": "John Doe",
"dob": "01/01/1990",
"gender": "M",
"address": "123, Sample Street, Landmark, City, District, State - 123456",
"face_status": true,
"face": "base64_encoded_image_data",
"split_address": {
"house": "123",
"street": "Sample Street",
"landmark": "Landmark",
"locality": "",
"vtc": "City",
"district": "District",
"state": "State",
"pincode": "123456"
},
"phone": "9876543210",
"email": "johndoe@example.com"
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}