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

# Duplicate a workflow

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

Create an independent copy of a workflow's graph, name, description, and account binding. The copy is created in `draft` status with fresh execution counters and a new id — execution history is NOT copied. Useful for branching off a known-good workflow before making experimental edits.

## Path parameters

- `workflowId` string, required

## Response `201`

Workflow duplicated

- object
  - `success` boolean
  - `workflow` object
    - `id` string
    - `name` string
    - `description` string
    - `status` 'draft'
    - `platform` string
    - `accountId` string
    - `profileId` string
    - `entryNodeId` string, nullable
    - `nodeCount` integer
    - `createdAt` string, date-time

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `404` — Resource not found

---

[API](https://skmtc.net/zernio/apis/zernio-api.md) · [All operations](https://skmtc.net/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zernio/zernio-api/versions/51932b099b2f/schema)
