Quickstarts
Send with Node.js
Use the official Node.js SDK.
1. Install
npm install resend2. Point the SDK at Postwave
RESEND_BASE_URL=https://post-waves.com3. Send an email
import { Resend } from 'resend';
const client = new Resend(process.env.API_KEY);
const { data, error } = await client.emails.send({
from: 'Acme <onboarding@yourdomain.com>',
to: ['delivered@postwave.test'],
subject: 'Hello world',
html: '<strong>It works!</strong>',
});
console.log(data ?? error);4. Run it
API_KEY=pw_xxxxxxxxx node send.mjsYou'll get back { "id": "…" }. Open Emails in the dashboard to see it arrive and its delivery status update.
Tip: delivered@postwave.test is a test address: it simulates a delivery without emailing anyone. Swap in a real address when you're ready.
Was this page helpful?Send feedback