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.
Update email subscription status for an email address | Email API
PUT /email/public/v1/subscriptions/:email_address