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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# List states

> You need a state_code for list_districts, or want to know which states/UTs the portal serves.

## Request contract

* **Method and path:** POST /apis/v1/services-ecourts-gov-in/court-cases/list-states
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/services-ecourts-gov-in/court-cases/list-states`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/services-ecourts-gov-in.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "services-ecourts-gov-in.court-cases.list-states",
  "method": "POST",
  "path": "/apis/v1/services-ecourts-gov-in/court-cases/list-states",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {}
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {},
          "type": "object"
        }
      }
    },
    "required": false
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/services-ecourts-gov-in.json POST /apis/v1/services-ecourts-gov-in/court-cases/list-states
openapi: 3.1.0
info:
  description: ''
  title: India eCourts district court services
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    services-ecourts-gov-in:
      description: ''
      title: India eCourts district court services
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: d0e0f512b577c26f3ec9199fd028f75181f3b4879640453a889701764626a401
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/services-ecourts-gov-in/court-cases/get-case-by-cnr
    - /apis/v1/services-ecourts-gov-in/court-cases/list-court-complexes
    - /apis/v1/services-ecourts-gov-in/court-cases/list-districts
    - /apis/v1/services-ecourts-gov-in/court-cases/list-establishments
    - /apis/v1/services-ecourts-gov-in/court-cases/list-states
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:c52252121d2b5509b7c2123db8a128d3dc8251ef1946f4194b26ec2e3defcc3a
    facts_hash: d0e0f512b577c26f3ec9199fd028f75181f3b4879640453a889701764626a401
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: services-ecourts-gov-in
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/services-ecourts-gov-in/court-cases/list-states:
    post:
      tags:
        - India eCourts district court services
      summary: List states
      description: >-
        You need a state_code for list_districts, or want to know which
        states/UTs the portal serves.
      operationId: services-ecourts-gov-in.court-cases.list-states
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value: {}
            schema:
              additionalProperties: true
              properties: {}
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-05.
                  summary: Official provider example
                  value:
                    observed_at_ms: 1791171192228
                    source_url: >-
                      https://services.ecourts.gov.in/ecourtindia_v6/?p=casestatus/index
                    states:
                      - name: Andaman and Nicobar
                        state_code: '28'
                      - name: Andhra Pradesh
                        state_code: '2'
                      - name: Arunachal Pradesh
                        state_code: '36'
                      - name: Assam
                        state_code: '6'
                      - name: Bihar
                        state_code: '8'
                      - name: Chandigarh
                        state_code: '27'
                      - name: Chhattisgarh
                        state_code: '18'
                      - name: Delhi
                        state_code: '26'
                      - name: Goa
                        state_code: '30'
                      - name: Gujarat
                        state_code: '17'
                      - name: Haryana
                        state_code: '14'
                      - name: Himachal Pradesh
                        state_code: '5'
                      - name: Jammu and Kashmir
                        state_code: '12'
                      - name: Jharkhand
                        state_code: '7'
                      - name: Karnataka
                        state_code: '3'
                      - name: Kerala
                        state_code: '4'
                      - name: Ladakh
                        state_code: '33'
                      - name: Lakshadweep
                        state_code: '37'
                      - name: Madhya Pradesh
                        state_code: '23'
                      - name: Maharashtra
                        state_code: '1'
                      - name: Manipur
                        state_code: '25'
                      - name: Meghalaya
                        state_code: '21'
                      - name: Mizoram
                        state_code: '19'
                      - name: Nagaland
                        state_code: '34'
                      - name: Odisha
                        state_code: '11'
                      - name: Puducherry
                        state_code: '35'
                      - name: Punjab
                        state_code: '22'
                      - name: Rajasthan
                        state_code: '9'
                      - name: Sikkim
                        state_code: '24'
                      - name: Tamil Nadu
                        state_code: '10'
                      - name: Telangana
                        state_code: '29'
                      - name: The Dadra And Nagar Haveli And Daman And Diu
                        state_code: '38'
                      - name: Tripura
                        state_code: '20'
                      - name: Uttarakhand
                        state_code: '15'
                      - name: Uttar Pradesh
                        state_code: '13'
                      - name: West Bengal
                        state_code: '16'
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            List the Indian states and union territories the district-court
            portal covers, with the numeric state_code every other call takes.
            Parsed from the case-status page's state selector
            (ep-casestatus-index); the portal has one host for all states, so
            this list is the entry point of the location cascade.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `observed_at_ms` | number |  |

            | `source_url` | string |  |

            | `states` | object[] |  |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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