goldberry

All docs ↓

0015. JSON API at /api/v1 with household bearer tokens

Context

Bulk work (backfilling entries, setting up several kids) and automation (scripts, Home Assistant, AI harnesses) are clumsy through HTMX forms. The service layer already owns every money rule, so an API is a new web-layer sibling, not a refactor.

Decision

Consequences

Scripts and agents get a stable contract. The money rules stay in one place. A leaked read token exposes balances, not the ability to move money. Every API action traces to a named parent, at the cost of tokens dying with that account.

View this page on GitHub