OverviewProductsPlatformsAPI ReferenceResources
Meta Business Agent

Create the agent

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

Creates the Meta Business Agent on the number and schedules Meta's data preparation.

Requires the terms to be accepted. Eligibility is checked first, and an ineligible number answers 403 business_agent_not_eligible.

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).

Responses

Success· the request worked

Errors· the request failed

How it behaves

Setup order

Not idempotent: call it once, then:

  1. Configure knowledge and skills.
  2. Enable it through the settings.

Configuration calls made in the first minute can still answer business_agent_not_found while Meta prepares the workspace.

POST/v1/accounts/{accountId}/business-agent/onboard
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.businessagent.onboardBusinessAgent({  path: {    accountId: 'account_abc123',  },});console.log(data);
{  "agentId": "string"}
OpenAPI specification
Was this page helpful?