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 <JWT_TOKEN>. Use the appropriate token for the target environment (sandbox or production). |
GET /api/v1/ecourts/case-number/list-state HTTP/1.1
Host: sandbox.surepass.app
Authorization: Bearer <your_jwt_token>| Parameter | Type | Description |
|---|---|---|
data | Array of Strings | A list of all supported Indian states and union territories. These values are used as input identifiers in subsequent eCourts case search APIs. |
status_code | Integer | HTTP status code of the response. 200 indicates a successful request. |
message_code | String | Machine-readable message code representing the result status. success indicates the operation completed successfully. |
message | String | Human-readable message describing the result of the API call. |
success | Boolean | Indicates whether the API call was successful. true for success, false for failure. |
{
"data": [
"andaman_and_nicobar",
"andhra_pradesh",
"arunachal_pradesh",
"assam",
"bihar",
"chandigarh",
"chhattisgarh",
"delhi",
"goa",
"gujarat",
"haryana",
"himachal_pradesh",
"jammu_and_kashmir",
"jharkhand",
"karnataka",
"kerala",
"ladakh",
"lakshadweep",
"madhya_pradesh",
"maharashtra",
"manipur",
"meghalaya",
"mizoram",
"nagaland",
"odisha",
"puducherry",
"punjab",
"rajasthan",
"sikkim",
"tamil_nadu",
"telangana",
"the_dadra_and_nagar_haveli_and_daman_and_diu",
"tripura",
"uttar_pradesh",
"uttarakhand",
"west_bengal"
],
"status_code": 200,
"message_code": "success",
"message": "Success",
"success": true
}{
"data": null,
"status_code": 401,
"message_code": "unauthorized",
"message": "Invalid or expired token. Please provide a valid JWT Bearer token.",
"success": false
}Authorization header is missing, the token is malformed, or the JWT has expired. Regenerate your token and retry.andhra_pradesh). Transform these into human-readable labels (e.g., "Andhra Pradesh") before rendering them in dropdown menus or UI components.curl --location --request GET 'https://kyc-api.surepass.app/api/v1/ecourts/case-number/list-state' \
--header 'Authorization: Bearer <token>'{
"data": [
"andaman_and_nicobar",
"andhra_pradesh",
"arunachal_pradesh",
"assam",
"bihar",
"chandigarh",
"chhattisgarh",
"delhi",
"goa",
"gujarat",
"haryana",
"himachal_pradesh",
"jammu_and_kashmir",
"jharkhand",
"karnataka",
"kerala",
"ladakh",
"lakshadweep",
"madhya_pradesh",
"maharashtra",
"manipur",
"meghalaya",
"mizoram",
"nagaland",
"odisha",
"puducherry",
"punjab",
"rajasthan",
"sikkim",
"tamil_nadu",
"telangana",
"the_dadra_and_nagar_haveli_and_daman_and_diu",
"tripura",
"uttar_pradesh",
"uttarakhand",
"west_bengal"
],
"status_code": 200,
"message_code": "success",
"message": "Success",
"success": true
}