# history.facets

Count History by person, source and action for a date range (from/to), with the first and last change, so filters only offer choices that exist.

`GET | POST /api/v1/accounting/history.facets`

Permissions: `accounting:read` · Roles: admin, finance

MCP tool: `accounting_history_facets`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `from` | string |  | The first date to include, as YYYY-MM-DD. at most 40 characters. |
| `to` | string |  | The last date to include, as YYYY-MM-DD. at most 40 characters. |

## Example request

```bash
curl https://app.getoatmilk.com/api/v1/accounting/history.facets \
  -H "Authorization: Bearer $OATMILK_API_KEY"
```

Reference page: https://app.getoatmilk.com/docs/api/history.facets
