workflows
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.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
workflowIdstring
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.listWorkflowVersions({ path: { workflowId: 'workflow_abc123', },});console.log(data);{
"success": true,
"versions": [
{
"version": 0,
"name": "string",
"description": "string",
"createdBy": "string",
"createdByEmail": "string",
"restoredFromVersion": 0,
"createdAt": "2019-08-24T14:15:22Z"
}
]
}{
"error": "Unauthorized"
}{
"error": "Not found"
}