> 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/cases.md).

# Cases

Case retrieval and refresh.

## Get case detail by CNR

> Full record: parties, advocates, judges, hearings, IAs, orders. Order text is embedded in files.files\[].markdownContent.

```json
{"openapi":"3.0.3","info":{"title":"eCourtsIndia API","version":"4.0"},"tags":[{"name":"Cases","description":"Case retrieval and refresh."}],"servers":[{"url":"https://webapi.ecourtsindia.com","description":"Partner API"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"eci_live_...","description":"Your API key from https://ecourtsindia.com/dashboard/settings"}},"responses":{"Unauthorized":{"description":"Missing/invalid Bearer token","content":{"application/json":{}}},"NotFound":{"description":"CNR not found","content":{"application/json":{}}}}},"paths":{"/api/partner/case/{cnr}":{"get":{"tags":["Cases"],"summary":"Get case detail by CNR","description":"Full record: parties, advocates, judges, hearings, IAs, orders. Order text is embedded in files.files[].markdownContent.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"parameters":[{"name":"cnr","in":"path","required":true,"schema":{"type":"string"},"description":"16-char CNR"}]}}}}
```

## Refresh a case (POST)

> Async re-scrape from the official source. Returns immediately; poll case detail until dateModified advances. Also fetches CNRs not yet indexed. Search index lags 1-2h.

```json
{"openapi":"3.0.3","info":{"title":"eCourtsIndia API","version":"4.0"},"tags":[{"name":"Cases","description":"Case retrieval and refresh."}],"servers":[{"url":"https://webapi.ecourtsindia.com","description":"Partner API"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"eci_live_...","description":"Your API key from https://ecourtsindia.com/dashboard/settings"}},"responses":{"MethodNotAllowed":{"description":"Wrong HTTP method (refresh is POST)","content":{"application/json":{}}}}},"paths":{"/api/partner/case/{cnr}/refresh":{"post":{"tags":["Cases"],"summary":"Refresh a case (POST)","description":"Async re-scrape from the official source. Returns immediately; poll case detail until dateModified advances. Also fetches CNRs not yet indexed. Search index lags 1-2h.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"405":{"$ref":"#/components/responses/MethodNotAllowed"}},"parameters":[{"name":"cnr","in":"path","required":true,"schema":{"type":"string"},"description":""}]}}}}
```

## Bulk refresh (POST)

> Queue up to 50 CNRs in one POST for portfolio sync. Validates, dedupes, reports invalid ones.

```json
{"openapi":"3.0.3","info":{"title":"eCourtsIndia API","version":"4.0"},"tags":[{"name":"Cases","description":"Case retrieval and refresh."}],"servers":[{"url":"https://webapi.ecourtsindia.com","description":"Partner API"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"eci_live_...","description":"Your API key from https://ecourtsindia.com/dashboard/settings"}}},"paths":{"/api/partner/case/bulk-refresh":{"post":{"tags":["Cases"],"summary":"Bulk refresh (POST)","description":"Queue up to 50 CNRs in one POST for portfolio sync. Validates, dedupes, reports invalid ones.","responses":{"200":{"description":"Success","content":{"application/json":{}}}},"requestBody":{"required":true,"content":{"application/json":{}}}}}}}
```


---

# 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/cases.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.
