Email Destination
The email destination sends notifications via Amazon SES when events match the configured conditions.
Configuration
Section titled “Configuration”{ "destination_type": "email", "name": "Payment Failure Alerts", "config": { "addresses": ["ops@example.com", "payments@example.com"], "include_payload": true }}| Field | Required | Description |
|---|---|---|
addresses | Yes | Array of email addresses to notify |
include_payload | No | Whether to include the full event payload in the email (default: false) |
Email Format
Section titled “Email Format”Emails are sent in both HTML and plain text formats and include:
- Event type and provider
- Account slug
- Event ID
- Error message (if delivery failed)
- A direct link to the event in the Transyt dashboard
- Full payload (if
include_payloadistrue)
The sender address is configured via the SES_FROM_EMAIL environment variable (default: notifications@transyt.com).
Example
Section titled “Example”Alert the ops team when any Stripe delivery fails:
curl -X POST https://ingest.transyt.com/admin/accounts/{account_id}/destinations \ -H "X-Admin-Token: YOUR_ADMIN_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "destination_type": "email", "name": "Stripe Failure Alerts", "config": { "addresses": ["ops@example.com"], "include_payload": true }, "condition": "delivery_failed and provider == \"stripe\"" }'