> For the complete documentation index, see [llms.txt](https://ecourtsindia.gitbook.io/ecourtsindia-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ecourtsindia.gitbook.io/ecourtsindia-docs/court-structure.md).

# Court Structure

Walk States > Districts > Complexes > Courts. Free, no auth.

## List states/UTs

> Returns 38 states/UTs. Free, no auth. SC = Supreme Court.

```json
{"openapi":"3.0.3","info":{"title":"eCourtsIndia API","version":"4.0"},"tags":[{"name":"Court Structure","description":"Walk States > Districts > Complexes > Courts. Free, no auth."}],"servers":[{"url":"https://webapi.ecourtsindia.com","description":"Partner API"}],"security":[],"paths":{"/api/CauseList/court-structure/states":{"get":{"tags":["Court Structure"],"summary":"List states/UTs","description":"Returns 38 states/UTs. Free, no auth. SC = Supreme Court.","responses":{"200":{"description":"Success","content":{"application/json":{}}}}}}}}
```

## List districts

> Districts within a state. High Courts appear as districtCode=HC.

```json
{"openapi":"3.0.3","info":{"title":"eCourtsIndia API","version":"4.0"},"tags":[{"name":"Court Structure","description":"Walk States > Districts > Complexes > Courts. Free, no auth."}],"servers":[{"url":"https://webapi.ecourtsindia.com","description":"Partner API"}],"security":[],"paths":{"/api/CauseList/court-structure/states/{state}/districts":{"get":{"tags":["Court Structure"],"summary":"List districts","description":"Districts within a state. High Courts appear as districtCode=HC.","responses":{"200":{"description":"Success","content":{"application/json":{}}}},"parameters":[{"name":"state","in":"path","required":true,"schema":{"type":"string"},"description":"Two-letter state code"}]}}}}
```

## List complexes

> Court complexes within a district.

```json
{"openapi":"3.0.3","info":{"title":"eCourtsIndia API","version":"4.0"},"tags":[{"name":"Court Structure","description":"Walk States > Districts > Complexes > Courts. Free, no auth."}],"servers":[{"url":"https://webapi.ecourtsindia.com","description":"Partner API"}],"security":[],"paths":{"/api/CauseList/court-structure/states/{state}/districts/{districtCode}/complexes":{"get":{"tags":["Court Structure"],"summary":"List complexes","description":"Court complexes within a district.","responses":{"200":{"description":"Success","content":{"application/json":{}}}},"parameters":[{"name":"state","in":"path","required":true,"schema":{"type":"string"},"description":""},{"name":"districtCode","in":"path","required":true,"schema":{"type":"string"},"description":""}]}}}}
```

## List courts

> Individual courts/benches within a complex.

```json
{"openapi":"3.0.3","info":{"title":"eCourtsIndia API","version":"4.0"},"tags":[{"name":"Court Structure","description":"Walk States > Districts > Complexes > Courts. Free, no auth."}],"servers":[{"url":"https://webapi.ecourtsindia.com","description":"Partner API"}],"security":[],"paths":{"/api/CauseList/court-structure/states/{state}/districts/{districtCode}/complexes/{courtComplexCode}/courts":{"get":{"tags":["Court Structure"],"summary":"List courts","description":"Individual courts/benches within a complex.","responses":{"200":{"description":"Success","content":{"application/json":{}}}},"parameters":[{"name":"state","in":"path","required":true,"schema":{"type":"string"},"description":""},{"name":"districtCode","in":"path","required":true,"schema":{"type":"string"},"description":""},{"name":"courtComplexCode","in":"path","required":true,"schema":{"type":"string"},"description":""}]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ecourtsindia.gitbook.io/ecourtsindia-docs/court-structure.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
