Overview
Court orders are long, scanned and written for lawyers. Teams that track many cases cannot read every order in full, but they still need to know what happened: was the appeal allowed, what did the court direct, which sections did it rely on. The Order AI Summary API reads one order and returns a structured analysis that a system can store and an analyst can skim, while keeping the extracted text alongside for verification.
Each response has extractedText and aiAnalysis. The analysis is organised into case identifiers and parties, procedural details such as order nature, disposition and directions, legal substance such as issues, statutes cited and the court's reasoning, and insights such as an executive summary and a plain-language summary for litigants. Order filenames come from the Case Details API. For text only, the Case Details response already includes it; for a signed PDF use the Court Order PDF API.
- Input
- CNR plus the order filename from judgmentOrders[].orderUrl, for example order-1.pdf
- Returns
- Extracted order text plus a structured AI analysis
- Coverage
- Orders and judgments attached to cases in the eCourtsIndia corpus
- Freshness
- Generated on demand on first access (10 to 60 seconds), cached after
- Auth
- Bearer API key or OAuth via the MCP server
- Register
- eCourtsIndia (ecourtsindia.com)
- MCP tool
get_order_ai_analysis- 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
extractedTextText of the order extracted from the court PDF, in Markdown
core_case_identifiers.case_number_primaryThe case number as the order states it
core_case_identifiers.judge_namesJudges named in the order
core_case_identifiers.order_dateDate of the order
party_informationParties on each side with type and exact role
procedural_details_from_order.order_natureWhether the order is substantive or procedural
procedural_details_from_order.disposition_outcome_if_disposedOutcome if the case was disposed, for example Allowed
specific_directions_given_by_courtThe directions the court gave, as a list
statutes_cited_and_appliedActs and sections cited, with how each was applied
court_reasoning_for_decisionSummary of why the court decided as it did
ai_generated_executive_summaryShort summary of the order for professionals
plain_language_summary_for_litigants_outcome_focusedOutcome-focused summary in everyday language
quality_review_metadataOCR accuracy estimate and overall extraction confidence
Use cases
Client updates for a law firm
When a new order lands on a tracked matter, the firm's system calls the AI Summary API and drafts a client note from the plain-language summary and the court's directions. The associate checks the note against the extracted text before sending, cutting the time spent on routine updates.
Litigation risk notes for lenders
A lender reviewing a borrower's disputes pulls the latest order in each case and stores the outcome, directions and compliance risks fields. Credit analysts read a one-paragraph summary per case instead of a twenty-page judgment, and open the full text only where something looks material.
Research datasets
A legal researcher building a dataset of appellate outcomes collects judgment orders for a set of CNRs, then uses the disposition outcome, statutes cited and issues identified fields to classify them. The extracted text stays alongside so every label can be checked against the order.
How to use it
- Call the Case Details API for the CNR and pick an order from judgmentOrders or interimOrders.
- Take the bare filename from orderUrl, for example order-3.pdf.
- Call GET /api/partner/case/{cnr}/order-ai/{filename} with your Bearer API key.
- If aiAnalysis comes back null on first access, wait 15 to 30 seconds and retry, up to three times.
- Store the summary fields you need and keep extractedText for verification.
Parameters
cnr required path Case Number Record. Example: DLHC010001232024 filename required path Order filename from judgmentOrders[].orderUrl. Example: order-1.pdf Example
Request
curl "https://webapi.ecourtsindia.com/api/partner/case/DLHC010001232024/order-ai/order-1.pdf" \
-H "Authorization: Bearer eci_live_YOUR_KEY" Response (illustrative)
{
"data": {
"cnr": "KAHC010098762022",
"filename": "order-4.pdf",
"extractedText": "## IN THE HIGH COURT OF KARNATAKA AT BENGALURU ...",
"aiAnalysis": {
"foundational_metadata": {
"core_case_identifiers": {
"case_number_primary": "RFA No. 1234/2022",
"court_name": "High Court Of Karnataka",
"judge_names": ["A. Verma"],
"order_date": "2026-09-18"
},
"procedural_details_from_order": {
"order_nature": "Substantive",
"disposition_outcome_if_disposed": "Allowed",
"specific_directions_given_by_court": ["Decree of the trial court set aside"]
}
},
"intelligent_insights_analytics": {
"order_significance_and_impact_assessment": {
"ai_generated_executive_summary": "The High Court allowed the appeal of Example Traders Pvt Ltd ...",
"plain_language_summary_for_litigants_outcome_focused": "Example Traders won its appeal ..."
}
}
}
},
"meta": { "request_id": "req_example003" }
} 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 get_order_ai_analysis tool.
Glossary
- Ratio decidendi
- The legal principle on which a court's decision rests, the part of a judgment that binds later courts. The API returns an extracted statement of the ratio with a confidence score, which should be checked against the order text before it is cited.
- Interim order
- An order passed while a case is still pending, such as an adjournment, a stay or a direction to file documents. A final order or judgment decides the case. Both kinds are listed on the case record with their own filenames.
- 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.
Good to know
- First access may take 10 to 60 seconds; aiAnalysis can be null until processing completes.
- AI output is an aid to reading. Verify against extractedText before citing.
Frequently asked questions
Is there an API that summarises Indian court judgments?
Yes. The Court Order AI Summary API takes a CNR and an order filename and returns an executive summary, a plain-language summary, the outcome, the court's directions, the statutes cited and the reasoning, along with the extracted text of the order so you can verify each point.
Why does the first request take longer?
The analysis is produced on demand the first time an order is requested: the PDF is read from the court source, converted and analysed, which takes 10 to 60 seconds. After that the result is cached and later requests are fast. If aiAnalysis is null, retry up to three times with 15 to 30 second waits.
Where do I get the order filename?
Call the Case Details API for the CNR and read judgmentOrders[].orderUrl or interimOrders[].orderUrl. Use that bare filename, such as order-1.pdf, in the path. Do not use the CNR-prefixed pdfFile value from the files section, which returns an INVALID_FILENAME error instead of the analysis.
Can I rely on the AI summary instead of reading the order?
Use it to triage and to draft, not as a citation. Treat eCourtsIndia as the source of record and read the actual order text before asserting a holding, a date or a party name in legal drafting. The extractedText field is returned with every analysis for exactly this check.
How is this different from downloading the order from the eCourts portal?
The portal gives you a PDF, often scanned, one order at a time after a captcha. This API returns the order as text plus structured fields for outcome, directions, judges and statutes, which a system can store, compare and search without a person reading every page.
Can I ask Claude or ChatGPT to summarise a court order?
Yes. With the eCourtsIndia MCP server connected, the assistant calls get_order_ai_analysis for the order. The tool checks the date inside the document against the order index and reports DATE VERIFIED or WRONG DOCUMENT, so you know the summary is of the order you asked about.