/v1/asset-buckets/usageReturns how many bytes the workspace's bucket objects use, compared with the account's free file storage allowance, plus the maximum size of a single upload.
Only objects whose upload has been completed (status ready) are counted. The free
allowance is shared across all your workspaces. See
Get account storage usage for the account-wide
total.
Requires read access to the workspace (any role).
Authentication
Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.
Headers
X-Workspace-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
The workspace's bucket usage.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataobjectShow attributesHide attributes
used_bytesintegerRequiredTotal size of the workspace's ready bucket objects, in bytes.
free_bytesintegerRequiredYour account's free file storage allowance, in bytes.
billable_bytesintegerRequiredBytes above the free allowance (used_bytes minus free_bytes, never below zero).
max_upload_bytesintegerRequiredMaximum size of a single upload, in bytes.
usage_percentageintegerRequiredused_bytes as a whole-number percentage of free_bytes, rounded down. Can exceed 100.
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.