Hanzo
OpenapiCampaign

Returns the org's campaigns, newest first, optionally narrowed to one status.

Returns the org's campaigns, newest first, optionally narrowed to one status.

GET /v1/campaign

Addresshttps://api.hanzo.ai/v1/campaign
MethodGET
Operationget_campaign
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the org's campaigns, newest first, optionally narrowed to one status.

A campaign is the top-level go-to-market object: a value that SPANS channels (paid, organic, email) and fans out to the executor for each. The listing is org-scoped server-side, so one org can never see another's campaigns.

Request

2 fields.

FieldInTypeRequiredDescription
statusquerystringStatus keeps only campaigns in that state: draft, live, paused or failed.
limitqueryintegerLimit bounds the page.

Response

StatusBodyMeaning
200campaignPageok

200 body — 17 fields.

FieldInTypeAlwaysDescription
databodycampaignRecord[]Data are the campaigns on this page.
data[].audiencebodystringAudience is an opaque reference to the segment this campaign targets.
data[].budgetbodyintegerBudget is the campaign's total budget in CENTS, handed to each executor as the budget for its channel.
data[].channelsbodyChannelSpec[]Channels are the fan-out targets, at most one per kind and at most 12, each carrying its own post-launch state.
data[].channels[].accountbodystringAccount is the provider account this channel runs under: an ad-account, a page or a mailing-list id.
data[].channels[].detailbodystringDetail is the last outcome in one secret-free line — the failure reason, or what the executor reported.
data[].channels[].externalIdbodystringExternalID is the provider-side id of the running execution, recorded by the orchestrator at launch and handed back verbatim to read spend or to pause.
data[].channels[].kindbodystringKind is the channel and the identity a campaign holds at most one of: paid, organic or email.
data[].channels[].platformbodystringPlatform is the provider within the kind — meta, google, x, instagram, or the email provider.
data[].channels[].statusbodystringStatus is this channel's own launch outcome, not the campaign's: pending (added, never launched), live, paused, failed (Detail says why) or unavailable (no…
data[].contentbodystring[]Content is the ordered creative set, at most 32, empty entries dropped.
data[].createdAtbodyintegerCreatedAt is when the campaign was created, in unix seconds.
data[].idbodystringID is the campaign's server-minted handle — "cmp_" and 128 random bits — and the id every other campaign call is addressed by.
data[].namebodystringName is the campaign's display name.
data[].scheduleAtbodyintegerScheduleAt is when the campaign should run, in unix seconds. 0 (absent) means launch immediately.
data[].statusbodystringStatus is the lifecycle state, server-owned and never accepted from a caller.
data[].updatedAtbodyintegerUpdatedAt is the last write in unix seconds — an edit, a launch or a pause.

Failure carries the platform error shape — see Errors.

Examples

hanzo campaign list

Campaign API · All Hanzo APIs · Interactive reference

How is this guide?

On this page