Get ice breakers and commands
Read the number's conversational automation (Meta's conversational_automation): ice breaker prompts, slash commands and the welcome-message flag. A number with none set returns the empty configuration.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Query Parameters
WhatsApp account ID
Response Body
application/json
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.whatsapp.getWhatsAppConversationalAutomation({ query: { accountId: 'account_abc123', },});console.log(data);{ "data": { "enable_welcome_message": true, "prompts": [ "string" ], "commands": [ { "command_name": "string", "command_description": "string" } ] }}Clear ice breakers and commands
Remove every prompt and command and turn the welcome message off.
Get pricing analytics
Message volume and approximate cost for one connected WhatsApp number, read live from Meta's `pricing_analytics` on the WhatsApp Business Account and scoped to that account's phone number. Meta's figures are approximate and can lag; Meta bills from its own invoice. Meta limits how far back and how fine the data goes (for example HALF_HOUR only over short ranges) and answers out-of-range requests with an error.