POST
/
email_templates
/
{id}
/
draft_send

When providing variables for filling email templates, ensure that the variable name matches those inside the email template. At the moment, only “flat” variables are supported, e.g. fullName or name, but customer.name are not presently supported.

Authorizations

Authorization
string
headerrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The ID of the email template

Body

application/json
from
string
required

The ID of the email address to send from

to
string
required

The email address to send to

variables
object

Variables to use in the email template

Response

200 - application/json
from
string
required

The from address of the draft email

to
string
required

The to address of the draft email

subject
string
required

The subject of the draft email

body
string
required

The body of the draft email