v1

latestOpenAPI 3.1.02026-07-263644911022.4 KB
Workflows API

Clone a Workflow

Use this endpoint to create a copy of an existing workflow with a new name. The cloned workflow is created in draft status.

post/v1/workflows/{id}/clone

Path parameters

idstring uuid required

Unique identifier of the source workflow to clone.

Request body

namestring required

Name for the cloned workflow. Must be unique.

Example request

{
  "name": "Payment Notification Flow — Copy"
}

Response

Indicates that the resource was successfully created and the operation was completed as expected.

createdAtstring date-time

Timestamp when the workflow was created.

statusstring

Initial status of the workflow (always draft on creation).

versionstring

Version of the workflow definition.

workflowIdstring uuid

Unique identifier of the created workflow.

Example response

{
  "createdAt": "2026-03-17T14:30:00Z",
  "status": "draft",
  "version": "1.0.0",
  "workflowId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}