Court Enums API

The Court Enums API returns the live code lists that eCourtsIndia uses across its case data: case status, case type, case category, court, High Court, state, bench type, judicial section, cause list type and court type, each code with a plain-English description. It keeps your filters and labels in step with the data.

GET https://webapi.ecourtsindia.com/api/partner/enums

Overview

Case data is full of codes: WP_C, BA, DISPOSED, DLHC01, SB. Search filters need the exact codes, and a wrong one silently returns zero results rather than an error. The Court Enums API is the authoritative, live list of those codes with their meanings. Developers call it to validate filters, populate dropdowns and turn codes in responses into readable labels.

You can ask for every enum type at once, or only the ones you need with types, for example caseStatus,caseType. Each entry has a code and a description. The list is always current and cached for one hour. High Court codes here are base codes without a bench suffix, such as DLHC; search needs the bench form, such as DLHC01. To turn a name into a search filter value, use the Search Facet Catalog API.

Input
Optional types: comma-separated enum keys; omit for all
Returns
Code and description pairs for each requested enum type
Coverage
caseStatus, caseType, caseCategory, courtCode, highCourtCode, stateCode, benchType, judicialSection, causeListType, courtType
Freshness
Live, cached for 1 hour
Auth
Bearer API key or OAuth via the MCP server
Register
eCourtsIndia (ecourtsindia.com)
MCP tool
fetch_live_enums
Data source
Public court records published by the Supreme Court, High Courts, district courts and tribunals, harvested daily and refreshed on demand.

What it returns

caseStatus[]

Status codes such as PENDING, DISPOSED, DISMISSED with descriptions

caseType[]

Case type codes such as WP_C (Writ Petition (Civil)) or BA

caseCategory[]

Category codes used as search filters

courtCode[]

Court establishment codes and names

highCourtCode[]

High Court base codes, such as DLHC, without bench suffix

stateCode[]

State and union territory codes

benchType[]

Bench types such as SB (Single Bench) and DB (Division Bench)

judicialSection[]

Judicial section codes, for example civil or criminal

causeListType[] / courtType[]

Cause list types and court types

code / description

Each entry's machine code and its plain-English label

Use cases

Validating search filters

Before a legal app sends a case-type filter, it checks the code against the caseType enum it loaded at start-up. A user who types BAIL_APP is offered BA instead, avoiding the silent zero results that an invalid code would produce in the Court Case Search API.

Readable labels in reports

A due diligence report generator receives case types and statuses as codes. It loads the enums once an hour and prints Writ Petition (Civil) instead of WP_C and Disposed instead of DISPOSED, so the end reader never sees internal codes.

Finding tribunal codes

A team adding NCLT and debt recovery tribunal coverage to its monitoring tool looks up the tribunals in the court code enum, rather than guessing. It then uses those codes in search, knowing that tribunal codes guessed by hand tend to return nothing.

How to use it

  1. Call GET /api/partner/enums, optionally with types=caseStatus,caseType to limit the response.
  2. Cache the result for up to an hour, which matches the server cache.
  3. Validate user-supplied codes against the lists before searching.
  4. For High Court searches, add the bench suffix (DLHC becomes DLHC01); the facet catalog gives search-ready codes.

Parameters

NameInDescription
types query Comma-separated enum keys; omit for all. Example: caseStatus,caseType

Example

Request

curl "https://webapi.ecourtsindia.com/api/partner/enums?types=caseStatus%2CcaseType" \
  -H "Authorization: Bearer eci_live_YOUR_KEY"

Response (illustrative)

// GET /api/partner/enums?types=caseStatus,benchType,caseType
{
  "data": {
    "caseStatus": [
      { "code": "PENDING", "description": "Pending" },
      { "code": "DISPOSED", "description": "Disposed" },
      { "code": "DISMISSED", "description": "Dismissed" }
    ],
    "benchType": [
      { "code": "SB", "description": "Single Bench" },
      { "code": "DB", "description": "Division Bench" }
    ],
    "caseType": [
      { "code": "WP_C", "description": "Writ Petition (Civil)" },
      { "code": "RFA", "description": "Regular First Appeal" },
      { "code": "CC", "description": "Criminal Complaint Case" }
    ]
  },
  "meta": { "request_id": "req_example013" }
}

Authenticate with Authorization: Bearer eci_live_…. Every response field is documented in the eCourtsIndia API documentation. Assistants can also call this through the eCourtsIndia MCP server as the fetch_live_enums tool.

Glossary

Enum
Short for enumeration: a fixed list of allowed codes for a field. In court data, case status, case type and bench type are enums, and each code maps to a description such as DB for Division Bench.
Bench type
How many judges hear a matter. A single bench has one judge, a division bench two, and larger benches three or more for important questions. The benchType enum gives the codes used in case data and filters.
Case type code
A court's abbreviation for the kind of case, such as WP_C for a civil writ petition, CS for a civil suit or BA for a bail application. Courts sometimes file the same relief under different codes, so check the live list.

Good to know

  • High Court codes are base codes without bench suffix and are not directly usable in search.

Frequently asked questions

Where can I get the list of case type and case status codes used by Indian courts?

Call GET /api/partner/enums. It returns the live lists of case status, case type, case category, court, High Court, state, bench type, judicial section, cause list type and court type codes, each with a description. Pass types to limit it to the lists you need.

Why does my search return zero when I use a High Court code from this list?

High Court codes here are base codes such as DLHC. Search needs the bench form with a suffix, such as DLHC01 for Delhi or HCBM01 for Bombay. NCLT benches need a trailing 0, such as NCLTDL0. The Search Facet Catalog API returns search-ready values.

How often do the codes change?

They change as new courts, tribunals and case types are added, which is why the list is served live and cached for one hour. Do not hard-code enum values; load them at start-up and refresh periodically, for example once an hour to match the server cache.

Is this better than reading codes off the eCourts portal?

The portal shows labels in dropdowns but does not give you a code list you can program against. This endpoint gives every code with its description as JSON, so your filters, validation and labels stay correct without copying values by hand.

Can AI assistants use these codes?

Yes. The eCourtsIndia MCP server has fetch_live_enums and lookup_enum. An assistant such as Claude can look up the right case type or tribunal code before searching, which avoids the silent empty results that a guessed code produces. This matters most for tribunals, whose codes should never be built by hand.

Is the case category in case data the same as the enum?

No. Case category enum codes are search filters only. The caseCategory field in case data is free-form text written by the court, such as Constitutional Writ, and does not have to match an enum value. Use the enum for filtering and show the free text to readers.