Skip to main content
POST
Clone a workflow
You run only your own workflows and your workspaces’. To run a public workflow, clone it first. Find one with a marketplace search, and read it with Get a workflow. The copy is a private draft, it is yours, and it keeps a link to the original. Cloning is free. The skills and sub-workflows it runs come along as copies of your own, so the author’s later edits to the workflow never reach yours. Each copied skill takes the original’s tested updates like any cloned skill: see Updates from the original. A step that used the author’s login loses it, and you connect your own. The answer is the copy as Get a workflow shows it, plus cloned_from, the slug of the original, and copied: the skills and sub-workflows copied with it, and the steps that need your own login (needs_login) or saved credential (needs_credentials). The copy has its own slug. Run it with that slug, for example with Run a workflow and wait.

Set it up in the same call

Send a body to set the copy up, as Use this workflow does in the Marketplace. Every field is optional; send none for a plain copy.
  • inputs: answers to the workflow’s inputs, by name. They become the copy’s defaults, so every run and its schedule use them.
  • schedule: frequency (daily:09:00, weekly:mon:09:00, interval:60 or cron:0 7 * * 1-5) and timezone (for example Europe/London). Leave it out for no schedule.
  • destinations: the app ids of the workflow’s app steps to keep, for example ["slack"]. The other app steps are taken out. Leave it out to keep the ones on by default. Get a workflow lists them in listing.apps.
  • preview: true starts a small run of the copy now, with fewer rows. It is charged like any run. Default false.
Every check runs before anything is made. A wrong answer is 422, with each problem in detail.fields. A kept app you have not connected is 409 with code app_not_connected: detail.needs_connect has the link that connects each one. An account that cannot pay for the preview is 402. A set-up copy also answers schedule, preview_run (follow it at its status_url), estimated_credits and message, one plain paragraph saying what was set up. A workflow you may not see answers 404. Needs workflows:invoke or workflows:write. A key with neither gets 403. A schedule also needs workflows:write. MCP tool: clone_workflow.

Authorizations

Authorization
string
header
required

API key with the vd_sk_ prefix, as Authorization: Bearer vd_sk_.... Create keys in Settings → API Keys.

Headers

Idempotency-Key
string

Any unique string (such as your order id). Resending the same request with the same key within 24 hours returns the first answer (with Idempotent-Replayed: true) and does nothing twice; the same key with a different request is a 422 idempotency_key_reused.

Required string length: 1 - 255

Path Parameters

slug
string
required

Body

application/json

POST /v1/workflows/{slug}/clone, optionally set up in the same call: answers as the copy's input defaults, a schedule, the destination apps to keep, and a small preview run. Send nothing for a plain copy.

inputs
Inputs · object | null

Answers to the workflow's inputs, by name: they become the copy's defaults (every run and the schedule use them).

schedule
StartSchedule · object | null

Run the copy on this schedule. Omit for none.

destinations
string[] | null

The app ids of the workflow's app steps to keep (e.g. ["slack"]); the others are taken out. Each kept app must be connected, else 409 app_not_connected with its connect link. Omit for the ones on by default.

preview
boolean
default:false

Start a small preview run of the copy now (capped rows). Charged like any run.

Response

Your copy of the workflow.

POST /v1/workflows/{slug}/clone: your new copy, as GET /v1/workflows/{slug} shows it.

id
string
required
slug
string
required
name
string
required
api_endpoint
string
required
runs_endpoint
string
required
run_status_endpoint
string
required
mcp_tool
string
required
cloned_from
string
required

The slug of the workflow this is a copy of

description
string | null
status
string | null
input_schema
Input Schema · object[]
input_json_schema
Input Json Schema · object
output
string
default:""
output_json_schema
Output Json Schema · object
run_json_schema
Run Json Schema · object
trigger
Trigger · object
reliability
Reliability · object
steps
Steps · object[] | null

The graph's steps (on create, change and GET with include_graph=true).

connections
Connections · object[] | null
version
integer | null

How many saved versions came before this one.

build
BuildState · object | null

A workflow made from plain words: how its build is going

cannot_run
string[]

Why a run would be refused now (a skill step whose skill is not finished); empty when it can run

yours
boolean
default:true

Yours or your workspace's; false for a public marketplace workflow

public_view
Public View · object | null

Plain step summaries, trigger, sample rows and what it needs (public workflows)

price
SkillPrice · object | null

What a run usually costs, before it runs

clone_url
string | null

Clone a public workflow here first, then run your copy

listing
ListingCard · object | null

A marketplace listing's promise, the apps it delivers to, cost per run, risk and default schedule (public workflows whose publisher wrote one): clone it with inputs, schedule and destinations to set it up

copied
Copied · object

What came with it: skills_copied and workflows_copied (the author's skills and sub-workflows it runs, now copies of your own), needs_login and needs_credentials (steps that need your own account connected).

schedule
StartedSchedule · object | null

The copy's schedule, when one was asked

preview_run
PreviewRun · object | null

The preview run, when one was asked: follow it at status_url

estimated_credits
number | null

What the preview run should cost

message
string | null

What was set up, in one plain paragraph