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 |
---|---|---|---|
otp | String | Yes | The one-time password received during the password reset process |
client_id | String | Yes | Unique identifier provided in the previous step of the password reset flow |
{
"otp": "232493",
"client_id": "itr_hIljWFhdruRxPAPTGzQs"
}
Parameter | Type | Description |
---|---|---|
data | Object | Contains the response data |
data.password_reset | Boolean | Indicates whether the password was successfully reset |
status_code | Integer | HTTP status code of the response |
message_code | String | Short code indicating the result of the operation |
message | String | Human-readable description of the operation result |
success | Boolean | Overall success status of the API call |
{
"data": {
"password_reset": true
},
"status_code": 200,
"message_code": "success",
"message": "Password reset successful",
"success": true
}
{
"data": {
"password_reset": 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/itr/submit-otp' \
--header 'Content-Type: application/json' \
--data-raw '{
"otp": "232493",
"client_id": "itr_hIljWFhdruRxPAPTGzQs"
}'
{
"data": {
"password_reset": true
},
"status_code": 200,
"message_code": "success",
"message": "Password reset successful",
"success": true
}