---
title: "Duplicate a workflow"
method: POST
path: "/v1/workflows/{id}/duplicate"
tags: ["Workflows"]
---

# Duplicate a workflow

`POST /v1/workflows/{id}/duplicate`

## Request

- Base URL: `https://api.volanea.com`
- URL: `https://api.volanea.com/v1/workflows/{id}/duplicate`
- Auth: HTTP bearer

Clones the graph, trigger, and re-entry policy as a new `paused` workflow — never auto-activated. Stats are reset.

## Path parameters

- `id` string, required

## Response `201`

The new paused workflow.

- Workflow
  - `workflowId` string, required
  - `projectId` string
  - `name` string, required
  - `status` 'draft' | 'active' | 'paused', required
  - `trigger` string, required: `event:<name>`, `contact.created`, `segment:enter:<ref>`, or `segment:exit:<ref>`.
  - `graph` WorkflowGraph: The automation graph: nodes (with canvas positions) plus directed edges.
    - `nodes` object[], required
      - `id` string, required
      - `type` 'trigger' | 'send_email' | 'delay' | 'wait_event' | 'condition' | 'update_contact' | 'webhook' | 'exit', required
      - `label` string, required
      - `config` object
      - `x` number, required
      - `y` number, required
    - `edges` object[], required
      - `from` string, required
      - `to` string, required
      - `label` string
  - `reentry` 'never' | 'after_exit' | 'always', required
  - `exitOnReply` boolean
  - `entered` integer
  - `completed` integer
  - `active` integer
  - `createdAt` string, date-time, required

## Other responses

- `401`: Missing or invalid API key.
- `404`: Not found.
- `422`: Request validation failed (code `validation_error`, 422).

---

[API](https://skmtc.dev/volanea/apis/volanea-api.md) · [All operations](https://skmtc.dev/volanea/apis/volanea-api/llms.txt) · [OpenAPI document](https://skmtc.dev/volanea/apis/volanea-api/revisions/9e187ae84fda?raw)
