Transactional Email API
The Transactional Email API sends one email per request through a Transactional Relay, which is where the Send Integration and the suppression settings come from. You post a recipient, a subject and either a body or a template, and read the status code to know it was accepted.
Instructions
- Create a Transactional Relay and copy its number: Transactional Emails > Create Transactional Relay. The relay decides which Send Integration sends the email and which Suppression Lists apply.
- Give your API key the right permission: Account > API Keys > select the key > set Transactional Email API to Full Access > Save > Copy.
- Build the request: API Documentation > Transactional Email API. Tick the fields you want, then copy the Request URL and Request Body.
- Send a
POSTto the request URL with thex-api-keyheader holding your key, and the JSON body. Supplyto.email,subject,transactionRelayId, and at least one ofhtmlBody,textBodyortemplateId. - Read the status code, not the body, to decide whether it worked. A
200returns amessageIdthat ties webhook events back to the request.
A 200 means the email was validated and queued, not that it was delivered. Suppression, bounce handling and the relay itself run afterwards and can still stop the send.
Every email sent through the API, your own HTML included, gets the Brand footer with an unsubscribe link and a one-click unsubscribe header. How that works with your own unsubscribe page is in the Transactional Email API Reference.
Related pages
- Transactional Email API Reference — the endpoint, authentication, every request field with its limits, each response code with an example body, how unsubscribes work, and the substitution syntax
- Transactional Email API Walkthrough — every step with screenshots, from creating the relay to sending the request and checking the result
- Transactional Emails — managing Transactional Relays in the app