GET /api/admin/billing?from=yyyy-mm-dd&to=yyyy-mm-dd (default: the last 90 days to yesterday, at most 400 days): platform billing from the nightly rollups (the staff-console specification). Aggregates only, no personal data, so no reason prompt (billing.read's reason is per account). status: "no_rollup" until the rollup job has written a day.Staff cookie session; permission billing.read.Source snapshot: admin/src/app/api/admin/billing/route.ts. This reference describes the current working tree, not proof of deployment. The response service types and validators remain authoritative.
Request
Authorization
API Key
Add parameter in cookie
__Host-hwa_session
Example:
__Host-hwa_session: ********************
or
Query Params
Responses
🟢200
application/json
GET /api/admin/billing?from=yyyy-mm-dd&to=yyyy-mm-dd (default: the last 90 days to yesterday, at most 400 days): platform billing from the nightly rollups (the staff-console specification). Aggregates only, no personal data, so no reason prompt (billing.read's reason is per account). status: "no_rollup" until the rollup job has written a day.