Base URL
Authentication
Authenticate requests using an API key in the Authorization header:Request Format
Send JSON-encoded bodies with the appropriate Content-Type header:Response Format
Success response (200):HTTP Status Codes
Error Codes
Send Email Reference
Subject
Thesubject field is conditionally required:
- Required when sending with
htmlortextcontent directly. - Optional when
template_slugis provided — if omitted, Lettr uses the template’s stored subject. If the template has no subject set, the template name is used instead. - If provided alongside a
template_slug, thesubjectoverrides the template’s subject. This is useful for A/B testing or dynamic subject lines.
Options
Theoptions object controls tracking and email classification:
Since
transactional defaults to true, you only need to explicitly set it when sending marketing emails (transactional: false).Custom Headers
Theheaders field lets you add custom email headers to your message. Pass an object where each key is the header name and each value is the header value.
Limits:
- Maximum 10 custom headers per email
- Maximum 998 characters per header value
API Endpoints
Send Email
Send emails to one or more recipients
Templates
Manage templates, merge tags, and rendered HTML
Domains
Create, verify, and manage sending domains
Webhooks
View webhook configurations