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
Email sending request. Required: from, subject, to, and at least one of html, text, or template_slug. When using template_slug, if project_id is not provided, the team's default project will be used.
Sender email address
255"sender@example.com"
Email subject line
998"Welcome to Lettr"
Recipient email addresses
1 - 50 elements255["recipient@example.com"]Sender display name
255"Sender Name"
Carbon copy recipient email addresses
255["cc@example.com"]Blind carbon copy recipient email addresses
255["bcc@example.com"]Reply-To email address
255"reply@example.com"
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
Project ID containing the template. If not provided when using template_slug, the team's default project will be used.
123
Template slug to use for email content. When provided, the template's HTML will be used instead of the html field.
255"welcome-email"
Specific template version to use. If not provided, the active version will be used.
x >= 11
Tag for tracking and analytics. Automatically set from template_slug if not provided.
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.