# Get divisions table

`GET /api/dropdown/divisions/table`

Divisions from the divisions table for dropdown/table display. Successful reads are shared-cacheable for approximately 60 seconds. Cache keys include the complete request URL and query string, and responses vary by Origin. Requests with latest=true and error responses use Cache-Control: no-store.

**Query parameters**

- `district` (string, optional): Only options in this district

**Returns**

- `success` (enum) One of: `true`.
- `data` (array of objects)
  - `value` (string): The value to send back as a filter
  - `label` (string): Display text, e.g. "District 74"
  - `district` (nullable string)
  - `division` (string)
- `metadata` (object)
  - `timestamp` (timestamp)
  - `count` (integer): Number of options in data
  - `district` (string): The district filter applied, or "all"
  - `last_updated` (timestamp)

**Errors**

- `422`: A path or query parameter has an invalid value
- `500`: Internal server error

**Example request**

```bash
curl "https://tm-api.devinpearson.me/api/dropdown/divisions/table"
```

**Example response**

```json
{
  "success": true,
  "data": [
    {
      "value": "string",
      "label": "string",
      "district": "74",
      "division": "A"
    }
  ],
  "metadata": {
    "timestamp": "2026-11-19T04:30:00.000Z",
    "count": 0,
    "district": "74",
    "last_updated": "2026-11-19T04:30:00.000Z"
  }
}
```
