Hanzo
OpenapiMarketing

Is the PUBLIC one-click endpoint (no principal): a recipient clicks the signed…

Is the PUBLIC one-click endpoint (no principal): a recipient clicks the signed link in an email footer.

GET /v1/marketing/unsubscribe

Addresshttps://api.hanzo.ai/v1/marketing/unsubscribe
MethodGET
Operationget_marketing_unsubscribe
AuthAuthorization: Bearer $HANZO_API_KEY

Is the PUBLIC one-click endpoint (no principal): a recipient clicks the signed link in an email footer. The token binds (org, channel, address), so a caller can only opt OUT exactly the tuple it was minted for — never another address and never another org. An invalid token is refused, and a deployment with no KMS-sealed key refuses rather than accepting anything.

Request

4 fields.

FieldInTypeRequiredDescription
orgquerystringOrg is the org the link was minted for.
channelquerystringChannel is the surface to opt out of.
addressquerystringAddress is the recipient to opt out.
tokenquerystringToken is the HMAC over (org, channel, address).

Response

StatusBodyMeaning
200Unsubscribedok

200 body — 3 fields.

FieldInTypeAlwaysDescription
addressbodystringAddress is the recipient now opted out, normalized (lower-cased, trimmed) to the form the send gate matches on — so it can differ in case from the address the…
channelbodystringChannel is the ONE surface opted out of: email, sms, social, meta, google or tiktok.
unsubscribedbodybooleanUnsubscribed is always true here: the opt-out is idempotent, so a second click on the same link confirms the same thing rather than reporting nothing changed.

Failure carries the platform error shape — see Errors.

Examples

hanzo marketing unsubscribe

Marketing API · All Hanzo APIs · Interactive reference

How is this guide?

On this page