POST
/
emails
/
send

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
templateId
string
required

The Spellbound email ID, which can be found in the URL of the selected email in the designer or in the code snippet on the Test & Deploy page.

to
object
required

Recipient of the email. Required.

from
object

Overrides the Sender details set in Test & Deploy.

replyTo
object

If you need the reply-to email to be different from the from email.

subject
string

Overrides the subject line specified in Test & Deploy.

templateData
object

Custom data to be injected into the email template (JSON).

sendAt
number

UNIX timestamp to schedule the email in the future instead of sending now.

html
string

Overrides the HTML mimetype of the email template.

amp
string

Overrides the AMP mimetype of the email template.

text
string

Overrides the TXT mimetype of the email template.