Quotas API
Read an organization's plan tier and usage against its limits.
GET /v1/organizations/{organization_id}/quota
GET /v1/accounts/{account_id}/quotaBoth paths return the same data for the same ID. The /v1/accounts/... path is the older name for the same route.
Returns the organization's plan tier and current usage against each limit.
Permission: read on the organization
See also: Quotas
curl -s -H "Authorization: Bearer $TOKEN" \
"https://platform.groundfloor.cloud/v1/organizations/$ORGANIZATION_ID/quota" | jq .Response
{
"account_id": "…",
"organization_id": "…",
"plan_tier": "free",
"limits": [
{ "key": "workspaces", "label": "Workspaces", "unit": "count", "current": 1, "limit": 3, "description": "…" },
{ "key": "files.bytes", "label": "Storage", "unit": "bytes", "current": 0, "limit": 1073741824, "description": "…" }
],
"note": "…"
}account_idandorganization_idare the same ID.plan_tierisfree,indie,business, orenterprise.- Each entry in
limitshas akey, alabel, aunit(count,bytes,cu, orcurrency), thecurrentusage, and the tier'slimit. Alimitofnullmeans no ceiling applies. noteis a free-text caveat. At present it says the tier ceilings are placeholders until pricing is final, so don't hard-code the numbers.
Limit keys
| Key | Unit | What current counts |
|---|---|---|
workspaces | count | Workspaces in the organization |
files.bytes | bytes | Total size of active files plus Coderunner persistent disks across all its workspaces |
audit.events | count | Audit events recorded for the organization and its workspaces. Internal platform events that you can't see in the Activity log aren't counted |
llm.cu | cu | Always 0 for now: the LLM Gateway is coming soon and not available yet |
Two of these limits are enforced elsewhere: creating a workspace past the workspaces limit returns 409 (create workspace), an upload that would pass the files.bytes limit returns 507, and adding or growing a persistent disk past it returns 409 with X-Groundfloor-Reason: plan_limit. The audit.events and llm.cu limits are reported but not enforced by the API.
The plan's per-workspace limits on Coderunners (CPU, memory and instances per service, and how many) and on managed databases aren't in this response. Read them for a workspace with GET /v1/workspaces/{workspace_id}/limits. Going over them returns 409 with the header X-Groundfloor-Reason: plan_limit.