Get flow preview URL
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).
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
Flow ID
Query Parameters
WhatsApp social account ID
Mint a fresh preview link (default false)
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.getWhatsAppFlowPreview({ path: { flowId: 'flow_abc123', }, query: { accountId: 'account_abc123', },});console.log(data);{
"preview_url": "string",
"expires_at": "string"
}{
"error": "Unauthorized"
}Upload flow JSON PUT
Upload or update the Flow JSON for a DRAFT flow. The Flow JSON defines all screens, components (text inputs, dropdowns, date pickers, etc.), and navigation. Meta validates the JSON on upload and returns any validation errors. See: https://developers.facebook.com/docs/whatsapp/flows/reference/flowjson
List flow versions GET
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.