Mailrelay API Reference

Send a campaign to test emails

POST https://{account}/api/v1/campaigns/{id}/send_test

Authentication

Requires an API key sent in the X-AUTH-TOKEN header.

This method is used to send a campaign to test emails. It's useful to test your newsletter before sending it to your subscribers

Parameters

NameTypeRequiredDescription
id integer Yes ID of the record
test_emails string Yes Test emails. You can send to multiple recipients by separating them with commas. Example: [email protected],[email protected]

Responses

StatusDescription
204 Success
400 The request is invalid. Check if the field names in the request and the request data is valid.
422 A validation error occurred. Check the response body for more information.
401 The API key wasn't sent or is invalid
429 Too many requests. You have exceeded the rate limit, wait and try again later.
500 An internal error happened. Try again later.