List flow versions
List the flow's version history (the clone lineage Zernio tracks, since Meta has no native versioning), newest version first. Each entry is enriched with the version's live name and status from Meta. A flow with no lineage returns just itself as version 1.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
Flow ID
Query Parameters
WhatsApp social account ID
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.whatsappflows.listWhatsAppFlowVersions({ path: { flowId: 'flow_abc123', }, query: { accountId: 'account_abc123', },});console.log(data);{
"versions": [
{
"flowId": "string",
"version": 0,
"parentFlowId": "string",
"name": "string",
"status": "string",
"missing": true
}
]
}{
"error": "Unauthorized"
}Get flow preview URL GET
Get Meta's public web-preview URL for a flow (drafts included), embeddable as an interactive iframe. The link is reused across calls (valid ~30 days); pass invalidate=true to mint a fresh one (the previous link stops working).
Publish flow POST
Publish a DRAFT flow. This is irreversible. Once published, the flow and its JSON become immutable and the flow can be sent to users. To update a published flow, create a new flow (optionally cloning this one via cloneFlowId).