SDK Reference
TypeScript — Server
The mailmus server SDK (Node.js/TypeScript) — Mail and Auth admin, with your secret key.
Package: mailmus — one SDK for both products, authenticated with your secret key. Never use it in code that runs in a browser.
npm install mailmusimport { SDK } from "mailmus";
const mailmus = new SDK({
bearer: process.env.MAILMUS_SECRET_KEY,
serverURL: "https://api.mailmus.app", // optional, this is the default
});Available resources
| Area | Resources |
|---|---|
contacts, campaigns, templates, audiences, automations, emails, domains, dedicatedIp, suppressions, tracking, analytics, contentCheck, seedList, inboundEmails, emailVerification, webhooks | |
| Auth (admin) | auth, customers, customerVerification, organizations, organizationMembers, organizationInvitations, ssoConnections |
| Account | apps, apiKeys, account, billing |
Every resource and method is documented in the API Reference — the SDK method names follow the operation names directly (mailmus.contacts.contactsList(...), for instance).
Example — list the Auth users of a project
const { data, total } = await mailmus.customers.customerAdminList({
projectId: "proj_xxx",
page: 1,
limit: 50,
});