Email and SMS delivery log
When a customer says "I never got the invite", your support team can now see what happened. Every email and text message your application sends through TenancyEngine is recorded in a per-application delivery log, and Amazon SES delivery results (delivered, bounced, marked as spam) update it as they arrive.
Find it under Applications → your app → Email → Delivery log.
What is recorded
| Field | Notes |
|---|---|
| Recipient | Masked (j***@example.com, +1*******4567). The full address is never shown or stored in readable form. |
| Template | The message category, for example tenant.invitation. |
| Status | Sent, Delivered, Delayed (temporary bounce), Bounced, Marked as spam, Not sent, Blocked (suppressed). |
| Detail | A short reason for failures, with any address or number removed. |
| Times | Sent, delivered, bounced, complained. |
Email bodies and subjects are not stored. Rows are deleted after 30 days (EmailDeliveryLog:RetentionDays). Mail the platform itself sends (console invites, signup verification) is not part of your log.
The environment's email mode still applies: a message captured or dropped by a Captured or Disabled environment shows as Sent with no delivery result, which is what tells you it never left.
Find one person's messages
Searching by a full address needs the dedicated email log recipient search permission (platform:email-log:recipient-search), held by organization admins and platform admins only. The address you type is converted to a keyed hash for the lookup and is never saved or logged. Every search is written to the audit log with who ran it, the application, the masked address and how many messages matched.
GET /platform/api/v1/admin/applications/{applicationId}/email-log/[email protected]Browsing the masked log needs only the normal application read permission:
GET /platform/api/v1/admin/applications/{applicationId}/email-log?status=Bounced&channel=Email&limit=50Bounces, complaints and the suppression list
A permanent bounce (the mailbox does not exist) or a spam complaint adds the address to your application's suppression list automatically. Later messages to that address are not sent; they are recorded as Blocked, and the send reports recipient_suppressed to your code. A temporary bounce (mailbox full) is shown as Delayed and does not suppress.
Suppression is per application: a bounce on one of your apps does not stop another app from mailing the same person. Open Suppressed addresses to add an address by hand or remove one once the person has fixed the problem.
Webhooks
Subscribe a webhook endpoint to any of these app-scoped events:
| Event | When |
|---|---|
email.delivered | SES reports the message reached the recipient's mail server. |
email.bounced | Permanent bounce. The address is already suppressed when this fires. |
email.complained | The recipient marked the message as spam. The address is already suppressed. |
{
"messageId": "0f0c1c0e-5a5e-4e9a-8f7c-2f1e6c5f9d11",
"applicationId": "b6d1...",
"environment": "Production",
"template": "tenant.invitation",
"recipientMasked": "j***@example.com",
"recipientDomain": "example.com",
"status": "Bounced",
"detail": "Permanent/General",
"occurredAtUtc": "2026-10-18T02:14:09Z"
}The payload never contains the full address; use messageId to find the log entry.
SMS
Text messages sent for your application appear in the same log as Sent or Not sent (including messages blocked by opt-out or quiet hours). Carrier delivery receipts are not shown yet.
Operator setup (platform team)
Delivery results come from SES through SNS:
- Add an SNS event destination to the SES configuration set the platform sends with (
Ses:DefaultConfigurationSetName) for the Delivery, Bounce and Complaint event types. - Subscribe
https://<auth host>/api/v1/webhooks/email/eventsto the topic. The endpoint confirms the subscription itself. - Recommended: set
EmailDeliveryLog:EventsSnsTopicArnto the topic ARN andEmailDeliveryLog:EventsWebhookTokento a random value appended as?token=. SNS signatures are always verified unlessSupport:SnsSignatureVerificationEnabledis turned off (development only).
Without this wiring the log still records every send, but rows stay at Sent and bounces do not suppress.