OverviewProductsPlatformsAPI ReferenceResources
Meta Business Agent

Allowlist a consumer

POSThttps://zernio.com/api/v1/accounts/{accountId}/business-agent/allowlist

One E.164 number per call. Not idempotent.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

accountIdstringRequired

WhatsApp social account id (the number must be managed through the Cloud API).

Body

application/json

What every request needs

consumer_phone_numberstringRequired

Responses

Success· the request worked

Errors· the request failed

POST/v1/accounts/{accountId}/business-agent/allowlist
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"}
OpenAPI specification
Was this page helpful?