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 |
---|---|---|---|
template_id | String | Yes | The SMS template ID registered with telecom authorities that contains the OTP message format |
mobile | String | Yes | The mobile number to which the OTP will be sent (10-digit format without country code) |
{
"template_id": "1707167888866596321",
"mobile": "7042174106"
}
Parameter | Type | Description |
---|---|---|
data | Object | Contains the response data |
data.client_id | String | Unique identifier for this OTP request, used for verification |
data.mobile | String | The mobile number to which the OTP was sent |
data.otp_sent | Boolean | Indicates whether the OTP was successfully sent |
data.otp_verified | Boolean | Indicates whether the OTP has been verified (initially false) |
status_code | Integer | HTTP status code of the response |
success | Boolean | Indicates if the API call was successful |
message | String | Human-readable message describing the result |
message_code | String | Machine-readable code representing the result |
{
"data": {
"client_id": "send_sms_otp_rOUjQJFWppfhgxbawoQA",
"mobile": "7042174106",
"otp_sent": true,
"otp_verified": false
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}
{
"errors": {
"mobile": "Mobile Number Value does not match pattern: \"^[0][1-9]\\d{9}$|^[1-9]\\d{9}$\""
},
"message": "Input payload validation failed"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/sms/send-otp' \
--header 'Content-Type: application/json' \
--data-raw '{
"template_id": "1707167888866596321",
"mobile": "7042174106"
}'
{
"data": {
"client_id": "send_sms_otp_rOUjQJFWppfhgxbawoQA",
"mobile": "7042174106",
"otp_sent": true,
"otp_verified": false
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}