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 token |
Content-Type | Yes | application/json |
Parameter | Type | Required | Description |
---|---|---|---|
client_id | String | Yes | ID Number of the client to validate the OTP against |
otp | String | Yes | The One-Time Password received by the user |
{
"client_id": "ABCD1234",
"otp": "123456"
}
Parameter | Type | Description |
---|---|---|
success | Boolean | Indicates if the OTP verification was successful |
data | Object | Contains the telecom verification data |
data.client_id | String | The client ID that was verified |
data.verification_status | String | Status of the verification (e.g., "completed", "failed") |
data.telecom_details | Object | Contains detailed telecom information |
error | Object | Present only if an error occurred |
message | String | Human-readable message about the result |
{
"success": true,
"data": {
"client_id": "ABCD1234",
"verification_status": "completed",
"telecom_details": {
"name": "John Doe",
"phone_number": "+91XXXXXXXXXX",
"address": "123 Main St, City, State, PIN",
"connection_type": "Postpaid",
"activation_date": "2022-01-15"
}
},
"message": "OTP verification successful"
}
{
"success": false,
"error": {
"code": "INVALID_OTP",
"message": "The OTP provided is incorrect or has expired"
}
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/telecom/submit-otp' \
--header 'Content-Type: application/json' \
--data-raw '{
"client_id": "{{client_id}}",
"otp": "{{otp}}"
}'
{}