Meta Business Agent
Allowlist a consumer
One E.164 number per call. Not idempotent.
Authorization
bearerAuth AuthorizationBearer <token>
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
accountId*string
WhatsApp social account id (the number must be managed through the Cloud API).
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
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.addBusinessAgentAllowlistEntry({ path: { accountId: 'account_abc123', }, body: { consumer_phone_number: '+34600000000', },});console.log(data);{ "id": "string", "consumer_phone_number": "string"}Was this page helpful?