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.
Provide the image either as a binary upload (multipart/form-data with file)
or as a download URL (application/json with url) — with a URL we fetch the
image server-side and upload the bytes for you. Meta's profile-photo API is
bytes-only, so there is no direct URL passthrough. JPEG/PNG, max 5MB either way.
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({ body: { accountId: 'account_abc123', url: 'https://example.com', },});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.