addWhatsappOptOut
Block a customer from receiving WhatsApp messages sent from a chosen workspace number, creating a lasting opt-out until you lift it.
Instructions
Block a customer from receiving messages you start from this number.
The block lasts until you lift it. The response is 201 for a new block. It
is 200 with the entry unchanged if the customer was already blocked.
(Tags: WhatsApp)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"number_id": "<number_id>",
"customer": "<customer>"
},
"name": "addWhatsappOptOut"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | A note for your team. | |
| customer | Yes | The customer's number in international format, such as `+15551234567`. | |
| number_id | Yes | Id of a WhatsApp number in your workspace, from [listWhatsappNumbers](/docs/api-reference/whatsapp/listWhatsappNumbers). A number in another workspace answers `404`. |