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

POST

Query Marketing Consent


Note: This query method uses the new Wix API Query Language syntax. If you're still using the old query syntax with chained query builder methods, see Migrate from SDK Query Builders to Wix API Query Language for guidance. The old query builder methods continue to work.

Retrieves a list of marketing consents, given the provided paging, filtering, and sorting. Up to 100 marketing consents can be returned per request.

The default sort is id in ASC order. For a detailed list of supported operations, see filtering and sorting for marketing consent properties. To learn how to query marketing consents, see API Query Language.

PropertyFiltersSort
details.email$eqNone
details.phone$eqNone
state$eqNone
Authentication

This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:

  • In Wix sites and Wix apps, use elevated permissions.
  • In Wix Headless projects, use API key authentication.
Permissions
Read Marketing Consents
Learn more about app permissions.
Method Declaration
Copy
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?