Overview
Court records change all the time: a hearing happens, a next date is fixed, an order is uploaded, a case is disposed. If you are about to act on a case, such as sending a client update, making a credit decision or preparing for tomorrow's hearing, you want the record as it stands today. The Case Refresh API asks eCourtsIndia to read that case again from the official source.
The call is asynchronous. It answers 202 Accepted with a status of QUEUED and an estimated time, and the refreshed data then appears in the Case Details API. Duplicate refresh requests within 15 seconds are treated as one. For many cases at once, use the Bulk Case Refresh API, which takes up to 50 CNRs and has a status endpoint to poll.
- Input
- CNR (16 characters) in the path
- Returns
- 202 Accepted with status QUEUED, a message and an estimated time
- Coverage
- Any case in the eCourtsIndia corpus with a CNR
- Source
- A fresh read from the official eCourts government servers
- Auth
- Bearer API key or OAuth via the MCP server
- Register
- eCourtsIndia (ecourtsindia.com)
- MCP tool
refresh_case- 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
cnrThe case that was queued for refresh
statusQUEUED when the refresh request was accepted
messageHuman-readable confirmation, for example Case refresh request queued
estimatedTimeRough time before the updated data is expected, for example 5-10 seconds
meta.request_idIdentifier of the request for support
error.codeMachine-readable error such as INVALID_CNR or CASE_NOT_FOUND
Use cases
Before a hearing
The evening before a listing, an advocate's case management tool refreshes each matter on tomorrow's board and then reloads the case details. Any order uploaded that day, or a change in the purpose of listing, shows up before the advocate prepares, rather than being discovered in court.
Before a credit decision
A loan officer finds a recovery suit against an applicant in data that is several weeks old. Before deciding, the system refreshes the case and reads it again, so the decision rests on the current status and the latest order rather than on a stale snapshot.
On-demand refresh in an app
A legal app shows a refresh button on each case page. When a user taps it, the app calls the Case Refresh API, shows a short waiting state, then reloads Case Details. Users get current data when they ask for it without the app re-reading every case constantly.
How to use it
- Call POST /api/partner/case/{cnr}/refresh with your Bearer API key.
- Expect 202 Accepted with status QUEUED; do not call again for the same CNR within a few seconds.
- Wait, then call GET /api/partner/case/{cnr} for the updated record.
- If the data has not changed yet, wait longer before reading again; government servers can be slow.
Parameters
cnr required path Case Number Record. Example: DLHC010001232024 Example
Request
curl -X POST "https://webapi.ecourtsindia.com/api/partner/case/DLHC010001232024/refresh" \
-H "Authorization: Bearer eci_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{ ... }' Response (illustrative)
{
"data": {
"cnr": "DLHC010123452024",
"status": "QUEUED",
"message": "Case refresh request queued",
"estimatedTime": "5-10 seconds"
},
"meta": { "request_id": "req_example006" }
}
// A few seconds later: GET /api/partner/case/DLHC010123452024 (abridged)
{
"data": {
"courtCaseData": {
"cnr": "DLHC010123452024",
"caseStatus": "PENDING",
"lastHearingDate": "2026-11-26",
"nextHearingDate": "2026-12-04",
"purpose": "Arguments"
}
}
} 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 refresh_case tool.
Glossary
- CNR (Case Number Record)
- The unique 16-character identifier eCourts gives every case. It is a six-character court establishment code such as DLHC01, a six-digit case number and the four-digit filing year, so DLHC010351552024 is Delhi High Court case 035155 of 2024.
- Asynchronous request
- A request that is accepted now and completed later. The refresh call returns straight away with QUEUED; the work of reading the official source happens in the background, and you read the result through a separate call to the Case Details API.
- Idempotent
- Safe to repeat without creating duplicates. Sending the same refresh request for a CNR again within 15 seconds does not queue a second refresh, so a retry after a network error does not cause extra work.
Good to know
- Refresh is asynchronous; the updated record appears in Case Details after a delay that depends on the court servers.
Frequently asked questions
How do I get the latest status of a case by CNR?
Call POST /api/partner/case/{cnr}/refresh to queue a fresh read from the official source, wait briefly, then call GET /api/partner/case/{cnr}. The second call returns the record with the latest hearing date, orders and status that the court system had at the time of the refresh.
How long does a refresh take?
The response estimates 5 to 10 seconds, and you should fetch case details after that. Government court servers are sometimes slow, so a refresh can take a few minutes to land. If nothing has changed yet, wait and read again rather than sending refresh after refresh.
What happens if I send the same refresh twice?
Duplicate refresh requests for the same CNR within 15 seconds are idempotent, so they do not create a second job. That makes it safe to retry after a timeout. For many cases, use the Bulk Case Refresh API and poll its status endpoint before requesting again.
Why not just check the eCourts portal myself?
You can, case by case, with a captcha each time. The refresh API lets a system update the exact cases it cares about on its own schedule and then read the result as structured JSON, which is what you need when you track dozens or hundreds of matters.
Can I ask an AI assistant to refresh a case?
Yes. The eCourtsIndia MCP server has refresh_case, which queues the refresh, and refresh_and_wait_for_case, which waits for the new data. You can ask Claude or ChatGPT to refresh a CNR and tell you the next hearing date, and it will use these tools.
Should I refresh every case every day?
Usually not. The documentation advises using refresh sparingly, only when you need the latest data, and caching case details locally. Refresh before an action that depends on the current record, such as a hearing, a decision or a client update.