Requirements
Before installing Nuxt Lettermint, ensure your project meets these requirements:- Nuxt 3.x or Nuxt 4.x
- Node.js 16.x or higher
Installation Steps
Install the module
Choose your preferred package manager to install the module:
- Nuxt CLI (Recommended)
- npm
- pnpm
- yarn
Add module to Nuxt config
Add
nuxt-lettermint to the modules array in your nuxt.config.ts file:nuxt.config.ts
If you used the Nuxt CLI installation method, this step is done automatically.
Configure your API key
You need a Lettermint API key to send emails. Get your key from the Lettermint Dashboard.
- Environment Variable (Recommended)
- Nuxt Config
Create a
.env file in your project root:.env
Configuration Options
The module accepts the following configuration options innuxt.config.ts:
nuxt.config.ts
Auto-Generated Endpoint
By default, the module creates an endpoint at/api/lettermint/send for sending emails. This enables the client-side useLettermint() composable to work out of the box.
If you prefer to create your own custom endpoints, you can disable this behavior:
nuxt.config.ts
Get Your API Key
To obtain your Lettermint API key:Visit the Lettermint Dashboard
Next Steps
Quickstart
Learn how to send your first email
API Reference
Explore the complete API documentation