API Reference
Hanzo Authors API
OSS-author royalty program (hanzoai/cloud clients/authors).
OSS-author royalty program (hanzoai/cloud clients/authors).
Hanzo Authors API · All API references →
| Base URL | https://api.hanzo.ai |
| Version | 1.0.0 |
| Operations | 9 |
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
Admin
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/admin/authors | List all authors |
POST | /v1/admin/authors/sweep | Run accrual sweep |
POST | /v1/admin/authors/{id}/approve | Approve an author |
POST | /v1/admin/authors/{id}/suspend | Suspend an author |
POST | /v1/admin/authors/{id}/payout | Record a payout |
Authors
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/authors | Get my author program |
POST | /v1/authors/connect | Connect GitHub |
POST | /v1/authors/repos/verify | Verify a repo |
Deploys
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/authors/deploys/record | Record a deploy |
How is this guide?