whatsapp flows
List flows
List all WhatsApp Flows for the Business Account (WABA) associated with the given account.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
accountIdstring
WhatsApp social account ID
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.listWhatsAppFlows({ query: { accountId: 'account_abc123', },});console.log(data);{
"success": true,
"flows": [
{
"id": "string",
"name": "string",
"status": "DRAFT",
"categories": [
"string"
],
"validation_errors": [
{}
]
}
]
}Empty
{
"error": "Unauthorized"
}Empty
Release phone number DELETE
Release a purchased phone number. This will: 1. Disconnect any linked WhatsApp social account 2. Decrement the Stripe subscription quantity (or cancel if last number) 3. Release the number from Telnyx 4. Mark the number as released
Create flow POST
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.