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
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: