This article outlines the end-to-end flow for setting up email marketing for a site and sending campaigns using the Wix Emails APIs. The flow covers verifying sender emails, creating sender details, building campaigns, and monitoring delivery results.
It's important to note the following before starting to code:
The following diagram shows the full email marketing setup flow.

Confirm the account is active and has available sending quota before creating a campaign.
Action: Call Get Account Details to retrieve the account status and current quota.
Result: Confirms whether campaigns can be created and sent.
Verify the email addresses that will be used as the campaign's "from" and "reply to" addresses.
Action: Use the Sender Emails API to create and verify a sender email address, then complete the verification process for that email.
Result: The sender email is verified and can be used in sender details.
Create sender details by pairing a sender name with a verified email address.
Action: Call Create Sender Details with the sender name and verified email ID.
Result: A sender profile is created and can be assigned to campaigns.
Authenticate a custom domain so campaign emails can use a branded "from" address and improve deliverability.
Action: Use the Sending Domains API to retrieve the domain, review the required DNS records, then authenticate the domain after DNS changes propagate.
Result: The domain gets the AUTHENTICATED status and can be used in sender details.
Validate content with a test email.
Action: Call Send Test to send a test email.
Result: The campaign is tested.
Publish or schedule the campaign to a contact list.
Action: Call Publish Campaign to publish the campaign to an audience (or reschedule if needed).
Result: The campaign is sent or scheduled for distribution. The flow is complete.
Tip: