Feel free to reach techsupport@surepass.io for any technical support or guidance.
"999". By exposing only the year ranges for which records actually exist in a given village, this API prevents unnecessary queries against non-existent record sets and enables applications to present users with only valid year options for their selected location.Authorization header as Bearer TOKEN.https://sandbox.surepass.apphttps://kyc-api.surepass.app| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer token for authentication. Format: Bearer <JWT_TOKEN> |
| Content-Type | Yes | Must be set to application/json as the endpoint expects a JSON request body. |
| Parameter | Type | Required | Description |
|---|---|---|---|
| district | string | Yes | The name of the district in lowercase (e.g., "almora"). Must be a valid Uttarakhand district. Use the Uttarakhand District List API to obtain valid values. |
| tehsil | string | Yes | The name of the tehsil within the specified district, in lowercase (e.g., "syalde"). Use the Uttarakhand Tehsil List API to obtain valid values for the given district. |
| village | string | Yes | The name of the village within the specified tehsil, in lowercase (e.g., "ataliya"). Use the Uttarakhand Village List API to obtain valid values for the given districtโtehsil combination. |
{
"district": "almora",
"tehsil": "syalde",
"village": "ataliya"
}| Parameter | Type | Description |
|---|---|---|
| data | object | Contains the district, tehsil, village, and available year list for the specified location. |
| data.district | string | The district name as provided in the request, echoed back in the response. |
| data.tehsil | string | The tehsil name as provided in the request, echoed back in the response. |
| data.village | string | The village name as provided in the request, echoed back in the response. |
| data.year_list | array of strings | A list of available Fasli year ranges for which land records exist in the specified village. Values are formatted as year range strings (e.g., "1411-1416") or the special value "999". |
| status_code | integer | HTTP-equivalent status code for the response. 200 indicates success. |
| message_code | string | A machine-readable status indicator. "success" on successful responses. |
| message | string | A human-readable status message. "Success" on successful responses. |
| success | boolean | true if the request was processed successfully; false otherwise. |
{
"data": {
"district": "almora",
"tehsil": "syalde",
"village": "ataliya",
"year_list": [
"1411-1416",
"1417-1422",
"1423-1428",
"999"
]
},
"status_code": 200,
"message_code": "success",
"message": "Success",
"success": true
}{
"data": null,
"status_code": 401,
"message_code": "unauthorized",
"message": "Authentication credentials were not provided or are invalid.",
"success": false
}Authorization header is missing, malformed, or contains an expired or invalid JWT token. Verify that you are supplying the correct Bearer token and that it corresponds to the intended environment (sandbox or production).https://sandbox.surepass.app, and the production JWT token must only be used with https://kyc-api.surepass.app. Mismatching tokens and environments will cause authentication errors.year_list โ this creates a seamless four-step guided location and year selection experience."1411-1416") to users with appropriate context โ consider labeling the dropdown as "Record Period" or "Fasli Year Range" so users understand they are selecting a historical land record period, not a Gregorian calendar year."999" value explicitly: The special value "999" in year_list may represent a specific record type or undated record set. Display it with a descriptive label in your UI (e.g., "Other / Undated Records") to avoid user confusion.district:tehsil:village identifier for a reasonable duration (e.g., several hours) to avoid redundant API calls when users navigate back and forth through the location selector.district, tehsil, or village fields in this request โ always bind them to values returned by the corresponding upstream metadata APIs to prevent invalid input errors.district values required by this API.tehsil values for a selected district.village values required by this API.curl --location --request POST 'https://kyc-api.surepass.app/api/v1/land-verification/uttarakhand/meta/year-list' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"district": "almora",
"tehsil": "syalde",
"village": "ataliya"
}'{
"data": {
"district": "almora",
"tehsil": "syalde",
"village": "ataliya",
"year_list": [
"1411-1416",
"1417-1422",
"1423-1428",
"999"
]
},
"status_code": 200,
"message_code": "success",
"message": "Success",
"success": true
}