Hanzo
OpenapiGit

Returns per-repo and total storage bytes for the caller's org — the queryable,…

Returns per-repo and total storage bytes for the caller's org — the queryable, per-tenant number commerce and o11y meter on.

GET /v1/git/usage

Addresshttps://api.hanzo.ai/v1/git/usage
MethodGET
Operationget_git_usage
AuthAuthorization: Bearer $HANZO_API_KEY

Returns per-repo and total storage bytes for the caller's org — the queryable, per-tenant number commerce and o11y meter on. It spans EVERY project sub-scope, unlike the repo list, so a billing consumer sees the whole tenant footprint in one call. Sizes are last-measured values (create, push, mirror and gc each re-measure), not a live walk of the disk.

Request

GET /v1/git/usage takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200usageViewok

200 body — 6 fields.

FieldInTypeAlwaysDescription
orgbodystringOrg the rollup is for.
reposbodyusageRepo[]Repos is every repo the org owns, across every project sub-scope.
repos[].namebodystringName is the repo's org-unique handle.
repos[].projectbodystringProject is the sub-scope the repo lives in; absent for the default scope.
repos[].sizeBytesbodyintegerSizeBytes is the repo's on-disk size at its last measurement.
totalBytesbodyintegerTotalBytes is the sum over Repos — the org's whole git footprint.

Failure carries the platform error shape — see Errors.

Examples

hanzo git usage

Git API · All Hanzo APIs · Interactive reference

How is this guide?

On this page