PUT /profile/pictureUpdates the profile picture of the currently connected WhatsApp account.Developer Tips & Best Practices:
Image Dimensions: WhatsApp recommends square images. A resolution of 640x640 pixels is ideal for profile photos.
File Format: JPG is the most reliable format. If you use other formats (PNG), the system may attempt to convert them.
Removal: To remove the current profile picture, send a DELETE request to this same endpoint (DELETE /awp/v1/profile/picture).
Request
Query Params
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request PUT 'https://wawp.net/wp-json/awp/v1/profile/picture?instance_id=123456789&access_token=123456789&file%5Burl%5D=https://example.com/me.jpg&file%5Bfilename%5D=me.jpg&file%5Bmimetype%5D=image%2Fjpeg'