whatsapp flows
Create flow
Create a new WhatsApp Flow in DRAFT status. Optionally clone an existing flow. After creating, upload a Flow JSON definition, then publish to make it sendable.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
accountIdstring
WhatsApp social account ID
namestring
Flow display name
Length
length <= 128categoriesarray<string>
Flow categories
Items
1 <= itemscloneFlowId?string
Optional: ID of an existing flow to clone
Response Body
application/json
application/json
curl -X POST "https://zernio.com/api/v1/whatsapp/flows" \ -H "Content-Type: application/json" \ -d '{ "accountId": "507f1f77bcf86cd799439011", "name": "lead_capture_form", "categories": [ "LEAD_GENERATION" ] }'{
"success": true,
"flow": {
"id": "string",
"name": "string",
"status": "DRAFT",
"categories": [
"string"
]
}
}Empty
{
"error": "Unauthorized"
}Empty