Hanzo
OpenapiDestination

Connect one conversion destination for your org, or update the one you have

Stores the addressed platform's non-secret ids (its measurement, pixel or dataset ids) and seals its API credential into KMS under a path scoped to the…

POST /v1/destination/{platform}

Addresshttps://api.hanzo.ai/v1/destination/{platform}
MethodPOST
Operationpost_destination_by_platform
AuthAuthorization: Bearer $HANZO_API_KEY

Stores the addressed platform's non-secret ids (its measurement, pixel or dataset ids) and seals its API credential into KMS under a path scoped to the caller's own org, then answers the same status card the read routes do — with live telling you whether the credential actually resolves right now. The body's property NAMES are the platform's own: each field the platform declares, plus each secret under its camelCase name, so the accepted keys differ per platform and a missing REQUIRED field is refused. Connecting is an ORG ADMIN action — a validated member without the admin bit gets 403 — and it fails closed with 503 when the KMS master key is unavailable rather than persisting a destination whose secret was never sealed. The secret itself never appears in the response, in the store, or in a log line; only its NAME is ever published. Set enabled to false to keep the connection but stop the analytics fan-out to it.

Request

2 fields, body application/json.

FieldInTypeRequiredDescription
platformpathstringyes
*bodyany

Response

StatusBodyMeaning
2XXDestinationStatusSuccess

2XX body — 16 fields.

FieldInTypeAlwaysDescription
accountbodystringAccount is the operator's own label for the connected account, as supplied on connect.
categorybodystringgroups the card: Analytics | Advertising
configbodyobjectConfig is the org's stored NON-SECRET configuration — the measurement/pixel ids keyed by DestinationField.Key.
config.*bodystring
connectedbodybooleanConnected is true when this org has a stored row for the platform — it has been configured here at least once.
enabledbodybooleanEnabled is whether the fan-out forwards to this destination.
fieldsbodyDestinationField[]Fields are the non-secret inputs this platform needs, which the console card renders and the connect body fills.
fields[].examplebodystringa sample value of the right shape ("G-XXXXXXX"), when one helps
fields[].keybodystringthe camelCase key on both the connect body and the stored config
fields[].labelbodystringhuman label for the console card's input
fields[].requiredbodybooleanwhen true, a connect that leaves it empty is refused 400
livebodybooleanLive is whether a credential resolves RIGHT NOW: a KMS-sealed secret for this org, else the integrations connection named by the platform's Fallback, else no…
namebodystringthe platform's display name ("Google Analytics 4")
pixelbodybooleanPixel is whether the hosted tag can inject a browser pixel for this platform, so a console offers a per-SITE pixel input for exactly these.
platformbodystringthe platform slug, and the path segment every route addresses it by
secretsbodystring[]Secrets are the KMS secret NAMES this platform custodies for the org — names only, never values.

Failure carries the platform error shape — see Errors.

Examples

hanzo destinations add <platform>

Destination API · All Hanzo APIs · Interactive reference

How is this guide?

On this page