> ## Documentation Index
> Fetch the complete documentation index at: https://docs-neevlegal.neeved.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List individual courts within a complex

> Returns all individual courts or benches within a court complex, including the presiding judge where available.



## OpenAPI

````yaml get /court-structure/states/{state}/districts/{districtCode}/complexes/{complexCode}/courts
openapi: 3.0.3
info:
  title: NeevLegal API
  description: >-
    The NeevLegal REST API provides structured, programmatic access to Indian
    court case data. Search cases, retrieve full case records by CNR number, and
    explore the court directory across district courts, high courts, and the
    Supreme Court of India.
  version: 1.0.0
servers:
  - url: https://api-neevlegal.neeved.com/api/v1
    description: Version 1
security: []
tags:
  - name: Case Detail
    description: Retrieve the complete case record for one or more CNR numbers.
  - name: Case Search
    description: >-
      Search across district courts, high courts, and the Supreme Court by party
      name, advocate, judge, FIR number, or other criteria.
  - name: Court Structure
    description: >-
      Browse the Indian court directory — states, districts, court complexes,
      and individual courts.
paths:
  /court-structure/states/{state}/districts/{districtCode}/complexes/{complexCode}/courts:
    get:
      tags:
        - Court Structure
      summary: List individual courts within a complex
      description: >-
        Returns all individual courts or benches within a court complex,
        including the presiding judge where available.
      parameters:
        - name: state
          in: path
          required: true
          schema:
            type: string
            example: MH
        - name: districtCode
          in: path
          required: true
          schema:
            type: string
            example: PUNE
        - name: complexCode
          in: path
          required: true
          schema:
            type: string
            example: MH001
      responses:
        '200':
          description: Courts in complex
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  response:
                    type: object
                    properties:
                      complexName:
                        type: string
                      complexCode:
                        type: string
                      districtName:
                        type: string
                      districtCode:
                        type: string
                      stateName:
                        type: string
                      stateCode:
                        type: string
                      highCourtName:
                        type: string
                        nullable: true
                        description: Associated high court, if applicable.
                      highCourtCode:
                        type: string
                        nullable: true
                        description: High court code, if applicable.
                      address:
                        type: string
                        nullable: true
                      city:
                        type: string
                        nullable: true
                      postalCode:
                        type: string
                        nullable: true
                      latitude:
                        type: number
                        nullable: true
                      longitude:
                        type: number
                        nullable: true
                      totalCourts:
                        type: number
                        description: Number of individual courts in this complex.
                      data:
                        type: array
                        description: Individual court rooms or benches within this complex.
                        items:
                          type: object
                          properties:
                            courtCode:
                              type: string
                              description: Unique identifier for this court.
                            courtName:
                              type: string
                              nullable: true
                              description: Name of the court or bench.
                            courtDivision:
                              type: string
                              nullable: true
                              description: >-
                                Division or subject matter specialisation, if
                                any.
                            judgeName:
                              type: string
                              nullable: true
                              description: >-
                                Name of the judge currently presiding at this
                                court.
                          required:
                            - courtCode
                            - courtName
                            - courtDivision
                            - judgeName
                    required:
                      - complexName
                      - complexCode
                      - districtName
                      - districtCode
                      - stateName
                      - stateCode
                      - highCourtName
                      - highCourtCode
                      - address
                      - city
                      - postalCode
                      - latitude
                      - longitude
                      - totalCourts
                      - data
                required:
                  - success
                  - response
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Complex not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - apiKeyAuth: []
components:
  schemas:
    ErrorResponse:
      type: object
      description: Standard error envelope returned on all non-2xx responses.
      properties:
        success:
          type: boolean
          description: Always false for error responses.
          example: false
        message:
          type: string
          description: Human-readable description of what went wrong.
          example: API key not found or has been revoked.
        moreInfo:
          type: string
          description: Additional context when available.
          example: No additional info found.
      required:
        - success
        - message
        - moreInfo
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.