Upload flow JSON
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
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Flow ID
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.whatsappflows.uploadWhatsAppFlowJson({ path: { flowId: 'flow_abc123', }, body: { accountId: 'account_abc123', flow_json: {}, },});console.log(data);{ "success": true, "validation_errors": [ { "error": "string", "error_type": "string", "message": "string", "line_start": 0, "line_end": 0, "column_start": 0, "column_end": 0 } ]}Get flow JSON asset
Get the flow JSON asset metadata, including a temporary download URL for the Flow JSON file.
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).