Hanzo
OpenapiGit

Returns the repos in the caller's scope, most recently updated first.

Returns the repos in the caller's scope, most recently updated first.

GET /v1/git/repos

Addresshttps://api.hanzo.ai/v1/git/repos
MethodGET
Operationget_git_repos
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the repos in the caller's scope, most recently updated first. The scope is the request principal's — the gateway-minted org and its optional project — never anything off the wire, so a caller only ever sees its own. Rows carry no branches or HEAD; read one repo for those.

Request

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

Response

StatusBodyMeaning
200repoListok

200 body — 15 fields.

FieldInTypeAlwaysDescription
databodyrepoView[]Data holds the repos in scope, most recently updated first.
data[].branchesbodystring[]Branches are the repo's branch names.
data[].cloneUrlbodystringCloneURL is the HTTPS smart-HTTP remote git clone takes.
data[].createdAtbodystringCreatedAt is RFC 3339 UTC.
data[].defaultBranchbodystringDefaultBranch is where HEAD points on a fresh repo ("main").
data[].descriptionbodystringDescription is the caller-supplied blurb (max 4KiB).
data[].headbodystringHead is the resolved HEAD commit, empty on an empty repo.
data[].idbodystringID is the repo's stable, prefixed identifier ("repo_" + 128 random bits).
data[].namebodystringName is the org-unique handle, and the last path segment of both URLs below.
data[].orgbodystringOrg owns the repo — the gateway-minted X-Org-Id, and the isolation key.
data[].projectbodystringProject is the optional sub-scope the repo lives in; absent for the org's default scope.
data[].publicbodybooleanPublic grants ANONYMOUS read (fetch) only; push and the whole control plane stay org-authed.
data[].sizeBytesbodyintegerSizeBytes is the repo's measured on-disk size, re-measured on create, after each push, and after a gc.
data[].sshUrlbodystringSSHURL is the scp-style SSH remote (git@host:org/repo.git).
data[].updatedAtbodystringUpdatedAt is RFC 3339 UTC, empty until the first write.

Failure carries the platform error shape — see Errors.

Examples

hanzo git repos list

Git API · All Hanzo APIs · Interactive reference

How is this guide?

On this page