POST

Send Test


Sends a test email. Use this method to preview your email campaign.

We strongly recommend you calling this method only a few times in a row, as it has a rate limit.

Authentication

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

Permissions
Manage Email Marketing
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/email-marketing/v1/campaigns/{campaignId}/test

Path Params
campaignIdstringRequired

Campaign ID.

Body Params
emailSubjectstringmaxLength 1000

Email subject.


toEmailAddressstringRequiredformat EMAIL

Recipient email address.

Response Object
Returns an empty object.
Send Test
Request
cURL
curl -X POST 'https://www.wixapis.com/email-marketing/v1/campaigns/98b5a0b3-549b-4e58-b933-a8bd40923a14/test' \ -H 'Authorization: <AUTH>' -H 'Content-Type: application/json' \ -d '{ "emailSubject": "Yoga with puppies", "toEmailAddress": "yoga@example.com" }' \
Response
JSON
{}
Errors

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

Did this help?