Go Headless

Changelog

API Reference
Articles
Platform Overview
Authentication
Work with Wix APIs
SDK Setup and Usage
Wix MCP

App Management
OAuth 2
App Billing
App Instance
App Permissions
Embedded Scripts
BI Event
Editor Deep Link
Site Plugins

Business Solutions
eCommerce
Stores
Bookings
CMS
Events
Restaurants
Blog
Forum
Pricing Plans
Portfolio
Benefit Programs
Donations
Gift Cards
Coupons

Assets
Media
HTTP Functions
Rich Content
Pro Gallery

CRM
Members & Contacts
Forms
Community
Communication
Loyalty Program
CRM

Business Management
AI Site-Chat
Analytics
App Installation
Async Job
Automations
Branches
Calendar
Captcha
Cookie Consent Policy
Custom Embeds
Data Extension Schema
Dashboard
FAQ App
Functions
Get Paid
Headless
Locations
Marketing
Introduction
Sample flows
Emails
Marketing Consent
Introduction
Sample Flows
Sort and Filter
Marketing Consent Object
P
Create Marketing Consent
G
Get Marketing Consent
P
Update Marketing Consent
D
Delete Marketing Consent
P
Query Marketing Consent
P
Bulk Upsert Marketing Consent
G
Get Marketing Consent By Identifier
P
Remove Marketing Consent
P
Upsert Marketing Consent
Marketing Consent Created
Marketing Consent Deleted
Marketing Consent Updated
Referral Program
SEO
Marketing Tags
Multilingual
Notifications
Payments
Site Search
Secrets
Site Properties
Site URLs
Tags

Account Level
About Account Level APIs
Sites
Resellers
Domains
B2B Site Management
User Management

Site
Viewer

Marketing Consent Created


Notes:
  • This method registers a callback function as an event handler.
  • When developing websites or building apps with Blocks, use a Velo backend event instead of this method.
  • When building apps not using Blocks, the way you call this method differs depending on the framework you are working in:
    • When using the CLI, run the generate command to add an event extension, and then call this method within the extension code.
    • When building a self-hosted app, subscribe your app to the relevant event, and then call this method on your server.

Triggered when a marketing consent is created.

Permissions
Read Marketing Consents
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
handlerfunction

handler(event: MarketingConsentCreatedEnvelope): void | Promise<void>

Did this help?