OverviewProductsPlatformsAPI ReferenceResources
Meta Business Agent

Create a connector

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

Base URL plus how to authenticate (OAuth client credentials, API key or none). Names are unique per number. 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

namestringRequired

Unique per number.

base_urlstring (uri)Required

Public HTTPS URL reachable from Meta.

auth_typestringRequiredOne of OAUTH2_CLIENT_CREDENTIALS | API_KEY | NONE
Optional parameters5 fields
descriptionstring

Tell the agent what the service provides.

connector_protocolstring
auth_configobject
user_auth_injection_configobject
locationstringRequired
field_namestringRequired
requires_certificateboolean

Responses

Success· the request worked

Errors· the request failed

POST/v1/accounts/{accountId}/business-agent/connectors
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.businessagent.createBusinessAgentConnector({  path: {    accountId: 'account_abc123',  },  body: {    name: 'Example',    base_url: 'https://example.com',    auth_type: 'OAUTH2_CLIENT_CREDENTIALS',  },});console.log(data);
{  "name": "string",  "description": "string",  "base_url": "http://example.com",  "connector_protocol": "string",  "auth_type": "OAUTH2_CLIENT_CREDENTIALS",  "auth_config": {    "oauth2_client_credentials": {      "token_url": "http://example.com",      "scopes_to_request": [        "string"      ],      "token_request_content_type": "string",      "client_id": "string",      "client_secret": "string"    },    "api_key": {      "headers": [        {          "field_name": "string",          "value": "string",          "prefix": "string"        }      ],      "query_params": [        {          "field_name": "string",          "value": "string",          "prefix": "string"        }      ],      "body_params": [        {          "field_name": "string",          "value": "string",          "prefix": "string"        }      ]    }  },  "user_auth_injection_config": {    "location": "string",    "field_name": "string",    "prefix": "string"  },  "requires_certificate": true,  "id": "string",  "mcp_tool_sync": {},  "mtls_config": {},  "connection_status": {    "status": "string",    "error_message": "string"  }}
OpenAPI specification
Was this page helpful?