Duplicate Workflow

Create a copy of an existing workflow in the same workspace.

The new workflow inherits the source’s name (suffixed with ” (Copy)”), description, and definition. Runs from the original workflow are not copied — the duplicate starts with zero runs. Requires at least editor role. Returns 201 with the new workflow on success.

Authentication

AuthorizationBearer
Clerk JWT token
OR
AuthorizationBearer

Onepin live API key (op_live_...). Test and public keys are reserved in Phase 1.

Path parameters

workflow_idstringRequiredformat: "uuid"

Headers

X-Workspace-Idstring or nullOptional

Response

Successful Response
dataobject
metaobject

Errors

422
Unprocessable Entity Error