Set marketing consent
set_contact_consentRecords a contact's marketing consent: subscribed only when the person says the contact really agreed, with where and how (source); unsubscribed when they asked to stop, which also suppresses the address. An unsubscribed or suppressed address cannot be subscribed this way. Subscribing can start journeys that begin on Subscribed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Where and how they gave or withdrew consent, in the person’s words, e.g. "Ticked the newsletter box at signup on 2026-03-01". Never invented. | |
| confirm | No | Leave out first: the tool then says exactly what will happen and changes nothing. Pass true only after the person has seen that and said yes. | |
| consent | Yes | ||
| contactId | Yes | Contact id from search_contacts. |