cURL
curl --request POST \ --url https://api.z-api.io/instances/{instanceId}/token/{token}/contacts/modify-blocked \ --header 'Client-Token: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "phone": "<string>", "action": "<string>" } '
Block or unblock a contact on WhatsApp
block
unblock
{ "phone": "5544999999999", "action": "block" }
{ "value": true }