Zernio
Zernio
API Reference

Workflows

Workflows

List workflowsGETCreate workflowPOSTGet workflow with graphGETUpdate workflowPATCHDelete workflowDELETEActivate workflowPOSTPause workflowPOSTDuplicate a workflowPOST

Runs

List workflow runsGETManually start a workflow runPOSTGet an execution's timelineGET

Versions

List a workflow's version historyGETGet a specific workflow versionGETRestore a workflow versionPOST
Dashboard
llms.txtOpenAPI
OverviewPlatformsAPI ReferenceResources
Workflows

Get a specific workflow version

Returns the full snapshot for a single historical version, including the graph.


GET
/v1/workflows/{workflowId}/versions/{version}

Authorization

bearerAuth
AuthorizationBearer <token>

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

In: header

Path Parameters

workflowId*string
version*integer

Response Body

application/json

application/json

application/json

application/json

{  "success": true,  "version": {    "version": 0,    "name": "string",    "description": "string",    "entryNodeId": "string",    "nodes": [      {        "id": "string",        "type": "trigger",        "config": {},        "position": {          "x": 0,          "y": 0        },        "label": "string"      }    ],    "edges": [      {        "id": "string",        "source": "string",        "target": "string",        "sourceHandle": "string"      }    ],    "platform": "string",    "accountId": "string",    "profileId": "string",    "createdBy": "string",    "createdByEmail": "string",    "restoredFromVersion": 0,    "createdAt": "2019-08-24T14:15:22Z"  }}
Was this page helpful?

List a workflow's version history

Returns the snapshot history. A new version is recorded automatically before every PATCH to `nodes` / `edges` / `entryNodeId`, and explicitly when a previous version is restored. Lightweight list. Call `getWorkflowVersion` for the full snapshot graph.

Restore a workflow version

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.