Skip to content

Get the volume summary

GET/v1/volumes/summary

Returns totals across the workspace's volumes. Volumes that are being deleted are not counted.

Used space comes from the last filesystem usage reported by each VM's guest agent, so volumes that have never been mounted count as empty.

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

Storage totals for the workspace's volumes.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataobject
Show attributes
total_volumesintegerRequired

Number of volumes, excluding those being deleted.

total_storage_bytesintegerRequired

Combined provisioned size of those volumes, in bytes (size_gib × 1024³).

used_storage_bytesintegerRequired

Combined used bytes from each volume's last usage report.

available_storage_bytesintegerRequired

total_storage_bytes minus used_storage_bytes, or 0 if used exceeds total.

total_used_percentnumberRequired

used_storage_bytes as a percentage of total_storage_bytes. 0 when there are no volumes.

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.