> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mailofly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Clone a Twin Robot

> Make an exact twin copy of any automation in quiet draft mode so you can tinker with it safely.

Want to experiment with new steps or make big changes without breaking your live production flow?

Clone it! This creates an exact carbon copy of all its Lego blocks, settings, and tracks, but puts the new twin into quiet `"disabled"` draft mode so you can play around with zero fear.

### Path Parameters

<ParamField path="id" type="string" required>
  The ID badge of the original robot you want to clone (e.g. `"auto_9b83b384..."`).
</ParamField>

### Response

<ResponseField name="object" type="string">
  Always says `"automation"`.
</ResponseField>

<ResponseField name="id" type="string">
  The shiny new ID badge for your cloned twin helper!
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST 'https://api.mailofly.com/automations/auto_9b83b384-3c66-4f81-a201-3829028198f1/duplicate' \
    -H 'Authorization: Bearer mf_live_xxxxxxxx'
  ```

  ```javascript Node.js theme={null}
  import { Mailofly } from "@mailofly/node";

  const mailofly = new Mailofly("mf_live_xxxxxxxx");

  const twin = await mailofly.automations.duplicate("auto_9b83b384-3c66-4f81-a201-3829028198f1");

  console.log("Created twin robot with ID:", twin.id);
  ```
</RequestExample>

<ResponseExample>
  ```json 201 Created theme={null}
  {
    "object": "automation",
    "id": "auto_f318991a-8219-4821-b810-918273619283"
  }
  ```
</ResponseExample>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.