Hanzo
CLICampaign

Campaign

11 `hanzo` commands for Campaign, each calling one operation on api.hanzo.ai.

Package campaign is one go-to-market push across paid, organic and email at once.

11 commands · API reference →

CommandCallsWhat it does
hanzo campaign channels rm <id> <kind>DELETE /v1/campaign/{id}/channels/{kind}Drops one channel from a campaign and returns the updated campaign.
hanzo campaign channels create <id>POST /v1/campaign/{id}/channelsAdds a channel to a campaign, or REPLACES the one it already has of that kind, and returns the updated campaign.
hanzo campaign launch <id>POST /v1/campaign/{id}/launchLaunch a campaign across every channel it declares
hanzo campaign metrics <id>GET /v1/campaign/{id}/metricsReturns a campaign's results over a window: the analytics funnel (impressions, clicks, conversions, revenue, visitors),…
hanzo campaign pause <id>POST /v1/campaign/{id}/pausePause every live channel on a campaign at its provider
hanzo campaign get <id>GET /v1/campaign/{id}Returns one campaign of the caller's org — its name, audience, creatives, channels with their per-channel launch state,…
hanzo campaign set <id>PUT /v1/campaign/{id}Rewrites a campaign's core fields — name, audience, creatives, schedule and budget — and returns the updated campaign.
hanzo campaign rm <id>DELETE /v1/campaign/{id}Removes one campaign of the caller's org and answers 204 with no body.
hanzo campaign summaryGET /v1/campaign/summaryReturns the org's go-to-market roll-up: how many campaigns exist, how many are live, their total budget in cents, and…
hanzo campaign listGET /v1/campaignReturns the org's campaigns, newest first, optionally narrowed to one status.
hanzo campaign createPOST /v1/campaignCreates a campaign as a DRAFT and returns it.

How is this guide?