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 your environment (sandbox or production). |
Content-Type | Yes | Must be set to application/json. |
| Parameter | Type | Required | Description |
|---|---|---|---|
state_name | string | Yes | The Indian state or union territory for which to retrieve the list of districts. This value must be one of the codes returned by the List States API (e.g., "delhi", "maharashtra", "uttar_pradesh"). |
{
"state_name": "delhi"
}| Parameter | Type | Description |
|---|---|---|
data | array of strings | A list of district names available within the specified state. Each entry is a human-readable district name (e.g., "Central", "North West"). |
status_code | integer | HTTP status code of the response. 200 indicates a successful request. |
message_code | string | A machine-readable code representing the result status (e.g., "success"). |
message | string | A human-readable message describing the result of the API call (e.g., "Success"). |
success | boolean | Indicates whether the API call was successful. true for success, false for failure. |
{
"data": [
"Central",
"East",
"New Delhi",
"North",
"North East",
"North West",
"Shahdara",
"South",
"South East",
"South West",
"West"
],
"status_code": 200,
"message_code": "success",
"message": "Success",
"success": true
}{
"data": null,
"error": null,
"message": "Your token is invalid. Please ensure that correct token is being used.",
"status_code": 401,
"success": false,
"message_code": "invalid_token"
}Authorization header is missing, the JWT token is invalid, malformed, or has expired. Generate a new JWT token and retry the request.state_name value required by the List Districts endpoint.curl --location --request GET 'https://kyc-api.surepass.app/api/v1/ecourts/case-number/list-districts' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"state_name": "delhi"
}'{
"data": [
"Central",
"East",
"New Delhi",
"North",
"North East",
"North West",
"Shahdara",
"South",
"South East",
"South West",
"West"
],
"status_code": 200,
"message_code": "success",
"message": "Success",
"success": true
}