whatsapp flows
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).
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
flowIdstring
Flow ID
Query Parameters
accountIdstring
WhatsApp social account ID
invalidate?boolean
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"
}Empty