> ## Documentation Index
> Fetch the complete documentation index at: https://ecourtsindia.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get order + AI analysis

> Markdown plus structured AI analysis: summary, outcome, key points, relief, legal provisions.



## OpenAPI

````yaml https://openapi.gitbook.com/o/X2HbEVfDbyhRjXFDsXJM/spec/ecourtsindia-api.json get /api/partner/case/{cnr}/order-ai/{filename}
openapi: 3.0.3
info:
  title: eCourtsIndia API
  version: '4.0'
  description: >-
    Official REST API for India's largest court-data layer — 27.9 crore+ case
    records across the Supreme Court, 25 High Courts, 600+ district courts and
    tribunals. Search cases, read order text and AI summaries, fetch cause
    lists, and refresh live case data.


    - Docs: https://ecourtsindia.com/api/docs

    - Pricing: https://ecourtsindia.com/api/pricing

    - Developer guide:
    https://blogs.ecourtsindia.com/2026/05/18/how-to-use-ecourtsindia-api/


    Auth: send `Authorization: Bearer eci_live_...` on every call (except Court
    Structure). Court Structure and Enums are free; most other calls consume API
    credits. Responses follow `{ data, meta:{ request_id } }`. A CNR is the
    16-char case id `[A-Z]{4}\d{12}`.
  contact:
    name: eCourtsIndia
    url: https://ecourtsindia.com/api
servers:
  - url: https://webapi.ecourtsindia.com
    description: Partner API
security:
  - bearerAuth: []
tags:
  - name: Court Structure
    description: Walk States > Districts > Complexes > Courts. Free, no auth.
  - name: Reference
    description: Live enum dictionaries. Free.
  - name: Cases
    description: Case retrieval and refresh.
  - name: Orders
    description: Order PDF, markdown and AI analysis.
  - name: Search
    description: Solr full-text search with 40+ filters.
  - name: Cause List
    description: Daily court schedules.
paths:
  /api/partner/case/{cnr}/order-ai/{filename}:
    get:
      tags:
        - Orders
      summary: Get order + AI analysis
      description: >-
        Markdown plus structured AI analysis: summary, outcome, key points,
        relief, legal provisions.
      parameters:
        - name: cnr
          in: path
          required: true
          schema:
            type: string
          example: MHAM030085272025
          description: ''
        - name: filename
          in: path
          required: true
          schema:
            type: string
          example: order-1.pdf
          description: ''
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                data:
                  cnr: MHAM030085272025
                  filename: order-1.pdf
                  extractedText: >-
                    ## Order below Exh.1 (Passed on 11/11/2025) ... disposed off
                    in view of pursis at Exh.06. (S. B. Kaldate) JMFC, Amravati.
                  aiAnalysis:
                    orderType: Final
                    outcome: Withdrawn
                    orderDate: '2025-11-11'
                    judge: Sharad Balbhim Kaldate
                    summary: >-
                      Execution proceeding disposed following a joint settlement
                      (Pursis Exh.06).
                    keyPoints:
                      - Both parties appeared with counsel
                      - Joint settlement filed
                      - Disposed as withdrawn
                    reliefGranted:
                      - Execution disposed per settlement
                    legalProvisions:
                      - Section 147, Bharatiya Nagarik Suraksha Sanhita
                meta:
                  request_id: 4000fc92-0016-f400-b63f-84710c7967bb
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: eci_live_...
      description: Your API key from https://ecourtsindia.com/dashboard/settings

````