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 workflow with graph

Returns a workflow including its full node/edge graph and run stats.


GET
/v1/workflows/{workflowId}

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

Response Body

application/json

application/json

application/json

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

Create workflow

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.

Update workflow

Update name, description, the graph, or reassign to a different account. The graph can only be modified while the workflow is draft or paused. Account swaps re-validate the graph against the new platform (so e.g. moving from WhatsApp to Facebook surfaces a `start_call` node as an error instead of silently saving an unrunnable graph).