GET /api/v1/admin/orgs/:slug/usage
This page is auto-generated from
src/admin/routes.ts. Do not edit by hand — seedocs/dev/docs-auto-sync.md.
:warning: Heuristic extraction — not a contract. Response shapes below are mined from
c.json(...)literals in the handler via an AST walker. Computed fields, ternaries, and non-literal returns are shown as placeholders. Refer to the linked source file for the authoritative behaviour.
GET /api/v1/admin/orgs/:slug/usage
Section titled “GET /api/v1/admin/orgs/:slug/usage”Authentication
Section titled “Authentication”Requires the following capability(ies):
overview:r
Middleware
Section titled “Middleware”Other middleware observed on this route (heuristic):
requireCapability
Description
Section titled “Description”GET /api/v1/admin/orgs/:slug/usage — 12-month rolling history + the tier’s cap. Drives the super-admin (#230) per-customer drill-down and the customer-facing dashboard usage page (#234) — they consume the same shape, with the cap field differentiating “approaching limit” warnings. #336 — gated on overview:r (usage shows up on the dashboard overview).
Responses
Section titled “Responses”HTTP 404
Section titled “HTTP 404”{ "error": "Org not found"}HTTP 200 (default)
Section titled “HTTP 200 (default)”{ "slug": <slug>, "tier": <member-expr>, "cap": { "softCap": <member-expr>, "hardCap": <member-expr> }, "current": <member-expr>, "history": <history>}Source
Section titled “Source”- File:
src/admin/routes.ts - Line: 4281