Hanzo
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 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

Admin

MethodEndpointDescription
GET/v1/admin/affiliatesList all affiliates
POST/v1/admin/affiliates/sweepRun the accrual sweep
POST/v1/admin/affiliates/{id}/approveApprove an affiliate and mint its code
POST/v1/admin/affiliates/{id}/suspendSuspend an affiliate
POST/v1/admin/affiliates/{id}/payoutRecord a payout

Affiliate

MethodEndpointDescription
GET/v1/affiliatesGet my affiliate status
POST/v1/affiliates/applyApply to the affiliate program
POST/v1/affiliates/attributeRecord affiliate attribution

All Hanzo APIs · OpenAPI spec

How is this guide?

On this page