v4
latestOpenAPI 3.1.02026-07-3163216290.7 KBSend a transactional email
Send a transactional email to a contact.<br>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
Include a unique ID for this request (maximum 100 characters) to avoid duplicate emails.
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.
This endpoint will return a 409 Conflict response if the idempotency key has been used in the previous 24 hours.
Request body
Example request
{
"email": "alex@company.com",
"transactionalId": "cll42l54f20i1la0lfooe3z12",
"addToAudience": true,
"dataVariables": {
"name": "Alex",
"passwordResetLink": "https://app.company.com/reset/abc123"
}
}Response
Successful send.
Example response
{
"success": true
}