/v1/storage/usageReturns how much storage your account uses across all your workspaces, split into file storage (bucket objects) and build artifacts (deployment builds), compared with the free allowance.
This endpoint is account-level, so it does not take an X-Workspace-Slug header. For a
single workspace's bucket usage, use
Get workspace bucket usage.
Only objects whose upload has been completed (status ready) count towards usage.
Authentication
Send your API key as Authorization: Bearer <token>.
Response
Your account's storage usage.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataobjectShow attributesHide attributes
used_bytesintegerRequiredTotal bytes used by file storage and build artifacts together.
free_bytesintegerRequiredCombined free allowance of file storage and build artifacts, in bytes.
billable_bytesintegerRequiredTotal bytes above the combined free allowance.
max_upload_bytesintegerRequiredMaximum size of a single bucket upload, in bytes.
usage_percentageintegerRequiredused_bytes as a whole-number percentage of free_bytes, rounded down.
file_storageobjectRequiredBucket objects (ready only) across all your workspaces. Free allowance is 10 GiB by default.
Show attributesHide attributes
used_bytesintegerRequiredBytes used in this storage type.
free_bytesintegerRequiredFree allowance for this storage type, in bytes.
billable_bytesintegerRequiredBytes above the free allowance for this storage type.
usage_percentageintegerRequiredused_bytes as a whole-number percentage of free_bytes, rounded down.
build_artifactsobjectRequiredDeployment build artifacts. Free allowance is 1 GiB by default.
Show attributesHide attributes
used_bytesintegerRequiredBytes used in this storage type.
free_bytesintegerRequiredFree allowance for this storage type, in bytes.
billable_bytesintegerRequiredBytes above the free allowance for this storage type.
usage_percentageintegerRequiredused_bytes as a whole-number percentage of free_bytes, rounded down.
Errors
| Status | Meaning |
|---|---|
401 | The API key is missing, invalid, expired or revoked. |
403 | You cannot access the workspace, your role does not allow this action, or the account is suspended. |
Errors use the standard error format.