Send email, sync contacts and manage suppressions through our APIs. Switch or combine ESPs without touching your code, and get the same webhook events from all of them.
# Send one email through your relayPOST https://transactional.emailelement.com/api/Email
x-api-key: YOUR_API_KEY
{
"to": { "name": "Jane Smith", "email": "jane@example.com" },
"subject": "Your Order Confirmation",
"htmlBody": "<h1>Hello {firstName}!</h1>",
"transactionRelayId": 2,
"substitutions": { "firstName": "Jane" }
}
APIs and webhooks
Transactional Email API
One email per call, with templates, Handlebars-style substitutions, attachments up to 20 MB, a delay of up to about 12 hours, and five tracking IDs echoed back in webhooks.
Add or update contacts in a list. Existing contacts are updated when you ask, and you can require fields. If more than 10% of a batch fails, the whole request is rejected.
Every request sends an x-api-key header. Each key gets None, Read Only or Full Access for each API, so a form backend never needs your suppression rights.