Pause workflow
Stop matching new inbound messages. In-flight executions continue to completion. Idempotent.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.workflows.pauseWorkflow({ path: { workflowId: 'workflow_abc123', },});console.log(data);{
"success": true,
"workflow": {
"id": "string",
"status": "string"
}
}{
"error": "Unauthorized"
}{
"error": "Not found"
}Duplicate a workflow POST
Create an independent copy of a workflow's graph, name, description, and account binding. The copy is created in `draft` status with fresh execution counters and a new id — execution history is NOT copied. Useful for branching off a known-good workflow before making experimental edits.
Restore a previous workflow version POST
Replace the current graph with the named version's snapshot. Before the swap, the current graph is itself snapshotted as a new version, so a restore is reversible. The workflow must be in `draft` or `paused` status (same gate as a normal graph edit). The returned workflow carries `restoredFromVersion` so the UI can surface which version was rolled back to.