workflows
Pause workflow
Stop matching new inbound messages. In-flight executions continue to completion. Idempotent.
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.pauseWorkflow({ path: { workflowId: 'workflow_abc123', },});console.log(data);{
"success": true,
"workflow": {
"id": "string",
"status": "string"
}
}{
"error": "Unauthorized"
}{
"error": "Not found"
}Activate workflow POST
Validate the graph is runnable and set the workflow live. Once active, matching inbound messages start executions. Idempotent.
Manually start a workflow run POST
Kick off a run without waiting for an inbound message (useful for testing). Target an existing conversation by `conversationId`, or — WhatsApp only — a phone number via `to` (a conversation is found or created). `text` seeds the run's `lastMessage` variable. The graph must be runnable.