Official notifycx SDK

Install notifycx — typed Node/TypeScript client for Notify transactional email.

The official SDK for Node and TypeScript. Prefer this in app code; use plain fetch in other languages, or notifycx-mcp in IDE coding agents.

Pro is $10 for 10,000 emails. Domain auth (SPF/DKIM/DMARC), logs, and webhooks included.

Install

npm install notifycx

Send

import Notify from 'notifycx'

const notify = new Notify({ apiKey: process.env.NOTIFY_API_KEY! })
// or: new Notify(process.env.NOTIFY_API_KEY!)

await notify.send({
  to: 'user@example.com',
  from: 'Acme <hello@yourdomain.com>',
  subject: 'Reset your password',
  html: '<p>Click to reset…</p>',
})

Accepts html, message, or text (first non-empty wins). Prefer html so Resend-shaped pastes work.

Sandbox

await notify.sendTest({
  to: 'you@example.com',
  from: 'hello@yourdomain.com',
  subject: 'API rehearsal',
  html: '<p>Does not deliver</p>',
})

Domains and logs

await notify.listDomains()
await notify.listLogs({ limit: 20 })

Errors

Failed requests throw NotifyError with status and body (e.g. missing key, unverified domain, sandbox lock).

Next.js

See Send email in Next.js.

Links