POST

Publish Campaign


Publishes and sends a specified campaign.

If the email_distribution_options object isn't passed in the request, the campaign is only published as a landing page.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Access Verticals by Automations
Set Up Automations
Manage Email Marketing
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/email-marketing/v1/campaigns/{campaignId}/publish

Path Params
campaignIdstringRequired

Campaign ID

Body Params
emailDistributionOptionsEmailDistributionOptions

Email distribution options. Pass this object in the request if you need to distribute your marketing campaign with emails.

Response Object
publishingDataPublishingData

Publishing info.

Publish Campaign
Request
cURL
Response
JSON
Errors
428Failed Precondition

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?