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.
Note
This library is NOT officially maintained by 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
- MailChannels account
- Email API key
- Add
mailchannels-sdk
dependency to your project
# npm
npm i mailchannels-sdk
# yarn
yarn add mailchannels-sdk
# pnpm
pnpm add mailchannels-sdk
Already implemented features are marked with a checkmark. Please open an issue if you find any bugs or missing features.
Important
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
npm run build
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch
# Run typecheck
npm run test:types
# Release new version
npm run release