Get the org-wide counts the plan caps are enforced against
GET/api/v1/organizations/current/resource-usage
Return how many projects, API keys and webhooks the org has.
Any org member may call this, like billing-summary and for the same
reason: the project quota meter renders on the dashboard, where the lowest
role that can create a project is manager.
These are counts of the org, not of what the caller can see. That is the whole point — a client comparing its own visible list against an org-wide cap tells a manager they have room they do not have, and hides the wall from the person who is about to hit it.
- API-key scope required:
org:read.
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 422
- 429
- 500
Successful Response
Bad request — malformed input or failed validation.
Missing, expired, or invalid credentials.
Authenticated but not authorized for this resource. Note: cross-organization reads return 404, not 403.
Resource not found, or hidden for tenant-enumeration safety (the caller lacks permission to know whether the resource exists).
Conflict — the current resource state does not allow this operation (e.g. assessment already started, email already in use).
Semantic validation failure — request shape was valid but contents were not.
Too many requests — rate limited. Retry after the window resets.
Internal server error — unexpected failure.