whatsapp
Get business profile
Retrieve the WhatsApp Business profile for the account (about, address, description, email, websites, etc.).
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
accountIdstring
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"
}
}Empty
{
"error": "Unauthorized"
}Empty