List workflows
Returns workflows with run stats. Filter by status or profile.
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
Filter by profile. Omit to list across all profiles
"draft" | "active" | "paused"500Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.workflows.listWorkflows();console.log(data);{
"success": true,
"workflows": [
{
"id": "string",
"name": "string",
"description": "string",
"platform": "string",
"accountId": "string",
"accountName": "string",
"status": "draft",
"nodeCount": 0,
"totalStarted": 0,
"totalCompleted": 0,
"totalExited": 0,
"createdAt": "2019-08-24T14:15:22Z"
}
],
"pagination": {
"total": 0,
"limit": 0,
"skip": 0,
"hasMore": true
}
}{
"error": "Unauthorized"
}List a workflow's version history GET
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.
Create workflow POST
Create a branching conversation workflow (draft) from a node/edge graph. Created in `draft` status; activate it to start matching inbound messages. The graph is validated structurally; completeness (a trigger node + reachable entry) is required at activation.