Send a test email of a campaign
PUT /campaigns/{uuid}/actions/send_test
/campaigns/{uuid}/actions/send_testSENDS A REAL TEST EMAIL of a draft campaign to up to 5 addresses that you choose, so you can see it in an inbox. It reaches only those addresses, never the campaign recipients, and the campaign stays a draft. The test uses the sender, subject and content saved in the campaign.
When to use: Before sending or scheduling a campaign, to check how it looks in a real inbox.
When not to use: To send to the actual recipients, use campaign_send_now or campaign_schedule. For an SMS campaign, use send_sms_campaign_test.
Side effects: Sends real emails to the addresses in emails. It counts toward the daily limit of test emails of the plan. It is not a campaign send: the status and statistics of the campaign do not change. In an A/B test, a subject test uses the first subject variant, and a template test uses the variant chosen with test_index.
Permissions: Requires the viewer role or higher, or the marketing.campaigns.read capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the email campaign (the uuid field returned by list_campaigns).
The updated Campaign resource
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://api.easymailing.com/campaigns/8d4e2a71-5c3b-4f96-b1a8-6e0d9c7f2b35/actions/send_test" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "emails": [ "user@example.com" ], "test_index": 0 }'null