Emails
Draft send an email based off an email template
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
headerrequiredBasic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Path Parameters
id
string
requiredThe ID of the email template
Body
application/json
from
string
requiredThe ID of the email address to send from
to
string
requiredThe email address to send to
variables
object
Variables to use in the email template
Response
200 - application/json
from
string
requiredThe from address of the draft email
to
string
requiredThe to address of the draft email
subject
string
requiredThe subject of the draft email
body
string
requiredThe body of the draft email