Read a workspace's plan, seats, and usage overview
Changed onBearer atc:read (or cookie session) — owner/admin only. Same scope floor as the sibling workspace-inventory reads (/coverage, /open-bugs, /recent-projects, /active-runs); cookie sessions hold the full capability set, so this constrains PATs only. bunkai_workspace_billing_overview is SECURITY INVOKER with no caller-supplied actor parameter; its own step-0 gate (bunkai_is_workspace_admin) restricts the read, and this route calls it through the caller's own RLS-scoped client, never a service-role client. A non-admin caller, an unknown workspace id, and a workspace the caller cannot see all collapse into the SAME 404 not_found — never 403, so the response never discloses more than the workspace's existence. The tier ladder (limits, price, display name) is NOT part of this payload; look it up client-side in lib/billing/plan-tiers.ts keyed by the returned plan.
Request
- Base URL: http://localhost:3000
- URL: http://localhost:3000/api/v1/workspaces/{id}/billing
- Auth: one of:
- API key in cookie sb-fmbpikzpkafptqximhxn-auth-token
- HTTP bearer
Path parameters
Response
The workspace's billing overview.
Changes
- warning
added the new
test_outside_plan_projectenum value to the/response property for the response status - warning
added the new
test_outside_plan_projectenum value to the/response property for the response status - warning
added the new
test_outside_plan_projectenum value to the/response property for the response status - warning
added the new
test_outside_plan_projectenum value to the/response property for the response status - warning
added the new
test_outside_plan_projectenum value to the/response property for the response status
- warning
- info
added the required property
to the response with the status
- info