Hanzo
OpenapiAffiliate

Answers the caller's share links, each with its URL and its funnel: clicks…

Answers the caller's share links, each with its URL and its funnel: clicks tracked, signups — orgs attributed with that code — and conversions, meaning…

GET /v1/affiliate/me/links

Addresshttps://api.hanzo.ai/v1/affiliate/me/links
MethodGET
Operationget_affiliate_me_links
AuthAuthorization: Bearer $HANZO_API_KEY

Answers the caller's share links, each with its URL and its funnel: clicks tracked, signups — orgs attributed with that code — and conversions, meaning how many of those signups have actually produced commission.

Signups and conversions are DERIVED from the commission ledger and never stored, so they cannot drift from the money. Clicks are the one stored counter and the one that is pure vanity.

Any pending public click pings are folded into the store before the read, in one batch — which is how the counters stay current without a database write per click. Scoped to the validated caller's own affiliate; a non-affiliate gets isAffiliate:false and the link cap.

Request

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

Response

StatusBodyMeaning
200affiliateLinksok

200 body — 11 fields.

FieldInTypeAlwaysDescription
isAffiliatebodybooleanIsAffiliate says whether the caller org has an affiliate record.
linksbodycodeView[]Links is the caller's share links, each with its URL and funnel.
links[].clicksbodyintegerClicks is how many pings this code has taken.
links[].codebodystringCode is the link's slug — 3–32 chars of a–z, 0–9 and hyphen — unique across the WHOLE directory, so any affiliate's code resolves an attribution.
links[].conversionsbodyintegerConversions is how many of those signups have actually produced positive commission for the caller.
links[].createdAtbodyintegerCreatedAt is when the link was minted, Unix seconds UTC.
links[].labelbodystringLabel is the caller's own note for the link ("twitter", "newsletter").
links[].signupsbodyintegerSignups is how many orgs were attributed with this code — DERIVED by counting attribution edges, never stored, so it cannot drift from the ledger.
links[].urlbodystringURL is the full shareable link, the brand host plus ?aff=<code>.
maxLinksbodyintegerMaxLinks is how many share links one affiliate may hold.
statusbodystringStatus is the caller's affiliate status: "applied", "approved" or "suspended"; absent for a non-affiliate.

Failure carries the platform error shape — see Errors.

Examples

hanzo affiliates me links get

Affiliate API · All Hanzo APIs · Interactive reference

How is this guide?

On this page