Node.js SDK to integrate MailChannels API into your JavaScript or TypeScript server-side applications.
This library provides a simple way to interact with the MailChannels API. It is written in TypeScript and can be used in both JavaScript and TypeScript projects and in different runtimes.
Important
Disclaimer: This library is not associated with MailChannels Corporation.
- 🚀 Features
- 📏 Requirements
- 🏃 Quick setup
- 🚧 Roadmap
- ⚖️ License
- 💻 Development
- Send transactional emails
- Check DKIM, SPF & Domain Lockdown
- Configure DKIM keys
- Webhook notifications
- Manage sub-accounts
- Retrieve metrics
- Handle suppressions
- Configure inbound domains
- Manage account and recipient lists
- Add
mailchannels-sdkdependency to your project
# npm
npm i mailchannels-sdk
# yarn
yarn add mailchannels-sdk
# pnpm
pnpm add mailchannels-sdkAlready implemented features are marked with a checkmark. Please open an issue if you find any bugs or missing features.
Note
Links below point to the official MailChannels API documentation, options and responses may differ slightly when using this SDK. Please refer to the documentation for the correct usage of each feature.
- 📧 Emails
- 📢 Webhooks
- 🪪 Sub-accounts
- ✅ Create Sub-account
- ✅ Retrieve Sub-accounts
- ✅ Delete Sub-account
- ✅ Suspend Sub-account
- ✅ Activate Sub-account
- ✅ Create Sub-account API Key
- ✅ Delete Sub-account API Key
- ✅ Retrieve Sub-account API Keys
- ✅ Create Sub-account SMTP Password
- ✅ Delete Sub-account SMTP Password
- ✅ Retrieve Sub-account SMTP Passwords
- ✅ Retrieve Sub-account Limit
- ✅ Set Sub-account Limit
- ✅ Delete Sub-account Limit
- ✅ Retrieve Sub-account Usage Stats
- 📊 Metrics
- 🚫 Suppressions
- 🌐 Domains
- 📋 Lists
- 📥 Users
- ⚙️ Service
Local development
# Install dependencies
pnpm install
# Build the package
pnpm build
# Run ESLint
pnpm lint
# Run Vitest
pnpm test
pnpm test:watch
# Run typecheck
pnpm test:types
# Release new version
pnpm release