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 | Bearer token authentication using JWT |
Content-Type | Yes | application/json |
Parameter | Type | Required | Description |
---|---|---|---|
client_id | String | Yes | Client ID received from the previous OTP generation step |
otp | String | Yes | The 6-digit OTP code received by the user |
{
"client_id": "send_sms_otp_xYrDQJCymqltgNgbmTfT",
"otp": "123456"
}
Parameter | Type | Description |
---|---|---|
data | Object | Contains verification details |
data.client_id | String | Unique client ID for this verification session |
data.mobile | String | Mobile number that received the OTP |
data.otp_sent | Boolean | Indicates if OTP was successfully sent |
data.otp_verified | Boolean | Indicates if OTP was successfully verified |
status_code | Integer | HTTP status code |
success | Boolean | Overall success status of the request |
message | String | Human-readable status message |
message_code | String | Machine-readable status code |
{
"data": {
"client_id": "send_sms_otp_xYrDQJCymqltgNgbmTfT",
"mobile": "7042174106",
"otp_sent": true,
"otp_verified": true
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}
{
"data": null,
"status_code": 404,
"message": "Invalid Client ID.",
"message_code": null,
"success": false,
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/sms/submit-otp' \
--header 'Content-Type: application/json' \
--data-raw '{
"client_id": "send_sms_otp_xYrDQJCymqltgNgbmTfT",
"otp": "123456"
}'
{
"data": {
"client_id": "send_sms_otp_xYrDQJCymqltgNgbmTfT",
"mobile": "7042174106",
"otp_sent": true,
"otp_verified": true
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}