whatsapp
Get username suggestions
Retrieve a list of available WhatsApp Business username suggestions based on the account's business profile name. Use these to help users discover valid, unclaimed usernames.
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.getWhatsappBusinessUsernameSuggestions({ query: { accountId: 'account_abc123', },});console.log(data);{
"success": true,
"suggestions": [
"mybusiness",
"mybusiness_official",
"mybiz"
]
}{
"error": "Unauthorized"
}Empty
Delete business username DELETE
Release the currently claimed WhatsApp Business username from the account. After deletion the username becomes available for other accounts to claim.
Get business username GET
Fetch the current WhatsApp Business username and its approval status. Username status can be `approved` (active), `reserved` (pending activation), or `none` (no username set).