Hanzo
OpenapiMarketing

Records an opt-out for the org (admin / self-service management).

Records an opt-out for the org (admin / self-service management). Address is required; channel defaults to email.

POST /v1/marketing/suppressions

Addresshttps://api.hanzo.ai/v1/marketing/suppressions
MethodPOST
Operationpost_marketing_suppressions
AuthAuthorization: Bearer $HANZO_API_KEY

Records an opt-out for the org (admin / self-service management). Address is required; channel defaults to email. It is idempotent: re-suppressing the same tuple keeps the original record rather than erroring. From here on the ONE send gate refuses that recipient on that channel.

Request

4 fields, body application/json (required).

FieldInTypeRequiredDescription
addressbodystringAddress is the recipient, normalized (lower-cased, trimmed) so an opt-out cannot be slipped past on a case or whitespace difference.
channelbodystringChannel is the surface opted out of: email, sms, social, meta, google or tiktok.
createdAtbodyintegerCreatedAt is unix seconds, server-assigned.
reasonbodystringReason is a free-text note, capped at 1024 bytes.

Response

StatusBodyMeaning
200Suppressionok

200 body — 4 fields.

FieldInTypeAlwaysDescription
addressbodystringAddress is the recipient, normalized (lower-cased, trimmed) so an opt-out cannot be slipped past on a case or whitespace difference.
channelbodystringChannel is the surface opted out of: email, sms, social, meta, google or tiktok.
createdAtbodyintegerCreatedAt is unix seconds, server-assigned.
reasonbodystringReason is a free-text note, capped at 1024 bytes.

Failure carries the platform error shape — see Errors.

Examples

hanzo marketing suppressions create

Marketing API · All Hanzo APIs · Interactive reference

How is this guide?

On this page