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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| phone | Yes | E.164 number | |
| proof | No | Opt-in evidence (Messaging Policy 1.4). Accepted only with status opted_in. | |
| status | Yes | ||
| 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. |