Documentation Index
Fetch the complete documentation index at: https://docs.wappfy.com.br/llms.txt
Use this file to discover all available pages before exploring further.
Description
This endpoint allows you to update the profile picture of the user authenticated in the WhatsApp session. The image must be sent in base64 format.
URL Parameters
WhatsApp unique authenticated session ID
Request Body
Profile picture image encoded in base64. The image will be set as the new user profile picture on WhatsApp.
{
"picture": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="
}
Response
Indicates if the operation was successful
Status Codes
200 - Picture updated successfully
400 - Invalid parameters or missing base64 image
401 - Unauthorized
413 - Image too large
500 - Internal server error
Usage Example
curl -X PUT https://api.wappfy.com.br/api/my-session/profile/picture \
-H "Content-Type: application/json" \
-d '{"picture": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="}'
Observations
- The image must be in base64 format
- Supported formats: JPG, PNG, GIF
- It is recommended to use square images for better display
- Recommended maximum size: 5MB
Your Wappfy API key (get it at dash.wappfy.com.br)
The session name (instanceName) of the profile you want to update
success
boolean
default:true
required