API Reference
Duplicate Automation
POST /automations/:id/duplicate — copy an automation into a new, disabled one.
POST
/automations/:id/duplicateCopies an automation's trigger, steps and connections into a new automation named <name> (copy). The copy is always disabled, so it cannot enrol anyone until you turn it on. Runs and their history stay with the original.
Needs a full-access API key. A sending-only key gets
401 restricted_api_key.Path parameters
idstringrequiredThe id of the automation to copy.
const res = await fetch('https://www.senddart.com/api/automations/c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd/duplicate', {
method: 'POST',
headers: { 'Authorization': 'Bearer mb_xxxxxxxxx' },
});
const data = await res.json();
console.log(data);Response (201)
{
"object": "automation",
"id": "7e3f1a9c-2b4d-4c6e-8f0a-1d3b5c7e9f21",
"audience_id": "78261eea-8f8b-4381-83c6-79fa7120f1cf",
"name": "Welcome series (copy)",
"trigger": "user.created",
"domain": "yourdomain.com",
"status": "disabled",
"trigger_config": null,
"trigger_key": "trigger",
"created_at": "2026-11-21T09:30:00.000Z",
"updated_at": "2026-11-21T09:30:00.000Z"
}The response leaves out steps and connections; read them with Retrieve Automation. An unknown id returns 404 not_found.