Duplicate an existing automation directly from the API.
Most new automations start from one that already works. Previously, duplicating an Automation was only possible from the Dashboard.
Today we're releasing a new API endpoint to duplicate an automation.
Pass the ID of an existing Automation and the API creates a copy:
(Copy) suffix.To duplicate an Automation, use the Automation's ID with the duplicate endpoint.
import { Resend } from 'resend';const resend = new Resend('re_xxxxxxxxx');const { data, error } = await resend.automations.duplicate('c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',);
The endpoint returns the ID of the new Automation:
{"object": "automation","id": "e169aa45-1ecf-4183-9955-b1499d5701d3"}
The duplicate Automation API is part of a larger move to bring the full functionality of the dashboard into the API, CLI, and MCP, so you can build how you want.
If you have any questions, please reach out to us and we'll be happy to help.