/v1/volumes/summaryReturns 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-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
Storage totals for the workspace's volumes.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataobjectShow attributesHide attributes
total_volumesintegerRequiredNumber of volumes, excluding those being deleted.
total_storage_bytesintegerRequiredCombined provisioned size of those volumes, in bytes (size_gib × 1024³).
used_storage_bytesintegerRequiredCombined used bytes from each volume's last usage report.
available_storage_bytesintegerRequiredtotal_storage_bytes minus used_storage_bytes, or 0 if used exceeds total.
total_used_percentnumberRequiredused_storage_bytes as a percentage of total_storage_bytes. 0 when there are no volumes.
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.