Skip to main content
POST
https://api.getmalakai.com/api/
/
api
/
workflows
/
duplicate
/
{id}
Duplicate a Workflow
curl --request POST \
  --url https://api.getmalakai.com/api/api/workflows/duplicate/{id} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <x-access-token>' \
  --data '
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>"
}
'
{
    "responseCode": 2000,
    "message": "Workflow duplicated successfully",
    "data": {
        "duplicateWorkflow": {
            "id": "f22c43ef-be66-4859-b5b4-**",
            "name": "New Workflow",
            "description": null,
            "user_id": "***",
            "nodes":[],
            "edges":[],
            "ml_payload": [],
            "created_at": "2025-07-29T09:11:00.661Z",
            "updated_at": "2025-07-29T09:30:39.801Z"
        }
    }
}

Headers

Authorization
string
required
Your API key for authentication. Prefix with Bearer .
x-access-token
string
required
Your access token for authentication.

Body

id
string
required
The id of the existing workflow to duplicate from.
name
string
required
The name of the duplicated workflow
description
string
required
The description of the duplicated workflow

Response

responseCode
string
Confirms the request was successful.
message
string
A human-readable message about the request’s outcome.
data
object
An object containing the details of the updated workflow.
{
    "responseCode": 2000,
    "message": "Workflow duplicated successfully",
    "data": {
        "duplicateWorkflow": {
            "id": "f22c43ef-be66-4859-b5b4-**",
            "name": "New Workflow",
            "description": null,
            "user_id": "***",
            "nodes":[],
            "edges":[],
            "ml_payload": [],
            "created_at": "2025-07-29T09:11:00.661Z",
            "updated_at": "2025-07-29T09:30:39.801Z"
        }
    }
}