Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization header as Bearer TOKEN.https://sandbox.surepass.iohttps://kyc-api.surepass.io| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer token authentication using JWT format: Bearer <your_jwt_token> |
| Content-Type | Yes | Must be set to application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | String | Yes | The type of verification to perform (e.g., "aadhaar_validation") |
| body | Object | Yes | Contains the verification-specific parameters |
| body.id_number | String | Yes | The Aadhaar number to validate when type is "aadhaar_validation" |
{
"type": "aadhaar_validation",
"body": {
"id_number": "{{aadhaar_number}}"
}
}| Parameter | Type | Description |
|---|---|---|
| data | Object | Contains the response data |
| data.client_id | String | Unique identifier for tracking this verification request |
| data.status | String | Current status of the request (e.g., "pending") |
| data.api_resp | Object/null | API response data (null when status is pending) |
| status_code | Integer | HTTP status code of the response |
| success | Boolean | Indicates if the request was successfully submitted |
| message | String | Human-readable status message |
| message_code | String | Machine-readable status code |
{
"data": {
"client_id": "aadhaar_validation_asfdshSJnOkrzMD",
"status": "pending",
"api_resp": null
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}{
"status_code": 401,
"success": false,
"message": "Invalid authentication token",
"message_code": "authentication_error"
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/async/submit' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "aadhaar_validation",
"body": {
"id_number": "{{aadhaar_number}}"
}
}'{
"data": {
"client_id": "aadhaar_validation_asfdshSJnOkrzMD",
"status": "pending",
"api_resp": null
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}