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 authentication. Format: Bearer <your_jwt_token> |
Content-Type | Yes | Must be set to application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
state_name | string | Yes | The Indian state or union territory in snake_case format (e.g., "delhi", "andhra_pradesh", "tamil_nadu"). This value should be obtained from the List States API. |
district_name | string | Yes | The name of the district within the specified state (e.g., "Shahdara", "Central", "East"). This value should be obtained from the List Districts API. |
{
"state_name": "delhi",
"district_name": "Shahdara"
}| Parameter | Type | Description |
|---|---|---|
data | array of strings | A list of court complex names available within the specified state and district. Each entry is the full official name of a court complex (e.g., "District and Sessions Judge, Shahdara, KKD"). |
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 request was processed successfully. true for success, false for failure. |
{
"data": [
"District and Sessions Judge, Shahdara, KKD",
"Chief Metropolitan Magistrate, Shahdara, KKD",
"Senior Civil Judge cum RC, Shahdara, KKD",
"Principal Judge Family Court, Shahdara , KKD",
"Juvenile Justice Board-VI, Shahdara, KKD"
],
"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."District and Sessions Judge, Shahdara, KKD") directly in the UI — they are already in a user-friendly format.GET /api/v1/ecourts/case-number/list-state): Retrieves the list of all supported Indian states and union territories. Use this API as the first step to obtain valid state_name values required by the List Districts and List Court Complex APIs.GET /api/v1/ecourts/case-number/list-districts): Retrieves the list of districts within a specified state. Use this API as the second step to obtain valid district_name values required by this List Court Complex API.POST /api/v1/ecourts/case-number/search): Performs the actual case search by case number within a specified court complex. Use the court complex name returned by this API as an input parameter.curl --location --request GET 'https://kyc-api.surepass.app/api/v1/ecourts/case-number/list-court-complex' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"state_name": "delhi",
"district_name": "Shahdara"
}'{
"data": [
"District and Sessions Judge, Shahdara, KKD",
"Chief Metropolitan Magistrate, Shahdara, KKD",
"Senior Civil Judge cum RC, Shahdara, KKD",
"Principal Judge Family Court, Shahdara , KKD",
"Juvenile Justice Board-VI, Shahdara, KKD"
],
"status_code": 200,
"message_code": "success",
"message": "Success",
"success": true
}