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 name of the state or union territory in snake_case format as returned by the List States API. Example: "delhi", "andhra_pradesh". |
district_name | String | Yes | The name of the district as returned by the List Districts API. Example: "Shahdara", "Central". |
court_complex_name | String | Yes | The full name of the court complex as returned by the List Court Complex API. Example: "Chief Metropolitan Magistrate, Shahdara, KKD". |
{
"state_name": "delhi",
"district_name": "Shahdara",
"court_complex_name": "Chief Metropolitan Magistrate, Shahdara, KKD"
}| Parameter | Type | Description |
|---|---|---|
data | Array of Strings | A list of all case types available at the specified court complex. Each entry contains a case type code and its full description (e.g., "CA - CRIMINAL APPEAL"). Some entries may contain only a descriptive name without a code prefix. |
status_code | Integer | HTTP status code of the response. 200 indicates success. |
message_code | String | A machine-readable code representing the result status. "success" indicates a successful operation. |
message | String | A human-readable message describing the result. "Success" for successful operations. |
success | Boolean | Indicates whether the API call was successful. true for success, false for failure. |
{
"data": [
"ARBTN - ARBRITRATION CASES",
"ARBTN CASES",
"Bail Matters",
"CA - CRIMINAL APPEAL",
"CBI",
"CC - CORRUPTION CASES",
"CC NI ACT - Complaint Case 138 NI Act",
"Civ Suit - CIVIL SUIT FOR CIVIL JUDGE",
"CLOR - Closure Report",
"CR - COPY RIGHT",
"CR Cases - CRIMINAL CASE",
"Cr Rev - CRIMINAL REVISION",
"CS - CIVIL SUIT FOR DJ ADJ",
"CT Cases - COMPLAINT CASES",
"DPT EQ - DEPARTMENTAL ENQUIRY",
"DPT EQ CR - DEPARTMENTAL ENQUIRY CRL",
"E P - ELECTION PETITION",
"ESIC - Employee State Insurance Corp.",
"EX - EXECUTION",
"EX CRL - EXECUTION CRIMINAL",
"GP - Guardian Ship",
"HINDU ADP - HINDU ADOPTATION MAINT. ACT",
"HMA - HINDU MARRIAGE ACT",
"HTA - HOUSE TAX APPEAL",
"IDA - DEVORCE ACT",
"LAC - LAND ACQ. ACT",
"LC - LABOUR COURT",
"LCA - Labour Court Application",
"L I D - LABOUR INDUSTRIAL DISPUTE",
"L I R - LABOUR/IND. TRIB REF. MATTER",
"MACT - M.A.C.T.",
"MACT CR - MACT CRIMINAL",
"MC - MAHILA COURT",
"MCA DJ - MISC. CIVIL APPEAL FOR DJ ADJ",
"MCA SCJ - MISC. CIVIL APPEAL FOR CJ",
"MCD APPL - MCD APPEAL",
"MISC CRL - MISC. CASES",
"MISC DJ - MISC. CASES FOR DJ ADJ",
"MISC RC ARC - MISC. CASE FOR RC/ARC",
"MISC SCJ - MISC. CASES FOR CJ",
"MUSLIM LAW - MUSLIM LAW DELHI WAKF BOARD",
"OP - Approval",
"PC - PROBATE/LETTER OF ADMIN",
"POIT - INDUSTRIAL TRIBUNAL",
"PPA - PUBLIC PREMISES ACT",
"RCA DJ - REG CIVIL APPEAL FOR DJ ADJ",
"RC ARC - RENT CONTROLlER/ADDL. R.C.",
"RCA SCJ - CIVIL APPEAL FOR CJ",
"RCT ARCT - RENT CONT. TRIB. - ADDL. R.C.T",
"REC CASES - RECEIVERSHIP CASES",
"REVOCATION",
"SC - SESSIONS CASE",
"S C COURT - SMALL CAUSE COURT",
"S.M.A - SPL MARRIAGE ACT",
"SMA - SPECIAL MARRIAGE ACT",
"SUCCESSION COURT",
"TC - TRAFFIC CHALLAN",
"TM - TRADE MARKS",
"T. P. Civil - Transfer Petition Civil",
"T. P. Crl. - Transfer Petition Criminal"
],
"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."CRIMINAL APPEAL") as the primary display text in dropdowns, and use the code prefix (e.g., "CA") as a secondary identifier or search shortcut for experienced legal users.GET /api/v1/ecourts/case-number/list-state): Retrieves the list of all Indian states and union territories. This is the first step in the jurisdiction lookup chain and provides valid state_name values for this API.GET /api/v1/ecourts/case-number/list-districts): Retrieves the list of districts within a specified state. This is the second step and provides valid district_name values for this API.GET /api/v1/ecourts/case-number/list-court-complex): Retrieves the list of court complexes within a specified state and district. This is the third step and provides valid court_complex_name values for this API.POST /api/v1/ecourts/case-number/search): The final step in the workflow. Uses the state, district, court complex, and case type obtained from the lookup APIs to search for specific court cases by case number.curl --location --request GET 'https://kyc-api.surepass.app/api/v1/ecourts/case-number/list-case-types' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"state_name": "delhi",
"district_name": "Shahdara",
"court_complex_name": "Chief Metropolitan Magistrate, Shahdara, KKD"
}'{
"data": [
"ARBTN - ARBRITRATION CASES",
"ARBTN CASES",
"Bail Matters",
"CA - CRIMINAL APPEAL",
"CBI",
"CC - CORRUPTION CASES",
"CC NI ACT - Complaint Case 138 NI Act",
"Civ Suit - CIVIL SUIT FOR CIVIL JUDGE",
"CLOR - Closure Report",
"CR - COPY RIGHT",
"CR Cases - CRIMINAL CASE",
"Cr Rev - CRIMINAL REVISION",
"CS - CIVIL SUIT FOR DJ ADJ",
"CT Cases - COMPLAINT CASES",
"DPT EQ - DEPARTMENTAL ENQUIRY",
"DPT EQ CR - DEPARTMENTAL ENQUIRY CRL",
"E P - ELECTION PETITION",
"ESIC - Employee State Insurance Corp.",
"EX - EXECUTION",
"EX CRL - EXECUTION CRIMINAL",
"GP - Guardian Ship",
"HINDU ADP - HINDU ADOPTATION MAINT. ACT",
"HMA - HINDU MARRIAGE ACT",
"HTA - HOUSE TAX APPEAL",
"IDA - DEVORCE ACT",
"LAC - LAND ACQ. ACT",
"LC - LABOUR COURT",
"LCA - Labour Court Application",
"L I D - LABOUR INDUSTRIAL DISPUTE",
"L I R - LABOUR/IND. TRIB REF. MATTER",
"MACT - M.A.C.T.",
"MACT CR - MACT CRIMINAL",
"MC - MAHILA COURT",
"MCA DJ - MISC. CIVIL APPEAL FOR DJ ADJ",
"MCA SCJ - MISC. CIVIL APPEAL FOR CJ",
"MCD APPL - MCD APPEAL",
"MISC CRL - MISC. CASES",
"MISC DJ - MISC. CASES FOR DJ ADJ",
"MISC RC ARC - MISC. CASE FOR RC/ARC",
"MISC SCJ - MISC. CASES FOR CJ",
"MUSLIM LAW - MUSLIM LAW DELHI WAKF BOARD",
"OP - Approval",
"PC - PROBATE/LETTER OF ADMIN",
"POIT - INDUSTRIAL TRIBUNAL",
"PPA - PUBLIC PREMISES ACT",
"RCA DJ - REG CIVIL APPEAL FOR DJ ADJ",
"RC ARC - RENT CONTROLlER/ADDL. R.C.",
"RCA SCJ - CIVIL APPEAL FOR CJ",
"RCT ARCT - RENT CONT. TRIB. - ADDL. R.C.T",
"REC CASES - RECEIVERSHIP CASES",
"REVOCATION",
"SC - SESSIONS CASE",
"S C COURT - SMALL CAUSE COURT",
"S.M.A - SPL MARRIAGE ACT",
"SMA - SPECIAL MARRIAGE ACT",
"SUCCESSION COURT",
"TC - TRAFFIC CHALLAN",
"TM - TRADE MARKS",
"T. P. Civil - Transfer Petition Civil",
"T. P. Crl. - Transfer Petition Criminal"
],
"status_code": 200,
"message_code": "success",
"message": "Success",
"success": true
}