Send test of broadcast
Sends the broadcast as it is saved now to the addresses you give, with "[Test]" before the subject, and leaves the broadcast as it is. It needs a sender, a subject and a message. It is a real email and counts as one.
broadcasts_testArguments
idstringRequiredThe id of the item. Up to 64 characters.
tostring | string[]RequiredWho gets the test: one address, or up to 50.
Returns
The answer comes back under structuredContent, with the same JSON as text in content. A call the API refuses comes back with isError set, and the code and the message under structuredContent.error. MCP shows how to connect a client.
object"email"Always
email.idstringThe id of the email.
fromstringThe sender.
tostring[]Who the email is for.
subjectstringThe subject line.
statusstringWhere the email is:
scheduled,queued,sent,delivered,delayed,bounced,complained,failedorcanceled, andopenedorclickedonce the recipient acts.One of
queuedsentdelivereddelayedbouncedopenedclickedcomplainedfailedscheduledcanceledmodestringlivefor a real email.testfor an email of the sandbox: it was sent with a test key or to test addresses, nothing left the service and what happened to it is simulated.One of
livetestdomainstringThe domain it was sent from.
ccstring[]Who got a copy.
bccstring[]Who got a copy without the others seeing.
replyTostring | nullThe address replies go to, or
null.scheduledAtstring | nullWhen it is due to be sent, or
nullfor an email sent at once.createdAtstringWhen the API accepted the email.
htmlstring | nullThe message as HTML, or
null.textstring | nullThe message as plain text, or
null.headersRecord<string, string>The extra headers you sent, by name.
tagsRecord<string, string>The tags you sent, by name.
attachmentsobject[]The files that were attached. Their content is not kept.
attachments[].filenamestringThe name of the file.
attachments[].contentTypestring | nullThe media type of the file, or
nullwhen none was given.attachments[].sizeinteger | nullThe size of the file in bytes, or
nullwhen it was given by address.templateIdstring | nullThe id of the template it was built from, or
null.automationobject | nullThe automation run that sent it, or
nullfor an email you sent yourself.automation.idstringThe id of the automation.
automation.runIdstringThe id of the run.
automation.stepIdstringThe id of the step that sent it.
eventsobject[]What has happened to the email, oldest first.
events[].typestringWhat happened: the status the email moved to.
One of
queuedsentdelivereddelayedbouncedopenedclickedcomplainedfailedscheduledcanceledevents[].atstringWhen it happened.
events[].detailstringMore about it, such as the reason for a bounce. Often empty.