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 | JWT Bearer token for API authentication (Format: Bearer <token>) |
| Content-Type | Yes | Must be set to application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| mobile_number | string | Yes | 10-digit mobile number registered with the PMFBY policy. Must be a valid Indian mobile number without country code or special characters |
{
"mobile_number": "9900000000"
}| Parameter | Type | Description |
|---|---|---|
| data | object | Contains the OTP generation response details |
| data.client_id | string | Unique identifier for the OTP session, used for subsequent verification steps |
| data.mobile_number | string | The mobile number to which OTP was sent |
| data.otp_generated | boolean | Indicates whether OTP was successfully generated and sent (true/false) |
| status_code | integer | HTTP status code of the response |
| success | boolean | Indicates if the API request was successful |
| message | string | Human-readable message describing the result |
| message_code | string | Machine-readable code for the response status |
{
"data": {
"client_id": "pmfby_policy_blYspig",
"mobile_number": "9900000000",
"otp_generated": true
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}{
"data": null,
"status_code": 400,
"success": false,
"message": "Invalid mobile number format",
"message_code": "invalid_mobile"
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/pmfby/policy/generate-otp' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"mobile_number": "9900000000"
}'{
"data": {
"client_id": "pmfby_policy_blYspigeEF",
"mobile_number": "9900000000",
"otp_generated": true
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}