API Reference
Duplicate Campaign
POST /campaigns/:id/duplicate — copy a campaign into a new draft.
POST
/campaigns/:id/duplicateCopies any campaign, whatever its status, into a new draft named <name> (copy). The copy keeps the content, sender, reply-to, audience, segment, topic, unsubscribe policy, A/B settings, daily batch size and follow-up rules.
It does not keep anything about when or whether the original went out: no schedule, no repeat cadence, no A/B result, no stats. A campaign that used a mailing-list To address gets its own new address on the same domain.
Needs a full-access API key. A sending-only key gets
401 restricted_api_key.Path parameters
idstringrequiredThe id of the campaign to copy.
const res = await fetch('https://www.senddart.com/api/campaigns/0b7d3c52-4f1e-4a8b-9d26-7e5f1c3a9b04/duplicate', {
method: 'POST',
headers: { 'Authorization': 'Bearer mb_xxxxxxxxx' },
});
const data = await res.json();
console.log(data);Response (201)
{
"object": "campaign",
"id": "5d2a8e71-36c4-4b09-a1f8-2c9e7b0d4f63",
"name": "November product update (copy)"
}Fetch the full draft with Retrieve Campaign. An unknown id returns 404 not_found.