Hanzo
API Reference

Hanzo Git API

S3-backed Git hosting native to the Hanzo Cloud binary — the `/v1/git/*`

S3-backed Git hosting native to the Hanzo Cloud binary — the /v1/git/*

Hanzo Git API · All API references →

Base URLhttps://api.hanzo.ai
Version1.0.0
Operations8

Authentication

  • bearerAuth — HTTP bearer

All Hanzo APIs share one bearer credential and common error and pagination conventions. See API conventions.

curl -H "Authorization: Bearer $HANZO_API_KEY" https://api.hanzo.ai

Endpoints

Repos

MethodEndpointDescription
GET/v1/git/reposList the tenant's repos
POST/v1/git/reposCreate a bare repo
GET/v1/git/repos/{name}Repo detail (branches + resolved HEAD)
DELETE/v1/git/repos/{name}Delete a repo and purge its storage

Smart HTTP

MethodEndpointDescription
GET/v1/git/{org}/{repo}/info/refsGit smart-HTTP ref advertisement
POST/v1/git/{org}/{repo}/git-upload-packGit upload-pack (clone / fetch)
POST/v1/git/{org}/{repo}/git-receive-packGit receive-pack (push)

Usage

MethodEndpointDescription
GET/v1/git/usagePer-repo + total storage bytes for the tenant

All Hanzo APIs · OpenAPI spec

How is this guide?

On this page