Month-to-date coordinator spend for an initiative — per-user and initiative-wide token + USD totals, aggregated from `coordinator.consults` (SUM of `tokens_in` / `tokens_out` / `usd_cents` since the start of the current month, grouped by user)
GET/api/coordinator/cost
Month-to-date coordinator spend for an initiative — per-user and initiative-wide token + USD totals, aggregated from coordinator.consults (SUM of tokens_in / tokens_out / usd_cents since the start of the current month, grouped by user). Backs the cost tiles in Directory's coordinator chat header. Tenant + initiative isolation is enforced by the consults_tenant_read RLS policy, so a non-member reads all-zero totals.
Request
Responses
- 200
- 400
- 401
- 403
Successful response
Validation failure (malformed or missing initiativeId, unsupported period).
Caller is not authenticated.
Forbidden — the x-act-as-org selector named an organisation the caller is not an ACTIVE member of (or the caller lacks the required permission).