Get business profile
Retrieve the WhatsApp Business profile for the account (about, address, description, email, websites, etc.).
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
WhatsApp social account ID
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.whatsapp.getWhatsAppBusinessProfile({ query: { accountId: 'account_abc123', },});console.log(data);{
"success": true,
"businessProfile": {
"about": "string",
"address": "string",
"description": "string",
"email": "string",
"profilePictureUrl": "http://example.com",
"websites": [
"string"
],
"vertical": "string"
}
}{
"error": "Unauthorized"
}Look up a library template GET
Look up a single pre-approved Template Library template by its exact name, to introspect its structure before importing it. Most importantly it returns the template's `buttons`: a library template with `URL` / `PHONE_NUMBER` buttons must be created with a matching `library_template_button_inputs` array (see Create Template), or Meta rejects it. Use this to discover which inputs to collect.
Update business profile POST
Update the WhatsApp Business profile. All fields are optional; only provided fields will be updated. Constraints: about max 139 chars, description max 512 chars, max 2 websites.