List allowlisted consumers
Consumers the agent answers while ai_audience is ALLOWLISTED_ONLY.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
WhatsApp social account id (the number must be managed through the Cloud API).
Response Body
application/json
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.businessagent.listBusinessAgentAllowlist({ path: { accountId: 'account_abc123', },});console.log(data);{ "entries": [ { "id": "string", "consumer_phone_number": "string" } ]}Update agent settings
Partial update: fields you omit keep their value. `rollout.enabled: true` turns the agent on for new conversations; `false` stops it on every thread. Turning it on for `EVERYONE` needs a payment method on the Business Agent billable account (Meta accepts the call but delivers nothing without one); `ALLOWLISTED_ONLY` does not, which is how you test with a few numbers before billing. `never_say_phrases` replaces the whole list.
Allowlist a consumer
One E.164 number per call. Not idempotent.