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 URL | https://api.hanzo.ai |
| Version | 1.0.0 |
| Operations | 8 |
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.aiEndpoints
Repos
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/git/repos | List the tenant's repos |
POST | /v1/git/repos | Create 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
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/git/{org}/{repo}/info/refs | Git smart-HTTP ref advertisement |
POST | /v1/git/{org}/{repo}/git-upload-pack | Git upload-pack (clone / fetch) |
POST | /v1/git/{org}/{repo}/git-receive-pack | Git receive-pack (push) |
Usage
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/git/usage | Per-repo + total storage bytes for the tenant |
How is this guide?