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

# Codes

> GET /api/gov/codes

## List code editions

```bash theme={null}
GET /api/gov/codes
```

### Response

```json theme={null}
{
  "editions": [
    {
      "id": "ed_abc123",
      "baseName": "International Building Code",
      "edition": "2021",
      "localTitle": "Austin Building Code 2021",
      "sourceUrl": "https://codes.iccsafe.org/...",
      "jurisdictionId": "jur_xyz",
      "codeType": "building",
      "_count": { "codeSections": 1247 }
    }
  ]
}
```

## Get edition detail

```bash theme={null}
GET /api/gov/codes/:editionId
```

Returns full detail for a single code edition including section count and metadata.
