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 for authentication. Format: Bearer {your_jwt_token} |
| Content-Type | Yes | Must be set to application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| client_id | String | Yes | The unique identifier for the asynchronous operation you want to check. This ID was provided when the operation was initiated. |
| Parameter | Type | Description |
|---|---|---|
| data | Object | Container for the response data |
| data.client_id | String | The unique identifier for the asynchronous operation |
| data.status | String | Current status of the operation (e.g., "success", "pending", "failed") |
| data.api_resp | Object | The complete response from the original API call once processing is complete |
| data.api_resp.data | Object | Contains the actual data returned by the completed operation |
| data.api_resp.data.client_id | String | Client ID of the original operation |
| data.api_resp.data.age_range | String | Age range of the verified individual |
| data.api_resp.data.aadhaar_number | String | Aadhaar number that was validated |
| data.api_resp.data.state | String | State of residence according to Aadhaar |
| data.api_resp.data.gender | String | Gender code (M/F/O) |
| data.api_resp.data.last_digits | String | Last digits of the Aadhaar number |
| data.api_resp.data.is_mobile | Boolean | Indicates if a mobile number is linked to the Aadhaar |
| data.api_resp.data.less_info | Boolean | Indicates if limited information was returned |
| data.api_resp.status_code | Integer | HTTP status code of the original operation |
| data.api_resp.success | Boolean | Whether the original operation was successful |
| data.api_resp.message | String or null | Additional message about the operation |
| data.api_resp.message_code | String | Code indicating the result of the operation |
| status_code | Integer | HTTP status code of this status check request |
| success | Boolean | Whether this status check request was successful |
| message | String | Human-readable message about this status check |
| message_code | String | Code indicating the result of this status check |
{
"data": {
"client_id": "async_zyHraBgkBKOyyYciilNx",
"status": "success",
"api_resp": {
"data": {
"client_id": "aadhaar_validation_asfdshSJnOkrzMD",
"age_range": "20-30",
"aadhaar_number": "123456789010",
"state": "Delhi",
"gender": "M",
"last_digits": "123",
"is_mobile": true,
"less_info": false
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}{
"status_code": 404,
"success": false,
"message": "Client ID not found",
"message_code": "client_id_not_found"
}curl --location --request GET 'https://kyc-api.surepass.app/api/v1/async/status/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'{
"data": {
"client_id": "async_zyHraBgkBKOyyYciilNx",
"status": "success",
"api_resp": {
"data": {
"client_id": "aadhaar_validation_asfdshSJnOkrzMD",
"age_range": "20-30",
"aadhaar_number": "123456789010",
"state": "Delhi",
"gender": "M",
"last_digits": "123",
"is_mobile": true,
"less_info": false
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}