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_token> |
Content-Type | Yes | Must be set to application/json |
Parameter | Type | Required | Description |
---|---|---|---|
client_id | String | Yes | Your unique client identifier provided by Surepass |
otp | String | Yes | The 6-digit OTP received on the user's registered mobile number |
{
"client_id": "{{client_id}}",
"otp": "582430"
}
Parameter | Type | Description |
---|---|---|
data | Object | Contains the validation result |
data.otp_validated | Boolean | Indicates whether the OTP was successfully validated |
status_code | Integer | HTTP status code of the response |
message_code | String | Brief status message code |
message | String or null | Detailed message (if applicable) |
success | Boolean | Overall success status of the request |
{
"data": {
"otp_validated": true
},
"status_code": 200,
"message_code": "success",
"message": null,
"success": true
}
{
"data": {
"otp_validated": false
},
"status_code": 400,
"message_code": "invalid_otp",
"message": "The OTP provided is invalid or has expired",
"success": false
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/income/epfo/passbook/submit-otp' \
--header 'Content-Type: application/json' \
--data-raw '{
"client_id": "{{client_id}}",
"otp": "582430"
}'
{
"data": {
"otp_validated": true
},
"status_code": 200,
"message_code": "success",
"message": null,
"success": true
}