Get a workspace's storage usage
GET/api/owners/{handle}/storage/usage
getOwnerStorageUsage
The owner's workspace storage: `bytes_used` is the larger of the counters the storage quota gates charge and `bytes_quota` the allowance they compare against; the workspace is full once `bytes_used` reaches it. Branch tips (deleted, overwritten or reverted) whose objects are still retained (and counted in `bytes_used`) are `retained_branch_count`; the first can be released from `earliest_retention_expiry` on. `retained_bytes` is the stored size only those tips hold, as last measured (already inside `bytes_used`), or null while one of them is not measured yet. Requires workspace membership (non-members get 404).
Authentication is not described for this operation in the spec — that does not mean it is public. Check tokens and scopes.
curl
curl -X GET 'https://neosource.dev/api/owners/HANDLE/storage/usage'fetch
fetch("https://neosource.dev/api/owners/HANDLE/storage/usage", {
method: "GET",
});Path parameters
handlerequiredHandle of the owner — either a user account or an organization.
Responses
200Storage usage
application/json
403Forbidden — one of: forbidden, needs_scope
application/json
Standard errors
Bodies documented once for the whole API — see standard errors.
- 400Bad Request — one of: invalid_input
- 404Not Found — one of: not_found
- 429Rate limited — retry after the `Retry-After` header
- 500Internal server error
- 503Service temporarily unavailable / at capacity — retry after the `Retry-After` header
- 504Gateway timeout — the request exceeded the server's handling budget