Update a Privacy Setting
View all WhatsApp Messaging API endpoints →Update one of the account's privacy settings. Send a JSON body with setting (groupadd, last, status, profile, readreceipts, online, or calladd) and value (all, contacts, contact_blacklist, none, match_last_seen, or known). Each setting supports a different range of values, validated by the WhatsApp server. Returns the full updated settings.
API Features
Seven settings Control last seen, profile, About/status, read receipts, group adds, online, and calls
Granular values Choose all, contacts, contact_blacklist, none, match_last_seen, or known per setting
Full result Returns the complete updated settings after the change
Live API Demo
🔒 Sign in to try it live
Log in to call this API with your own API key. New accounts get 100 free credits — no card required.
Log in / Sign upNo active API key found. Create one in your Dashboard, then reload this page. Dashboard →
PUT
/api/project/whatsapp-messaging/set-privacy-setting API Response (JSON)
{} curl -X PUT 'https://api.opendata-api.com/api/project/whatsapp-messaging/set-privacy-setting?key=<API_KEY>&sessionId=<sessionId>' \
-H 'Content-Type: application/json' \
-d '{"body":"{\"setting\":\"last\",\"value\":\"contacts\"}"}'
curl -X PUT 'https://api.opendata-api.com/api/project/whatsapp-messaging/set-privacy-setting?key=<API_KEY>&sessionId=<sessionId>' \
-H 'Content-Type: application/json' \
-d '{"body":"{\"setting\":\"last\",\"value\":\"contacts\"}"}' Query Result
Need Help?
If you encounter API issues or need other API requirements, please contact us.
Use Cases
- Hide last-seen and online status on a privacy-sensitive account
- Restrict who can add the account to groups
- Turn off read receipts for a low-profile automation account