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
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.whatsappflows.createWhatsAppFlow({ body: { accountId: 'account_abc123', name: 'Example', categories: [ 'SIGN_UP', ], },});console.log(data);{
"success": true,
"flow": {
"id": "string",
"name": "string",
"status": "DRAFT",
"categories": [
"string"
]
}
}Empty
{
"error": "Unauthorized"
}Empty