Skip to content

Send Newsletter Test

Tool name: send-newsletter-test

Sends a newsletter’s published email as a test to one specified address, not its audience. An address not yet in the account becomes a tagged test contact and may start automations. Name the address and disclose that effect before calling. A never-published body is refused (publish it with publish-newsletter-email-content); edits made since publication are not sent (the test uses the older published body). For a split test, messageId selects the variant emailId.

Input schema

newsletterIdinteger, >= 1required

ID of the newsletter to send a test of

recipientEmailstring, [ 3 .. 250 ] charactersrequired

Address to send the test to; any address, and one that is not a contact yet becomes one

messageIdnull or integer, >= 1

For a split test: the emailId of the variant to test, as get-newsletter-split-test lists it; omit otherwise

Default:null
accountIdnull or integer, >= 1

User ID of the account; omit for the account the access token works in

Default:null
Input example
{ "newsletterId": 1, "recipientEmail": "string", "messageId": null, "accountId": null }

Output schema

accountIdintegerrequired
newsletterIdintegerrequired
emailIdintegerrequired
recipientstringrequired
audienceReachedbooleanrequired
newsletterStatusstringrequired
messagesArray of stringsrequired
warningsArray of stringsrequired
Output example
{ "accountId": 0, "newsletterId": 0, "emailId": 0, "recipient": "string", "audienceReached": true, "newsletterStatus": "string", "messages": [ "string" ], "warnings": [ "string" ] }