Skip to content

Get workspace bucket usage

GET/v1/asset-buckets/usage

Returns 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-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Response

200

The workspace's bucket usage.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataobject
Show attributes
used_bytesintegerRequired

Total size of the workspace's ready bucket objects, in bytes.

free_bytesintegerRequired

Your account's free file storage allowance, in bytes.

billable_bytesintegerRequired

Bytes above the free allowance (used_bytes minus free_bytes, never below zero).

max_upload_bytesintegerRequired

Maximum size of a single upload, in bytes.

usage_percentageintegerRequired

used_bytes as a whole-number percentage of free_bytes, rounded down. Can exceed 100.

Errors

StatusMeaning
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.

Errors use the standard error format.