Skip to main content

Profile

Edit the profile of the account a WhatsApp Web session is linked to. These endpoints need a connected whatsapp_web session; a Cloud API or offline session answers with the usual not-connected error.

Update Profile​

Change any of the display name, the About text and the picture in one call. At least one field is required, and fields you leave out are not touched. Everything is validated before anything is sent, so a bad picture does not leave the name half-changed.

PUT /api/v1/sessions/{session_id}/profile

Request Body​

{
"name": "Acme Support",
"about": "Open 09:00-17:00 WIB",
"picture": { "url": "https://example.com/logo.png" }
}
FieldTypeDescription
namestringDisplay name (push name), 1 to 25 characters after trimming
aboutstringAbout text, up to 139 characters. An empty string clears it
pictureobject{"url": "..."} or {"data": "<base64>", "mimetype": "image/png"}. Any common image format is accepted; it is centre-cropped to a square and re-encoded as a 640x640 JPEG

Response​

{
"success": true,
"message": "Updated name, about, picture"
}

Errors​

StatusWhen
400No field given, name or About out of range, or the picture cannot be decoded
404Session not found
503Session is not connected

Remove Profile Picture​

DELETE /api/v1/sessions/{session_id}/profile/picture

Response​

{
"success": true,
"message": "Profile picture removed"
}