Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization header as Bearer TOKEN.https://sandbox.surepass.apphttps://kyc-api.surepass.app| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer token for API authentication (format: Bearer YOUR_JWT_TOKEN) |
| Content-Type | Yes | Must be set to application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| client_id | string | Yes | Unique identifier for the PMFBY policy application session (generated during initial policy request) |
| otp | string | Yes | 6-digit One-Time Password sent to the applicant's registered mobile number for verification |
{
"client_id": "pmfby_policy_blYspig",
"otp": "123456"
}| Parameter | Type | Description |
|---|---|---|
| data | object | Contains the verification result details |
| data.client_id | string | Echo of the submitted client_id for reference tracking |
| data.otp_submitted | boolean | Indicates whether OTP submission was successful (true/false) |
| status_code | integer | HTTP status code of the response (200 for success) |
| success | boolean | Overall success indicator of the API call |
| message | string | Human-readable message describing the result |
| message_code | string | Machine-readable code for programmatic handling |
{
"data": {
"client_id": "pmfby_policy_blYspig",
"otp_submitted": true
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}{
"data": null,
"status_code": 422,
"success": false,
"message": "Invalid OTP provided",
"message_code": "invalid_otp"
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/pmfby/policy/submit-otp' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"client_id": "pmfby_policy_blYspig",
"otp": "123456"
}'{
"data": {
"client_id": "pmfby_policy_blYspig",
"otp_submitted": true
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}