Actions64
- Instance Actions
- Message Actions
- Group Actions
- Chat Actions
- Profile Actions
- Event Actions
- Integration Actions
Chat → Block Contact
AI-generatedSummary
Blocks or unblocks a contact on a specified Aysali API instance.
Inputs
- instanceName (required) — The name of the Aysali API instance to use.
- remoteJid (required) — The WhatsApp ID (JID) of the contact to block or unblock.
- status (required) — Action to perform: block or unblock the contact.
Output shape
Returns the API response indicating whether the block/unblock operation succeeded.
The operation uses the selected instance’s credentials to call the Aysali API endpoint for blocking/unblocking a contact.
Examples
Example 1: Block a spam number.
Set instanceName to your Aysali instance, remoteJid to the phone number (e.g., 1234567890@c.us), status to 'block'.