Lettr icon

Lettr

Interact with Lettr transactional email APIs

Email → Send

AI-generated

Summary

Send an email through Lettr, using a template or raw HTML and plain-text content. The operation can include recipients in CC and BCC, sender and reply-to names, attachments, metadata, provider options, and routing or campaign identifiers.

Inputs

  • From Email (required) — Sender email address.
  • To (required) — Recipient email addresses, separated by commas, semicolons, or newlines.
  • Subject — Email subject. The template supplies the subject when a template is used and this field is omitted.
  • HTML — HTML email body.
  • Text — Plain-text email body.
  • Template Slug — Template slug to render instead of raw HTML or text.
  • Additional Fields — Optional settings: AMP HTML, idempotency key, CC and BCC recipients, campaign and project IDs, sender and reply-to names, reply-to address, metadata and provider options as JSON, template substitution data as JSON, template version, and attachments as a JSON array. Reuse an idempotency key on retries to avoid delivering a duplicate; keys are kept for 24 hours and scoped per team and API key.

Output shape

A single response item containing the Lettr API response.

The exact response fields are not established by the available source view.

Examples

Example 1: Send a templated email with retry protection

Set From Email and To, provide a Template Slug, and set an Idempotency Key based on the email's subject, such as an order ID. The template supplies the subject if Subject is omitted.

Example 2: Send an email with raw content and an attachment

Set From Email and To, provide a subject and HTML or Text body, and pass Attachments (JSON) as an array of attachment objects.

Links

Discussion