Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization header as Bearer YOUR_JWT_TOKEN.https://sandbox.surepass.apphttps://kyc-api.surepass.app| Header | Required | Description |
|---|---|---|
| Authorization | Yes | JWT Bearer token for authentication. Format: Bearer YOUR_JWT_TOKEN |
| Content-Type | Yes | Must be set to application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| id_number | string | Conditional | Aadhaar ID number to verify DigiLocker account. Either id_number or mobile_number must be provided |
| mobile_number | string | Conditional | Registered mobile number to verify DigiLocker account. Either id_number or mobile_number must be provided |
id_number OR mobile_number in the request. Both parameters should not be sent simultaneously.{
"id_number": "6209XXXXXXXX"
}{
"mobile_number": "9XXXXXXXXX"
}| Parameter | Type | Description |
|---|---|---|
| data | object | Container object holding verification results |
| data.id_number | string | Masked Aadhaar ID number associated with the DigiLocker account |
| data.mobile_number | string/null | Registered mobile number if queried by mobile, otherwise null |
| data.account_exist | boolean | Indicates whether a DigiLocker account exists for the provided identifier |
| data.digilocker_id | string | Unique DigiLocker account identifier for the user |
| 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 for the message |
{
"data": {
"id_number": "XXXXXXXX1234",
"mobile_number": null,
"account_exist": true,
"digilocker_id": "eb529dce-0c72-9b0d-f11ca23"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}{
"data": {
"id_number": "XXXXXXXX1234",
"mobile_number": null,
"account_exist": false,
"digilocker_id": ""
},
"status_code": 200,
"success": true,
"message": "No DigiLocker account found",
"message_code": "account_not_found"
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/digilocker/verify-account' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"id_number": "6209XXXXXXXX"
}'{
"data": {
"id_number": "XXXXXXXX1234",
"mobile_number": null,
"account_exist": true,
"digilocker_id": "eb529dce-0c72-9b0d-f11ca23"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}