API · Automations
Duplicate Automation
Copy an automation’s workflow and settings into a disabled automation with a copy suffix in its name (requires full access).
POST
/automations/{automation_id}/duplicateFull accessRequest parameters
| Parameter | Type | Description |
|---|---|---|
automation_idpath · required | string | The ID of the automation. |
Idempotency-Keyheader · optional | string1–256 characters | Makes the request safe to retry. See Idempotency. |
Request example
Set OPENSEND_BASE_URL=https://api.example.com and OPENSEND_API_KEY=os_replace_me on your server.
bash
curl -X POST "$OPENSEND_BASE_URL/automations/YOUR_automation_id/duplicate" \
-H "Authorization: Bearer $OPENSEND_API_KEY"Response
201 · application/json. Example IDs stand for IDs returned by your installation.
json
{
"object": "automation",
"id": "YOUR_ID"
}Behavior and errors
The copy is disabled, preserves the accepted definition, and appends “ copy” to the name.
Use a full-access credential. Unknown or foreign resources return 404. See authentication, errors, rate limits, and pagination.