PUT
Add to Blacklist
Block a contact.
API endpoint
https://waclient.com/api/add_to_blacklistExample:
curl -X PUT \
'https://waclient.com/api/add_to_blacklist' \
-H 'Content-Type: application/json' \
--data '{
"contact_id": "20100981XXXX",
"instance_id": "6A4B02A1XXXX",
"access_token": "EMCUH3NQQK8YXXXX"
}'Response
{
"status": "success",
"message": "Success",
"data": {
"blocked": true,
"jid": "80316559523939XXXX@lid",
"contact_id": "20100981XXXX"
}
}| Parameter | Description |
|---|---|
| contact_id | Phone or JID |
| instance_id | Your instance ID |
| access_token | Your access token |
POST is also accepted as an alternative to PUT. WhatsApp may reject some block requests; the API resolves LID automatically when possible.