Email opt out via Javascript?


Is there a way to trigger email opt out via the Javascript API, either via a contact property or custom event?


Hi @greghinchgs,

Not directly; the only way to opt out a contact is to make a request to the email subscriptions API, which cannot be done client side.