Skip to main content
Send a trial e-mail

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Body

application/json
sendTo
string<email>[]
required

Addresses to send the trial message to. Each of them is answered for separately.

Required array length: 1 - 100 elements
Example:
template
object
required

The message to send, given in full - it is rendered as it stands and nothing is read from the stored e-mails, which is what makes this a preview of a draft rather than of what is saved.

data
object

Values for the placeholders in the message, standing in for the document, the people and the dates a real send would fill in. What is about the workspace and the recipient is filled in regardless, so only what is peculiar to the message needs to be given.

smtpCredentials
object

Mail server to send through, for trying out a server before it is settled on. What is left out of it is filled in from the one the workspace uses now, and none of it is kept afterwards. Left out altogether, the message goes through the server the workspace already uses.

Response

Returns what the mail server said for each address.

The outcome of the send, keyed by the address it was sent to.

{key}
object

How the send to one address went, the property name being that address. It comes back empty where the message never reached the mail server at all - the address not being usable, or sending being switched off here.