Mailrelay API Reference

Send a campaign to test emails

POST /campaigns/{id}/send_test

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

NameTypeDescription
id integer ID of the record
test_emails string 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
500 An internal error happened. Try again later.