Reference

Changelog

What changed, what is coming, and the promise about what will not change under you.

2026-10-14: attachments are checked as they arrive#

  • POST /v1/attachments (Attachments) checks each file as it arrives and answers status: "clean", so a message with files goes out at once instead of waiting for a scan.
  • A file the check refuses is not stored: the upload answers 422 attachment_refused, and detail says why (a program or script, contents that are not the type the name says, macros, scripts, embedded files, or a password that keeps it from being checked).
  • A file's status is now always clean: scanning, infected, failed and threat no longer occur.

2026-10-10: delivery events, webhooks, batches and cancelling#

Nothing that worked before stops working.

  • Delivery. delivery on a message now reports the verdict after sending, and GET /v1/messages/{id}/events lists every step: delivered, deferred, bounced, blocked, complained, unsubscribed, opened, clicked. Bounces, complaints and unsubscribes go on the do-not-mail list.
  • Automatic block. A token whose mail keeps bouncing is blocked (403 token_blocked) until the hotel unblocks it.
  • Webhooks. The hotel can give your app a signed webhook for those events.
  • Batch. POST /v1/messages/batch sends up to 50 messages in one request.
  • Listing. GET /v1/messages lists your messages, newest first.
  • Cancelling. POST /v1/messages/{id}/cancel cancels a scheduled message. One new code: 409 not_cancelable.

2026-10-10: Send a test email#

  • A new page, Send a test email, sends real requests from your browser with a token you type in: every field of POST /v1/messages, templates included, with the API's full answer. Use a test token to try it without an email going out.

2026-10-10: clients, test tokens and token rules#

Nothing that worked before stops working: every new rule is off until the hotel sets it on a token.

  • Test tokens. A token starting ems_test_ is checked and recorded like a live one but never sends; the answer and the message carry "test": true.
  • Clients. The hotel can group your tokens under your app, pause them all at once (403 client_paused) and limit the recipient domains (403 recipient_not_allowed).
  • Token rules. A list of allowed templates (403 template_not_allowed), templates only (403 templates_only), a monthly limit (429 monthly_cap_reached) and an address allow-list (403 ip_not_allowed).
  • Rotation grace. After a rotation the old secret can keep working for up to 24 hours.
  • GET /v1/me adds mode, client, templates, templates_only, monthly_cap and this month's usage; GET /v1/templates lists only the templates the token may send.

2026-10-10: stored templates#

  • Templates. Send template_id with variables (and an optional locale) instead of subject, html and text. The hotel writes and publishes the templates; GET /v1/templates lists them. Two new codes: 422 unknown_template and invalid_variables (Templates).

Nothing that worked before stops working.

  • Content check. HTML is cleaned before it is stored, and a message with a link to an IP address, a link carrying a user name or password, a link to a blocked domain, or what looks like a payment card number is refused with 422 content_blocked (Errors).
  • Never dropped. A message accepted with 202 is kept even if the internal queue is briefly unavailable, and is handed over again automatically. 503 enqueue_failed no longer exists.
  • Flood guard. More than 600 requests a minute from one token are refused with 429 rate_limited before any other work.
  • Footer. Every message ends with a short line linking the recipient to About this email, where they can see who sent it and report it. Two new endpoints serve that page: For recipients.
  • Every answer carries a Server-Timing header.

2026-10-01: version 1#

The first public version.

  • POST /v1/messages, GET /v1/messages/{id}, GET /v1/me, GET /v1/health.
  • Bearer tokens with send and read permissions, per-token senders, per-minute and per-day limits, expiry, rotation and blocking.
  • Idempotency-Key on sending, with replay and reuse detection.
  • A shared daily allowance of recipients for all tokens.
  • Sender addresses come from the hotel's approved list and are checked again just before sending.
  • The hotel's suppression list is applied to every message.
  • Problem-format errors with stable codes; Retry-After on limits.
  • This documentation, the request builder and the OpenAPI document.

Planned#

In rough order; dates are not promised.

  • Nothing is planned right now.

What will not change in v1#

  • Existing endpoints, fields, codes and their meaning.
  • The token format and the authentication scheme.

New fields may appear in responses and new optional fields in requests, so ignore fields you do not know when you read responses. New error codes may appear: treat an unknown code by its HTTP status.

A change that could break a working integration would come as /v2, announced to token holders at least 30 days ahead, with v1 kept running alongside for a transition period. Changes needed for security or by law can apply sooner.

Last reviewed 2026-10-01.