Prerequisites
Before you begin, make sure you have:- A Lettr account — sign up at app.lettr.com
- An API key created in your dashboard
- A verified sending domain
- Node.js 18 or higher
The SDK
The officiallettr 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
| Page | What You’ll Learn |
|---|---|
| Installation | Install, create a client, and the Result pattern |
| Sending Emails | HTML, text, templates, attachments, scheduling, errors |
| Templates | Manage Lettr templates and merge tags |
| Domains | Add, verify, and manage sending domains |
| Webhooks | Manage webhook endpoints |
| Audience | Lists, contacts, topics, properties, segments |
| Campaigns | List, send, and schedule campaigns |
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 usingfetch: