Overview
Anyone tracking a portfolio of cases, such as a law firm with active matters, a bank with recovery suits or a company with a litigation register, needs to bring many records up to date at once. Sending one refresh call per case is slow and hard to track. The Bulk Case Refresh API takes a list of up to 50 CNRs, trims, uppercases and de-duplicates them, and queues the ones that need a fresh read.
The response splits the list into refreshed (already current in cache), queued (sent for a fresh read) and invalid (bad format), so you know straight away which records need a wait. A separate Bulk Refresh Status call, POST /api/partner/case/bulk-refresh-status, reports PENDING, COMPLETED, FAILED, NOT_REQUESTED or INVALID for each CNR, with request and completion times. Once a case shows COMPLETED, read it with the Case Details API.
- Input
- JSON body with cnrs: an array of 2 to 50 CNRs
- Returns
- Lists of refreshed, queued and invalid CNRs; per-CNR status from the status endpoint
- Coverage
- Any case in the eCourtsIndia corpus with a CNR
- Source
- Fresh reads from the official eCourts government servers
- Auth
- Bearer API key or OAuth via the MCP server
- Register
- eCourtsIndia (ecourtsindia.com)
- MCP tool
bulk_refresh_cases- 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
refreshedCNRs that were already current in cache
queuedCNRs sent for a fresh read from the official source
invalidEntries that are not valid CNRs
results[].status (status endpoint)PENDING, COMPLETED, FAILED, NOT_REQUESTED or INVALID
results[].requestedAt / completedAtWhen the refresh was requested and when it finished
results[].failureReasonCNR_NOT_FOUND, TEMPORARY_ERROR or TIMEOUT when a refresh failed
results[].refundedtrue when a failed refresh was reversed automatically
Use cases
Weekly litigation register update
A listed company's legal team keeps a register of 300 disputes for its contingent liability disclosures. Each Friday a job sends the CNRs in batches of 50, polls the status endpoint until each case is COMPLETED, then reads the case details and updates stage, next date and latest order in the register.
Recovery suit tracking at a bank
A bank's legal cell monitors recovery suits and debt recovery tribunal matters for its stressed accounts. Before the monthly review it bulk-refreshes all of them, then reports which cases moved, which have new orders and which are listed in the coming week.
Morning sync for a law firm
A firm refreshes the matters listed in the next three days each morning. Cases already current come back as refreshed and need no wait; the rest are queued, and the firm's system rechecks the status endpoint before updating the board the associates see.
How to use it
- Group your CNRs into batches of up to 50.
- POST each batch as {"cnrs": [...]} to /api/partner/case/bulk-refresh with your Bearer API key.
- Note which CNRs came back as queued and which as invalid.
- Poll POST /api/partner/case/bulk-refresh-status with the same CNRs until each is COMPLETED or FAILED.
- Read COMPLETED cases with the Case Details API; do not re-request a CNR that is still PENDING.
Parameters
cnrs required body Array of up to 50 CNRs. Example: ["DLHC010001232024"] Example
Request
curl -X POST "https://webapi.ecourtsindia.com/api/partner/case/bulk-refresh" \
-H "Authorization: Bearer eci_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"cnrs": ["DLHC010001232024"]}' Response (illustrative)
{
"data": {
"refreshed": ["DLHC010123452024"],
"queued": ["MHPU010045672023", "KAHC010098762022"],
"invalid": ["NOTAVALIDCNR"]
},
"meta": { "request_id": "req_example007" }
}
// Later: POST /api/partner/case/bulk-refresh-status
{
"data": {
"results": [
{
"cnr": "MHPU010045672023",
"status": "COMPLETED",
"requestedAt": "2026-11-27T04:10:12Z",
"completedAt": "2026-11-27T04:15:40Z",
"failureReason": null,
"refunded": false
}
]
}
} 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 bulk_refresh_cases 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.
- Litigation register
- A list a company or lender keeps of every legal dispute it is party to, usually with stage, next hearing date, amount involved and latest order. Keeping it current is the most common reason to refresh many cases in one go.
- Refresh status
- The state of a refresh you requested: PENDING while it runs, COMPLETED when fresh data is available, FAILED with a reason, NOT_REQUESTED if you never asked for that CNR, or INVALID for a malformed CNR. Only your own requests are reported.
Good to know
- Each bulk refresh request counts on its own, even for a CNR already pending, so poll the status endpoint before asking again.
- Statuses report only your own refresh requests, the latest per CNR.
Frequently asked questions
How many CNRs can I refresh in one request?
Up to 50. The body is {"cnrs": [...]} with 2 to 50 CNR strings, which are trimmed, uppercased and de-duplicated. More than 50 returns 400 TOO_MANY_CNRS and an empty list returns 400 EMPTY_REQUEST. Split larger portfolios into batches of 50.
How do I know when the refresh has finished?
Call POST /api/partner/case/bulk-refresh-status with the same CNRs. Each result shows PENDING, COMPLETED or FAILED, with requestedAt and completedAt times. Once a CNR is COMPLETED, the fresh data is available through the Case Details API. Statuses cover only your own requests, and the latest request per CNR is the one reported.
What happens when a refresh fails?
The status endpoint shows FAILED with a failureReason of CNR_NOT_FOUND, TEMPORARY_ERROR or TIMEOUT. Failed refreshes are reversed automatically, shown as refunded: true. You can request that CNR again later, after checking on the status endpoint that the earlier request is no longer PENDING.
Is bulk refresh better than checking each case on the eCourts portal?
For a portfolio, yes. On the portal each case means a separate search and captcha. Bulk refresh updates fifty records in one call and gives you a status per CNR, so a scheduled job can keep a whole register current without anyone opening the portal.
Can an AI assistant refresh a list of cases for me?
Yes. The eCourtsIndia MCP server has bulk_refresh_cases to queue many CNRs and check_refresh_status to see which have landed. The monitor_portfolio tool combines this with other checks for a set of cases, so you can ask Claude or ChatGPT to update your matters and summarise what changed.
What does refreshed mean in the response?
A CNR listed under refreshed was already current in the eCourtsIndia cache, so it did not need a new read and you can fetch its case details straight away. Queued CNRs were sent to the official source and need a short wait before the new data is available.