zinn-campaigns
POST /v1/email-marketing/campaigns/{campaign_id}/duplicate
Copy a campaign into a new draft.
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
| Name | Type | Required | What it is |
|---|---|---|---|
org_id (query) | Uuid | No | The 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) | string | Yes | — |
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
name | string | No | The copy's name; blank keeps the original's. |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
id | string | Yes | — |
name | string | Yes | — |
list_id | string | Yes | — |
sender_id | string | Yes | — |
from_name | string | Yes | — |
reply_to | string | Yes | — |
subject | string | Yes | — |
preheader | string | Yes | — |
html | string | Yes | — |
text | string | Yes | — |
template | string<basic, raw, blocks> | Yes | — |
blocks | EmailMarketingCampaignBlock[] | No | F32 block designer layout (cleaned); null when the campaign was never designed in blocks. |
postal_address | string | Yes | — |
subject_b | string | Yes | — |
ab_test_pct | integer | Yes | — |
ab_wait_minutes | integer | Yes | — |
ab_metric | string<opens, clicks> | Yes | — |
ab_winner | string<a, b> | Yes | — |
ab_decided_at | string | Yes | — |
send_time_mode | string<now, optimised> | Yes | — |
source_locale | string | Yes | — |
zerobounce_mode | string<off, invalid, risky> | Yes | — |
status | string<draft, sending, paused, sent, refused> | Yes | — |
refusal_code | string<not_open, account_on_hold, not_included, incomplete, pool_warming, sender_unverified, domain_auth, paused, quota, review, empty, zerobounce_key, zerobounce_outage> | Yes | — |
refusal_message | string | Yes | — |
recipients_total | integer | Yes | — |
started_at | string | Yes | — |
finished_at | string | Yes | — |
archived_at | string | Yes | P5-012: when the campaign was archived (hidden from the list, kept in full); null = in the list. |
created_at | string | Yes | — |
updated_at | string | Yes | — |
sent | integer | No | List 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_bps | integer | No | List rows only (P5-004). Distinct openers per sent, in basis points. |
click_rate_bps | integer | No | List rows only (P5-004). Distinct clickers per sent, in basis points. |
Errors this endpoint can return
400 · 401 · 403 · 404 · 409