Upload profile picture
Upload a new profile picture for the WhatsApp Business Profile. Uses Meta's resumable upload API under the hood: creates an upload session, uploads the image bytes, then updates the business profile with the resulting handle.
API key authentication - use your Zernio API key as a Bearer token
In: header
WhatsApp social account ID
Image file (JPEG or PNG, max 5MB, recommended 640x640)
binaryResponse 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.uploadWhatsAppProfilePhoto();console.log(data);{
"success": true,
"message": "string"
}{
"error": "Unauthorized"
}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.
Get display name status GET
Fetch the current display name and its Meta review status for a WhatsApp Business account. Display name changes require Meta approval and can take 1-3 business days.