---
title: "Get state by code"
method: GET
path: "/state/{state_code}"
tags: ["States"]
---

# Get state by code

`GET /state/{state_code}`

## Request

- Base URL: `https://queries.test.envia.com`
- URL: `https://queries.test.envia.com/state/{state_code}`
- Auth: HTTP bearer

Get state details by state code. Examples: **US** - AL (Alabama), TX (Texas), NY (New York); **Mexico** - NL (Nuevo León), AG (Aguascalientes), BC (Baja California)

## Path parameters

- `state_code` string, required

## Response `200`

Successful response

- object
  - `data` object[]: State information
    - `name` string: State name
    - `code_2_digits` string: Two-digit state code
    - `code_3_digits` string: Three-digit state code
    - `country_code` string: Country code

---

[API](https://skmtc.dev/envia/apis/envia-queries-api.md) - [All operations](https://skmtc.dev/envia/apis/envia-queries-api/llms.txt) - [OpenAPI document](https://skmtc.dev/envia/apis/envia-queries-api/revisions/56f601a52f3f?raw)
