> ## 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 court complexes within a district

> Returns all court complexes in a district with address and geolocation where available.



## OpenAPI

````yaml get /court-structure/states/{state}/districts/{districtCode}/complexes
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:
    get:
      tags:
        - Court Structure
      summary: List court complexes within a district
      description: >-
        Returns all court complexes in a district with address and geolocation
        where available.
      parameters:
        - name: state
          in: path
          required: true
          description: Two-letter state code.
          schema:
            type: string
            example: MH
        - name: districtCode
          in: path
          required: true
          description: District code from the districts endpoint.
          schema:
            type: string
            example: PUNE
      responses:
        '200':
          description: Complexes in district
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  response:
                    type: object
                    properties:
                      districtName:
                        type: string
                      districtCode:
                        type: string
                      stateCode:
                        type: string
                      totalComplexes:
                        type: number
                      data:
                        type: array
                        items:
                          type: object
                          properties:
                            complexName:
                              type: string
                              description: Name of the court complex.
                              example: Pune District Court
                            complexCode:
                              type: string
                              description: Unique complex identifier.
                              example: MH001
                            address:
                              type: string
                              nullable: true
                              description: Street address of the complex.
                            city:
                              type: string
                              nullable: true
                              description: City where the complex is located.
                            postalCode:
                              type: string
                              nullable: true
                              description: PIN code.
                            latitude:
                              type: number
                              nullable: true
                              description: Latitude coordinate for map integration.
                            longitude:
                              type: number
                              nullable: true
                              description: Longitude coordinate for map integration.
                          required:
                            - complexName
                            - complexCode
                            - address
                            - city
                            - postalCode
                            - latitude
                            - longitude
                    required:
                      - districtName
                      - districtCode
                      - stateCode
                      - totalComplexes
                      - data
                required:
                  - success
                  - response
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: District 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.