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

Other

Start an API-triggered workflowPOST
Dashboard
llms.txtOpenAPI
OverviewPlatformsAPI ReferenceResources
Workflows

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.


POST
/v1/workflows

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response 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.createWorkflow({  body: {    profileId: 'profile_abc123',    accountId: 'account_abc123',    name: 'Example',  },});console.log(data);
{  "success": true,  "workflow": {    "id": "string",    "name": "string",    "description": "string",    "platform": "string",    "status": "string",    "nodeCount": 0,    "entryNodeId": "string",    "createdAt": "2019-08-24T14:15:22Z"  }}
Was this page helpful?

List workflows

Returns workflows with run stats. Filter by status or profile.

Get workflow with graph

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

profileId*string
accountId*string
platform?string
Default"whatsapp"

Value in

  • "whatsapp"
  • "instagram"
  • "facebook"
  • "telegram"
  • "twitter"
  • "bluesky"
  • "reddit"
name*string
description?string
nodes?array<>
edges?array<>
entryNodeId?string

The trigger node id; derived from the single trigger node if omitted