Introduction
Developer Preview
APIs in Developer Preview are subject to change and are not intended for use in production.
Send us your suggestions for improving this API. Your feedback is valuable to us.
APIs in Developer Preview are subject to change and are not intended for use in production.
Send us your suggestions for improving this API. Your feedback is valuable to us.
Note: This module is universal. Functions in this module can run on both the backend and frontend, unless specified otherwise.
The Campaigns API provides functionality for managing your email marketing campaigns.
With the Campaigns API you can:
- Get or list email campaigns.
- Create a draft copy of an existing campaign.
- Permanently delete a campaign.
- List statistics and list recipients of campaigns.
- Pause a scheduled campaign.
- Publish a campaign or send a test email.
To use the Campaigns API, import campaigns
from the wix-email-marketing.v2
module:
js | Copy Codeimport { campaigns } from `wix-email-marketing.v2`;
Permissions information
Functions in the Campaign API are restricted and only run if you elevate permissions using the wix-auth
elevate()
function.
Warning: Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.
Was this helpful?