# Get a state

Source: https://joinopenfile.com/docs/api/get-state
Index: https://joinopenfile.com/llms.txt

`GET /api/v1/states/{code}`

A state's filing fees, annual report, accepted company name endings and publication rules.

In the MCP server this is `get_state`.

## Example

```bash
curl https://api.joinopenfile.com/v1/states/$CODE
```

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `code` | string | Yes | Two-letter state code, like `WY`. |

## Errors

| Status | When |
| --- | --- |
| `404` | Not found, or the token is wrong. |

The body is the [error shape](https://joinopenfile.com/docs/errors.md).
