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 | JWT Bearer token for authentication. 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 ID number to verify (e.g., Aadhaar number) |
webhook_url | String | Yes | The URL where verification results will be sent upon completion |
{
"type": "aadhaar_validation",
"body": {
"id_number": "123456789012"
},
"webhook_url": "https://your-domain.com/webhook/callback"
}
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 verification (e.g., "pending") |
data.api_resp | Object/null | API response data (null for pending requests) |
status_code | Integer | HTTP status code |
success | Boolean | Indicates if the request was successfully received |
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"
}
{
"data": null,
"status_code": 401,
"success": false,
"message": "Invalid authentication token",
"message_code": "auth_error"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/async/submit' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "aadhaar_validation",
"body": {
"id_number": "{{aadhaar_number}}"
},
"webhook_url": "{{webhook_url}}"
}'
{
"data": {
"client_id": "aadhaar_validation_asfdshSJnOkrzMD",
"status": "pending",
"api_resp": null
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}