Block / Unblock a Contact

View all WhatsApp Messaging API endpoints →

Block or unblock a phone number. Send a JSON body with phone (the full international number, JSON number, digits only) and action (block or unblock). Returns the updated blocklist. Use it to automatically shut out spam or reinstate a contact.

API Features

Block or unblock One endpoint handles both adding and removing a block
By number Target a contact using the full international phone number
Updated list Returns the refreshed blocklist after the change

Live API Demo

PUT /api/project/whatsapp-messaging/update-blocklist

API Response (JSON)

{}
curl -X PUT 'https://api.opendata-api.com/api/project/whatsapp-messaging/update-blocklist?key=<API_KEY>&sessionId=<sessionId>' \ -H 'Content-Type: application/json' \ -d '{"body":"{\"phone\":8613800138000,\"action\":\"block\"}"}'
📢
Need Help?
If you encounter API issues or need other API requirements, please contact us.
Contact Us

Use Cases

Related operations

Guides

View Subscription Plans →