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 (JWT format) |
| Content-Type | Yes | Must be set to application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| client_id | String | Yes | Unique identifier for the PMFBY policy holder (e.g., pmfby_policy_blYs) |
| Parameter | Type | Description |
|---|---|---|
| data | Object | Container object for all policy document information |
| data.client_id | String | Unique identifier for the policy holder |
| data.mobile_number | String | Registered mobile number of the farmer |
| data.status | String | Status of the request (e.g., "success") |
| data.details | Object | Detailed information about the farmer and their policies |
| data.details.farmer_name | String | Name of the farmer/policy holder |
| data.details.farmer_category | String | Category of farmer (e.g., "owner", "tenant") |
| data.details.policy_document_details | Array | Array of policy documents grouped by crop season and year |
| policy_document_details[].crop_name | String | Crop season name (e.g., "kharif", "rabi") |
| policy_document_details[].year | String | Policy year |
| policy_document_details[].policy_documents | Array | Array of individual policy documents |
| policy_documents[].policy_id | String | Unique policy identification number |
| policy_documents[].document_link | String | Pre-signed S3 URL for document download (valid for 600 seconds) |
| status_code | Integer | HTTP status code of the response |
| success | Boolean | Indicates if the request was successful |
| message | String | Human-readable response message |
| message_code | String | Machine-readable message code |
{
"data": {
"client_id": "pmfby_policy_blYs",
"mobile_number": "9900000000",
"status": "success",
"details": {
"farmer_name": "Krishna",
"farmer_category": "owner",
"policy_document_details": [
{
"crop_name": "kharif",
"year": "2025",
"policy_documents": [
{
"policy_id": "0401092510601234567",
"document_link": "https://aadhaar-kyc-docs.s3.amazonaws.com/pmfby_policy_document/pmfby_policy_blYspigeEFSqEotjorOb/0401092510604219918/policy_certificate-2025-12-30-082738842029.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY5K3QRM5KVPBYKKE%2F20251230%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20251230T082742Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=172d66061fc7b7f4e7c33aee9e38909e1f43cafa5c1464474add3a8b2f578f1c"
}
]
},
{
"crop_name": "rabi",
"year": "2025",
"policy_documents": [
{
"policy_id": "0402092510602512345",
"document_link": "https://aadhaar-kyc-docs.s3.amazonaws.com/pmfby_policy_document/pmfby_policy_blYspigeEFSqEotjorOb/0402092510602541821/policy_certificate-2025-12-30-082739858630.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY5K3QRM5KVPBYKKE%2F20251230%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20251230T082742Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=a2e5723c67f8b25734ed9e085d746881502fbe46c09b352c76d37fa891ed73f0"
}
]
}
]
}
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}{
"data": null,
"status_code": 404,
"success": false,
"message": "Policy not found for the provided client_id",
"message_code": "not_found"
}curl --location --request GET 'https://kyc-api.surepass.app/api/v1/pmfby/policy/get-policy-document?client_id=pmfby_policy_blYs' \
--header 'Authorization: Bearer <token>'{
"data": {
"client_id": "pmfby_policy_blYs",
"mobile_number": "9900000000",
"status": "success",
"details": {
"farmer_name": "Krishna",
"farmer_category": "owner",
"policy_document_details": [
{
"crop_name": "kharib",
"year": "2025",
"policy_documents": [
{
"policy_id": "0401092510601234567",
"document_link": "https://aadhaar-kyc-docs.s3.amazonaws.com/pmfby_policy_document/pmfby_policy_blYspigeEFSqEotjorOb/0401092510604219918/policy_certificate-2025-12-30-082738842029.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY5K3QRM5KVPBYKKE%2F20251230%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20251230T082742Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=172d66061fc7b7f4e7c33aee9e38909e1f43cafa5c1464474add3a8b2f578f1c"
}
]
},
{
"crop_name": "rabi",
"year": "2025",
"policy_documents": [
{
"policy_id": "0402092510602512345",
"document_link": "https://aadhaar-kyc-docs.s3.amazonaws.com/pmfby_policy_document/pmfby_policy_blYspigeEFSqEotjorOb/0402092510602541821/policy_certificate-2025-12-30-082739858630.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY5K3QRM5KVPBYKKE%2F20251230%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20251230T082742Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=a2e5723c67f8b25734ed9e085d746881502fbe46c09b352c76d37fa891ed73f0"
}
]
}
]
}
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}