Attach custom key-value metadata to Lettr emails that travels through delivery and webhooks to link messages to your app’s data
Metadata lets you attach arbitrary key-value pairs to any email you send through Lettr. These pairs travel with the email through the entire delivery lifecycle — appearing in webhook payloads and the dashboard — so you can correlate emails with your application’s data model. Common uses include linking emails to orders, customers, support tickets, or internal request IDs for debugging.
When Lettr delivers a webhook event for an email that carries metadata, the full metadata object is included in the payload. This means your webhook handler can read the same keys you attached at send time and use them to look up the relevant order, customer, or transaction in your database without making additional API calls.
Lettr supports both metadata and tags on emails. They serve different purposes: metadata stores structured key-value data for detailed tracking, while a tag is a single string label for analytics grouping.
Feature
Metadata
Tag
Structure
Key-value pairs
Single string (max 64 chars)
Values
Strings only
Plain string
Where it appears
Webhooks, dashboard
Analytics dashboard filters and breakdowns
Best for
Detailed tracking data (order IDs, customer IDs)
Grouping emails for analytics (e.g., welcome-series)