---
title: "Districts for a state"
method: GET
path: "/states/{code}/districts"
tags: ["Reference data"]
---

# Districts for a state

`GET /states/{code}/districts`

## Request

- Base URL: `https://esahayak.io/api/v1`
- URL: `https://esahayak.io/api/v1/states/{code}/districts`
- Auth: HTTP bearer

Returns districts for states that require an SRO. States without SRO districts return an empty `data` array (not a 404).

## Path parameters

- `code` string, required

## Response `200`

District list (empty if this state has no SRO districts).

- object
  - `stateCode` string
  - `data` object[]
    - `code` string
    - `name` string
  - `count` integer

## Other responses

- `401`: Missing / invalid / expired / revoked key

---

[API](https://skmtc.dev/esahayak/apis/esahayak-stamp-api.md) - [All operations](https://skmtc.dev/esahayak/apis/esahayak-stamp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/esahayak/apis/esahayak-stamp-api/revisions/cca124862a3e?raw)
