zinn-campaigns

POST /v1/email-marketing/campaigns/{campaign_id}/duplicate

Copy a campaign into a new draft.

All zinn-campaigns endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

Authentication

Send an API key as a bearer token. The key must carry the email_marketing.manage permission; a key without it is refused with 403, not 404.

Where your organisation id goes

This endpoint takes org_id as a query parameter. Leave it out and the call covers your whole tenancy subtree; send it to narrow the call to one organisation.

Your organisation id is on the API keys screen in your dashboard, beside the key itself. It is the same id in every call you make.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X POST https://api.zinndigital.com/v1/email-marketing/campaigns/{campaign_id}/duplicate \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

Gated on email_marketing.manage. The new draft has the same list, sender, content, A/B and sending settings, and translations; never the send state, counters or events. Audit-logged as email_marketing.campaign.duplicate.

Parameters

NameTypeRequiredWhat it is
org_id (query)UuidNoThe organization this call acts on. Optional for a caller with exactly one direct membership; required for anyone with more than one — which is every reseller and every agency…
campaign_id (path)stringYes—

Request body

NameTypeRequiredWhat it is
namestringNoThe copy's name; blank keeps the original's.

Response

NameTypeRequiredWhat it is
idstringYes—
namestringYes—
list_idstringYes—
sender_idstringYes—
from_namestringYes—
reply_tostringYes—
subjectstringYes—
preheaderstringYes—
htmlstringYes—
textstringYes—
templatestring<basic, raw, blocks>Yes—
blocksEmailMarketingCampaignBlock[]NoF32 block designer layout (cleaned); null when the campaign was never designed in blocks.
postal_addressstringYes—
subject_bstringYes—
ab_test_pctintegerYes—
ab_wait_minutesintegerYes—
ab_metricstring<opens, clicks>Yes—
ab_winnerstring<a, b>Yes—
ab_decided_atstringYes—
send_time_modestring<now, optimised>Yes—
source_localestringYes—
zerobounce_modestring<off, invalid, risky>Yes—
statusstring<draft, sending, paused, sent, refused>Yes—
refusal_codestring<not_open, account_on_hold, not_included, incomplete, pool_warming, sender_unverified, domain_auth, paused, quota, review, empty, zerobounce_key, zerobounce_outage>Yes—
refusal_messagestringYes—
recipients_totalintegerYes—
started_atstringYes—
finished_atstringYes—
archived_atstringYesP5-012: when the campaign was archived (hidden from the list, kept in full); null = in the list.
created_atstringYes—
updated_atstringYes—
sentintegerNoList rows only (P5-004): recipients the campaign was sent to (sent + bounced), the denominator of the two rates. Same maths as the campaign's report.
open_rate_bpsintegerNoList rows only (P5-004). Distinct openers per sent, in basis points.
click_rate_bpsintegerNoList rows only (P5-004). Distinct clickers per sent, in basis points.

Errors this endpoint can return

400 · 401 · 403 · 404 · 409