Hanzo
OpenapiAffiliate

Answers the top affiliates by lifetime accrued commission, shown by OPT-IN…

Answers the top affiliates by lifetime accrued commission, shown by OPT-IN HANDLE with aggregate figures only, plus the caller's own exact rank.

GET /v1/affiliate/leaderboard

Addresshttps://api.hanzo.ai/v1/affiliate/leaderboard
MethodGET
Operationget_affiliate_leaderboard
AuthAuthorization: Bearer $HANZO_API_KEY

Answers the top affiliates by lifetime accrued commission, shown by OPT-IN HANDLE with aggregate figures only, plus the caller's own exact rank.

It never discloses an org identity and never a referred org's usage. An affiliate that has set no handle still OCCUPIES its rank but is not listed — so opting out hides the name, not the position, and the visible board must not be read as a complete roster.

The caller's own row carries its exact GLOBAL rank, computed over the whole approved set rather than over the page, so it is right well outside the top of the board. Only an approved affiliate has a rank. Requires a validated principal; a signed-in non-affiliate may read the board but gets no personal row.

Request

GET /v1/affiliate/leaderboard takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200affiliateBoardok

200 body — 13 fields.

FieldInTypeAlwaysDescription
leadersbodyleaderboardRow[]Leaders are the top opt-in affiliates, by handle and aggregate figures only.
leaders[].accruedCentsbodyintegerAccruedCents is that affiliate's lifetime commission accrued, in cents, and what the board is ordered by.
leaders[].handlebodystringHandle is the affiliate's self-chosen display name — the only identity the board ever carries.
leaders[].isYoubodybooleanIsYou marks the caller's own row, so a client can highlight it without matching on a handle.
leaders[].rankbodyintegerRank is the position in the GLOBAL approved set ordered by lifetime accrued commission, 1-based.
leaders[].referredCountbodyintegerReferredCount is how many orgs that affiliate directly referred — a count only, never which orgs.
totalbodyintegerTotal is the approved population where it is known; omitted where the top page truncated and the caller has no rank to derive it from.
youbodyleaderboardRow
you.accruedCentsbodyintegerAccruedCents is that affiliate's lifetime commission accrued, in cents, and what the board is ordered by.
you.handlebodystringHandle is the affiliate's self-chosen display name — the only identity the board ever carries.
you.isYoubodybooleanIsYou marks the caller's own row, so a client can highlight it without matching on a handle.
you.rankbodyintegerRank is the position in the GLOBAL approved set ordered by lifetime accrued commission, 1-based.
you.referredCountbodyintegerReferredCount is how many orgs that affiliate directly referred — a count only, never which orgs.

Failure carries the platform error shape — see Errors.

Examples

hanzo affiliates leaderboard

Affiliate API · All Hanzo APIs · Interactive reference

How is this guide?

On this page