Aysali API icon

Aysali API

Interact with Aysali API

Chat → Block Contact

AI-generated

Summary

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'.

Links

Discussion