API Reference
Hanzo Affiliates API
Per-org affiliate program paying partners an ongoing commission on referred customers' metered spend (hanzoai/cloud).
Per-org affiliate program paying partners an ongoing commission on referred customers' metered spend (hanzoai/cloud).
Hanzo Affiliates 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
Admin
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/admin/affiliates | List all affiliates |
POST | /v1/admin/affiliates/sweep | Run the accrual sweep |
POST | /v1/admin/affiliates/{id}/approve | Approve an affiliate and mint its code |
POST | /v1/admin/affiliates/{id}/suspend | Suspend an affiliate |
POST | /v1/admin/affiliates/{id}/payout | Record a payout |
Affiliate
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/affiliates | Get my affiliate status |
POST | /v1/affiliates/apply | Apply to the affiliate program |
POST | /v1/affiliates/attribute | Record affiliate attribution |
How is this guide?