Schedule a transactional email for future delivery. Accepts the same payload as POST /emails with an additional required scheduled_at field. The email must be scheduled at least 5 minutes in the future and within 3 days.
POST /emails with an additional required scheduled_at field.API key for authentication
Schedule email request. Extends the standard send email request with a required scheduled_at field.
Sender email address
255"sender@example.com"
Recipient email addresses
1 - 50 elements255["recipient@example.com"]The UTC date/time when the email should be sent. Must be at least 5 minutes in the future and within 3 days.
"2024-01-16T10:00:00Z"
Sender display name
255"Sender Name"
Email subject line. Required when not using a template. When using template_slug, defaults to the template's subject (or template name as fallback). If provided alongside a template, overrides the template subject.
998"Welcome to Lettr"
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"
}Custom email headers. Up to 10 headers allowed. Standard envelope headers (From, To, Subject, etc.), SparkPost internal headers (X-MSYS-API), and List-Unsubscribe and List-Unsubscribe-Post headers are managed by the system and cannot be set manually.
{
"X-Mailer": "MyApp/1.0",
"X-Custom-ID": "abc-123"
}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.