Send a transactional email with optional attachments, tracking, and personalization. At least one of html or text content must be provided.
API key for authentication. Format: Bearer {api_key}
Email sending request. Required: from, subject, to, and at least one of html or text (providing both is recommended for best email client compatibility).
Email subject line
998"Welcome to Lettr"
Recipient email addresses
1 - 50 elements255Sender display name
255"Sender Name"
Reply-To display name
255"Reply Name"
HTML content of the email. At least one of html or text is required, but providing both is recommended for best compatibility across email clients.
"<h1>Hello</h1><p>Welcome!</p>"
Plain text content of the email. At least one of html or text is required, but providing both is recommended for best compatibility across email clients.
"Hello\n\nWelcome!"
AMP HTML content for supported email clients
Campaign identifier for tracking and analytics
64"welcome-series-2024"
Custom metadata attached to the email for tracking purposes
{
"user_id": "12345",
"campaign": "onboarding"
}Variables for template substitution in email content
{
"first_name": "John",
"company": "Acme Inc"
}Email delivery options
File attachments. When provided, each attachment must include name, type, and data.