Skip to content

Get account storage usage

GET/v1/storage/usage

Returns 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

200

Your account's storage usage.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataobject
Show attributes
used_bytesintegerRequired

Total bytes used by file storage and build artifacts together.

free_bytesintegerRequired

Combined free allowance of file storage and build artifacts, in bytes.

billable_bytesintegerRequired

Total bytes above the combined free allowance.

max_upload_bytesintegerRequired

Maximum size of a single bucket upload, in bytes.

usage_percentageintegerRequired

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

file_storageobjectRequired

Bucket objects (ready only) across all your workspaces. Free allowance is 10 GiB by default.

Show attributes
used_bytesintegerRequired

Bytes used in this storage type.

free_bytesintegerRequired

Free allowance for this storage type, in bytes.

billable_bytesintegerRequired

Bytes above the free allowance for this storage type.

usage_percentageintegerRequired

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

build_artifactsobjectRequired

Deployment build artifacts. Free allowance is 1 GiB by default.

Show attributes
used_bytesintegerRequired

Bytes used in this storage type.

free_bytesintegerRequired

Free allowance for this storage type, in bytes.

billable_bytesintegerRequired

Bytes above the free allowance for this storage type.

usage_percentageintegerRequired

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

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.