Skip to main content
POST
Restore a version
The workflow as it is now is kept as a version first, so you can undo a restore the same way. live_version is the new live number. changed is false when version n was already live; nothing changes then. Only the owner or an editor in the workflow’s workspace. Needs workflows:write. MCP tool: restore_workflow_version, with slug and version.

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
n
integer
required

Response

Successful Response

workflow_slug
string
required
restored_from
integer
required
live_version
integer
required
changed
boolean
required

False when that version was already what is live.