Skip to main content

Clone Automation

Copy an automation's latest steps into a new draft named "Copy of" followed by the original name. The original is not changed.

The copy lets no contacts in until you enable it with Update Automation. Its issues are computed afresh, so a copy of an enabled automation can still have some, for example when a tag it uses has since been deleted.

Endpoint​

POST /automations/:id/clone

Returns: 200 OK

Headers​

HeaderValueRequired
AuthorizationBearer <your-api-key>Yes

Path Parameters​

ParameterTypeDescription
idstringThe ID of the automation to copy

Response​

The new draft. See List Automations for the field reference.

{
"id": "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f74",
"name": "Copy of Welcome series",
"status": "draft",
"created_at": "2026-03-09T10:00:00.000Z",
"updated_at": "2026-03-09T10:00:00.000Z",
"steps": [
{
"key": "trigger",
"type": "trigger",
"name": "Joined the newsletter",
"config": {
"event": "list_added",
"list_id": "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f72",
"reentry": { "mode": "once" }
}
},
{
"key": "welcome_email",
"type": "send_email",
"name": "Welcome email",
"config": {
"template_id": "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f70",
"from_domain": "mail.example.com",
"from_prefix": "hello",
"from_name": "Acme"
}
}
],
"connections": [
{ "from": "trigger", "to": "welcome_email", "type": "default" }
],
"issues": []
}

Examples​

curl -X POST "https://api.arsel.sa/v1/automations/01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a/clone" \
-H "Authorization: Bearer $ARSEL_API_KEY"

Error Responses​

{
"status_code": 403,
"name": "forbidden",
"message": "Automations are not available for this organization"
}