Opt campaign recipients out
opt_out_campaign_recipientsRecords that the chosen campaign recipients asked to stop, as Opt out on the send queue does: scope 'all' stops every message, 'marketing' stops campaigns only; a short reason is required. It is a one-way stop and sends nothing. taskIds are the selected campaign step tasks from the send queue. Pass the same idempotency_key when retrying.
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": {
"taskIds": "<taskIds>",
"scope": "<scope>",
"reason": "<reason>",
"idempotency_key": "<idempotency_key>"
},
"name": "opt_out_campaign_recipients"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | ||
| reason | Yes | ||
| taskIds | Yes | ||
| idempotency_key | Yes | Your id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation. |