Mailmus
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 mailmus
import { 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

AreaResources
Mailcontacts, campaigns, templates, audiences, automations, emails, domains, dedicatedIp, suppressions, tracking, analytics, contentCheck, seedList, inboundEmails, emailVerification, webhooks
Auth (admin)auth, customers, customerVerification, organizations, organizationMembers, organizationInvitations, ssoConnections
Accountapps, 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,
});

On this page