Skip to main content
Integrate Lettr into your Node.js application to send transactional emails. Choose the guide that matches your framework. Using Cursor? Jump straight in using this prompt

Prerequisites

Before you begin, make sure you have:
  1. A Lettr account — sign up at app.lettr.com
  2. An API key created in your dashboard
  3. A verified sending domain
  4. Node.js 18 or higher

The SDK

The official lettr package is the recommended way to use Lettr from Node.js — a type-safe client that returns a Result ({ data, error }) instead of throwing:

SDK Guides

Framework Guides

Next.js

Send emails from Next.js API routes and server components

Nuxt

Integrate Lettr with Nuxt server routes

Direct API Usage

If you’d rather not add a dependency, send via the REST API using fetch:
For the full API reference, see the Send Email endpoint.