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.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
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.createWhatsAppFlow({ body: { accountId: 'account_abc123', name: 'Example', categories: [ 'SIGN_UP', ], },});console.log(data);{ "success": true, "flow": { "id": "string", "name": "string", "status": "string", "categories": [ "string" ], "version": 0, "lineageId": "string" }}