Skip to main content
The official TypeScript SDK is a typed, zero-production-dependency client for the WazobiaMail API. It ships ESM and CommonJS builds and works anywhere with native fetch, FormData and Blob.

npm package

wazobiamail — version 0.1.0

Source

WazobiaMail/wazobiamail-node

At a glance

Install

Configure

The key can be passed directly or read from WAZOBIA_API_KEY / WAZOBIAMAIL_API_KEY.

Send your first email

URL attachments are supported directly:

What you can do

  • Send transactional email with HTML, text, CC/BCC, reply-to and idempotency keys.
  • Upload attachments or send inline files through the multipart endpoint.
  • Create and verify sending domains, read DNS records and drive Cloudflare DNS.
  • Provision hosted mailboxes, credentials and enterprise headless inboxes.
  • Run spam/deliverability checks and read tracking events.
  • Manage sending API keys, SMTP relays, billing invoices, plans, credits and support tickets.

Framework notes

The core SDK has no Node-only production dependencies, so it runs on edge runtimes. In browser code, never expose an API key — proxy requests through your server. For framework helpers, use wazobiamail-vue or wazobiamail-nuxt instead of wiring composables yourself.

Errors and retries

The client throws typed errors: WazobiaAuthenticationError, WazobiaForbiddenError, WazobiaNotFoundError, WazobiaValidationError, WazobiaRateLimitError, WazobiaTimeoutError and generic WazobiaApiError.
Retry only idempotent sends, and reuse the same idempotencyKey when retrying.