Record Haiku Spend
Changed onRecord one UTC day's Haiku spend (kind haiku_spend.day_reported, business_events ledger).
Refuses a day that has not started yet (UTC): the figure for a day is only final once that day has ended, and the poster reports the previous day. A later post for the same day is a new event; the read takes the latest per day, so a corrected figure replaces the old one and the history stays. Read by rooster/ai_accounts.py (haiku_api).
Request
- Base URLhttps://api.pigeonly.com (the document declares no server; this is the origin it was published from)
- Authnone declared
Request body
One UTC day's Haiku API spend, posted by the Mac that runs the build swarm (open item CSB-OPEN-5).
Whose rule: the owner's "yes" (sweep-6 CSB-OPEN, 2026-11-16): the Mac posts one figure a day. The figure is the gatekeeper's settled spend for that UTC day (~/damien/state/haiku-proxy/spend.json), in US dollars as a decimal string (never a float: rounding must not be taken for the company's own figure). Not integer cents: this is API spend the Mac measured, not money moved, so business_events.amount_cents stays None.
Response
Successful Response
Changes
- info
endpoint added
- info