mautic_add_contact_dnc
Adds a do-not-contact entry for a Mautic contact on email or SMS, with optional reason and comments; omit confirmation to preview the write.
Instructions
Add a do-not-contact entry. POST /api/contacts/{id}/dnc/{channel}/add with optional reason (1 unsubscribed, 2 bounced, 3 manual), channelId, and comments. Omit confirm for a dry-run preview.
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": {
"contact_id": "<contact_id>",
"channel": "<channel>"
},
"name": "mautic_add_contact_dnc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | 1 unsubscribed, 2 bounced, 3 manual. | |
| channel | Yes | DNC channel. email or sms. | |
| confirm | No | Set to the boolean true to execute the write. Omit this field for a dry-run preview. false and the string true are rejected. | |
| comments | No | ||
| channelId | No | ID of the entity that caused the entry. | |
| contact_id | Yes |