Access & visibility
Allow billing.GetStorageUsage on your API key.
Workspace access by default. Private member data requires approved member delegation through Brigg-Act-As; the key supplies permissions while private ownership and project boundaries remain enforced.
Request
No parameters. Send an empty JSON object ({}).
Response
Returns 200 OK with a JSON body.
planstringRequiredCurrent workspace subscription plan.
quota_bytesnumberRequiredStorage allowance for the workspace, in bytes.
used_bytesnumberRequiredTotal storage currently used, in bytes.
user_bytesnumberRequiredStorage used by personal content, in bytes.
Errors & retries
This operation reads data. It needs no idempotency key and can be retried after a transient failure.
For rate limits, follow the server’s retry guidance and back off. See HTTP errors and safe retries and limits.
| HTTP status | Code | What to do |
|---|---|---|
| 400 | invalid_json |
Send a JSON object with Content-Type: application/json. |
| 400 | invalid_input |
Check the request fields and types. |
| 401 | invalid_key |
The workspace API key is missing, invalid or revoked. |
| 403 | forbidden |
Check the key’s operation and resource grants. If Brigg-Act-As is supplied, the key must be authorized to delegate to that member. |
| 404 | not_found |
The requested operation or resource is not available to this credential. |
| 429 | rate_limited |
Wait for Retry-After before retrying. |
Next steps
JSON schemas
Use the complete schemas for validation or client generation.
Full request JSON schema
{
"type": "object",
"properties": {},
"additionalProperties": false,
"examples": [
{}
]
}Full response JSON schema
{
"type": "object",
"properties": {
"plan": {
"type": "string",
"description": "Current workspace subscription plan."
},
"quota_bytes": {
"type": "number",
"description": "Storage allowance for the workspace, in bytes."
},
"used_bytes": {
"type": "number",
"description": "Total storage currently used, in bytes."
},
"shared_bytes": {
"type": "number",
"description": "Storage used by workspace-shared content, in bytes."
},
"user_bytes": {
"type": "number",
"description": "Storage used by personal content, in bytes."
}
},
"required": [
"plan",
"quota_bytes",
"used_bytes",
"shared_bytes",
"user_bytes"
],
"additionalProperties": false,
"examples": [
{
"plan": "team",
"quota_bytes": 10737418240,
"used_bytes": 1610612736,
"shared_bytes": 1073741824,
"user_bytes": 536870912
}
]
}