Court Order PDF API

The Court Order PDF API gives you an Indian court order or judgment as a PDF, by default a certified true copy that eCourtsIndia watermarks and digitally signs, or the raw original as the court published it. You name the case by CNR and the order by the filename from the case record.

GET https://webapi.ecourtsindia.com/api/partner/case/{cnr}/order/{filename}

Overview

Sometimes the document itself is what you need: to attach to a notice, file with a submission, send to a client or keep in an audit trail. The Court Order PDF API serves the order or judgment as a PDF, identified by CNR and filename. Law firms, compliance teams and background verification providers use it to keep the source document next to every finding.

The default is a certified true copy: watermarked and digitally signed so a reader can see where it came from. Pass signed=false to get the court's original PDF without watermark or signature. The response gives the download filename and how to retrieve the file. Filenames come from judgmentOrders and interimOrders in the Case Details API. For the text of the order use the Order Text API, and for a structured reading use the Order AI Summary API.

Input
CNR plus the order filename from the case record, for example order-1.pdf
Returns
Order PDF metadata and download: signed true copy by default, raw court PDF with signed=false
Coverage
Orders and judgments attached to cases in the eCourtsIndia corpus
Source
Order PDFs read from the official eCourts and court systems
Auth
Bearer API key or OAuth via the MCP server
Register
eCourtsIndia (ecourtsindia.com)
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

cnr

The case the order belongs to

filename

The bare order filename you requested

downloadFilename

Suggested filename, for example ecourtsindia-truecopy-<CNR>-order-1.pdf

message

How to retrieve the PDF document

signed (query)

true by default for the signed true copy; false for the raw court PDF

meta.request_id

Request identifier for support and logs

Use cases

Evidence in a background check

A verification provider reports a pending criminal matter against a candidate. Alongside the finding it attaches the latest order as a signed true copy, so the employer's HR team can see the court document itself and its source, rather than relying on a summary line in the report.

Filing and correspondence

An associate drafting a reply to a legal notice needs the interim order that granted a stay. The firm's document system fetches it by CNR and filename and saves the signed copy in the matter folder, ready to annex to the reply.

Archiving original documents

A research group that studies judgments wants the court's own files, unchanged. It requests each order with signed=false to get the raw court PDF, stores it with the CNR and order date, and runs its own text extraction on the originals.

How to use it

  1. Call the Case Details API and choose an order from courtCaseData.judgmentOrders or interimOrders.
  2. Take the bare filename from orderUrl, such as order-1.pdf.
  3. Call GET /api/partner/case/{cnr}/order/{filename}; add signed=false for the raw court PDF.
  4. Save the file under the returned downloadFilename with the CNR and order date.

Parameters

NameInDescription
cnr required path Case Number Record. Example: DLHC010001232024
filename required path Order filename from the case record. Example: order-1.pdf
signed query Defaults to true. Example: false

Example

Request

curl "https://webapi.ecourtsindia.com/api/partner/case/DLHC010001232024/order/order-1.pdf?signed=false" \
  -H "Authorization: Bearer eci_live_YOUR_KEY"

Response (illustrative)

// GET /api/partner/case/HCBM050012342023/order/order-2.pdf
{
  "data": {
    "cnr": "HCBM050012342023",
    "filename": "order-2.pdf",
    "downloadFilename": "ecourtsindia-truecopy-HCBM050012342023-order-2.pdf",
    "message": "Use the standard document download endpoint to retrieve the PDF"
  },
  "meta": { "request_id": "req_example005" }
}

// With a filename that is not a bare orderUrl value: HTTP 400
{
  "error": {
    "code": "INVALID_FILENAME",
    "message": "Order filename format is invalid. Use bare filename from orderUrl.",
    "details": []
  },
  "meta": { "request_id": "req_example005b" }
}

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.

Glossary

Certified true copy
A PDF of the order watermarked and digitally signed by eCourtsIndia, so anyone reading it can see the source and check it has not been changed. The raw court PDF, without these marks, is available with signed=false.
Judgment versus order
A judgment decides the case after hearing the parties and gives reasons. An order can be any direction the court records along the way, such as an adjournment or a stay. The case record lists judgments and interim orders separately.
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

  • Filenames must be the bare orderUrl value, not the CNR-prefixed pdfFile.

Frequently asked questions

How do I download a court order PDF by CNR?

Call GET /api/partner/case/{cnr}/order/{filename} with your Bearer API key. The filename comes from judgmentOrders[].orderUrl or interimOrders[].orderUrl in the Case Details response. By default you get a signed true copy; add signed=false for the court's original PDF. Save it under the downloadFilename the response suggests.

What is the difference between the signed and unsigned PDF?

The signed version is a certified true copy: eCourtsIndia adds a watermark and a digital signature so the source is visible and tampering can be detected. The unsigned version is the raw PDF exactly as the court published it. You choose with the signed query parameter.

Is this easier than downloading the order from the eCourts portal?

On the portal you search for the case, pass a captcha and click through to each order, one at a time. With this API a system requests the order directly by CNR and filename and saves it with a predictable name, which matters when you handle many cases.

Can I get the text of the order instead of a PDF?

Yes. The Case Details API includes extracted order text under files, the Order Text API returns Markdown together with the PDF, and the Order AI Summary API returns the text with a structured analysis. Use the PDF endpoint when the document itself is what you need.

Can an AI assistant give me the signed PDF of an order?

Yes. On the eCourtsIndia MCP server the get_order_markdown tool returns the order text and the digitally signed true-copy PDF, or the court's original with signed=false. You can ask Claude or ChatGPT for the latest order in a case by CNR and it will fetch it.

Why do I get INVALID_FILENAME or ORDER_NOT_FOUND?

INVALID_FILENAME means the filename format is wrong, usually because the CNR-prefixed pdfFile value was used instead of the bare orderUrl filename. ORDER_NOT_FOUND means no order with that name exists on the case. Re-read the order lists from the Case Details API and try again.