Transactional email through the API (POST /messages)
Send automatic emails from your system with any address on your domain, no mailbox needed.
Transactional email is your system’s automatic email: order confirmation, password reset, boleto, invoice. It goes out through the POST /messages route, directly through high-deliverability sending.
Before you start
- The domain must have High-deliverability sending on and verified. On the domain screen in Email, turn the card on and publish the records the DNS assistant asks for. Through the API, a ready domain shows
transactional_ready=trueinGET /mail/domains. - Create a key with the
mail.transactionalpermission. See Create an API key.
How it works
- The sender can be any address on one of the company’s ready domains (e.g. orders@yourcompany.com). No mailbox is needed.
- It accepts HTML and text (without text, it is generated from the HTML), base64 attachments and embedded images. Executable files are rejected.
- It accepts
tagsandmetadata, which come back in themail.message.*webhooks. - It doesn't go to Sent and doesn't count toward the mailboxes’ hourly limit.
- An address that has already bounced permanently is left out and shows in
suppressedin the response. - Always use the
Idempotency-Keyheader: if the call is repeated with the same key, the email isn't sent again.
Follow up
GET /messages/{id}shows the status and events of each email.- Register a webhook with the
mail.message.*events to receive deliveries, bounces, complaints, opens and clicks.
Limits
There are caps on recipients per minute and per day per company, lower during the free trial. Current numbers are in the API documentation, under General rules. Over the cap, the response is 429.
Did not find the answer?
Log in to the panel and talk to support, or write to suporte@amati.digital.