Request
Body
The email address of the recipient.
The ID of the transactional email to send.
If
true
, a contact will be created in your audience using the email
value
(if a matching contact doesn’t already exist).An object containing data as defined by the data variables added to the
transactional email template. Values can be of type
string
or number
. If
you have added optional data
variables to your email, you can
exclude them from the dataVariables
object or set the value to ""
.Please email us to enable attachments on your
account before using them with the API.
To set dynamic Subject, From, Reply to, CC, BCC email header fields, add data
variables to those fields in the editor, then include data for each variable
in the API request. Read our transactional email
guide for more details.
Headers
Optionally send an idempotency key to avoid duplicate requests. The value
should be a string of up to 100 characters and should be unique for each
request. We recommend using V4 UUIDs or some other method with enough
guaranteed entropy to avoid collisions during a 24 hour window. The endpoint
will return a
409 Conflict
response if the idempotency key has been used in
the previous 24 hours.Response
Success
Error
If the transactional email is not found, a404 Not Found
will be returned.
If you send an idempotency key which has already been used in the previous 24 hours, a 409 Conflict
response will be returned.
All other errors will be 400 Bad Request
.
Deprecated fields will be removed in the future so avoid using them in your
code.