Set consent
set_consentRecord an opt-in or opt-out from your own system (CRM, checkout, a form). An opt-in for a marketing registration needs proof (source, when, the page).
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": {
"phone": "<phone>",
"status": "<status>"
},
"name": "set_consent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | A note kept on the consent record | |
| phone | Yes | E.164 number | |
| proof | No | Opt-in evidence (Messaging Policy 1.4). Accepted only with status opted_in. | |
| status | Yes | opted_in or opted_out | |
| campaign_id | No | Only with opted_in: the registration the person opted in to. A marketing send from a number linked to that registration looks for this record. Proof is required when its use case is marketing or mixed (400 otherwise). An opt-out is always account-wide. |