---
title: "Clone a workflow"
method: POST
path: "/workflows/{id}/clone"
tags: ["Workflows"]
---

# Clone a workflow

`POST /workflows/{id}/clone`

## Request

- Base URL: `https://workflow.loopfour.ai/api/v1`
- URL: `https://workflow.loopfour.ai/api/v1/workflows/{id}/clone`
- Auth: API key in header `x-api-key`

Creates a copy of a workflow in draft status.

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string, required: Name for the cloned workflow.

## Response `201`

Workflow cloned

- object
  - `success` unknown
  - `data` Workflow
    - `id` string
    - `name` string
    - `description` string, nullable
    - `status` 'draft' | 'active' | 'paused' | 'archived'
    - `trigger` object, nullable
      - `type` string
      - `provider` string, nullable
      - `events` string[]
    - `version` number
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `401`: Missing or invalid API key.
- `403`: Forbidden — insufficient permissions for this resource.
- `404`: Resource not found.

---

[API](https://skmtc.dev/loopfour/apis/loopfour-workflows-api.md) - [All operations](https://skmtc.dev/loopfour/apis/loopfour-workflows-api/llms.txt) - [OpenAPI document](https://skmtc.dev/loopfour/apis/loopfour-workflows-api/revisions/872822a3af00?raw)
