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 for authentication (JWT) |
Content-Type | Yes | application/json |
Parameter | Type | Required | Description |
---|---|---|---|
type | String | Yes | OTP type: email , mobile , both |
client_id | String | Yes | Client ID of the client |
otp_length | Integer | No | Length of the OTP |
sms_otp_template | String | No | SMS OTP template identifier |
email_otp_template | String | No | Email OTP template identifier |
otp_expiry | Integer | No | OTP Expiry duration (in minutes) |
{
"client_id": "gst_otp_vRvefXGKgTutAfhcSEPo",
"type": "mobile"
}
Parameter | Type | Description |
---|---|---|
data | Object | Contains the response data |
data.otp_sent | Boolean | Indicates if OTP was successfully sent (true/false) |
status_code | Integer | HTTP status code of the response |
message_code | String | Short code indicating the result status |
message | String | Human-readable message describing the result |
success | Boolean | Overall success status of the request |
{
"data": {
"otp_sent": true
},
"status_code": 200,
"message_code": "success",
"message": "Success",
"success": true
}
{
"data": null,
"status_code": 400,
"message_code": "invalid_client_id",
"message": "The provided client ID is invalid or not found",
"success": false
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/corporate-otp/gstin/generate-otp' \
--header 'Content-Type: application/json' \
--data-raw '{
"client_id": "gst_otp_vRvefXGKgTutAfhcSEPo",
"type": "mobile"
}'
{
"data": {
"otp_sent": true
},
"status_code": 200,
"message_code": "success",
"message": "Success",
"success": true
}