whatsapp flows
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
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
flowIdstring
Flow ID
accountIdstring
WhatsApp social account ID
flow_json|string
The Flow JSON content. Pass as a JSON object or a JSON string.
Response Body
application/json
application/json
curl -X PUT "https://zernio.com/api/v1/whatsapp/flows/string/json" \ -H "Content-Type: application/json" \ -d '{ "accountId": "507f1f77bcf86cd799439011", "flow_json": { "version": "6.0", "screens": [ { "id": "LEAD_FORM", "title": "Get a Quote", "terminal": true, "success": true, "layout": { "type": "SingleColumnLayout", "children": [ { "type": "TextInput", "name": "full_name", "label": "Full Name", "required": true, "input-type": "text" }, { "type": "TextInput", "name": "email", "label": "Email", "required": true, "input-type": "email" }, { "type": "Footer", "label": "Submit", "on-click-action": { "name": "complete", "payload": { "full_name": "${form.full_name}", "email": "${form.email}" } } } ] } } ] } }'{
"success": true,
"validation_errors": [
{
"error": "string",
"error_type": "string",
"message": "string",
"line_start": 0,
"line_end": 0,
"column_start": 0,
"column_end": 0
}
]
}Empty
{
"error": "Unauthorized"
}Empty