Mailbase Developer Docs

Production integration notes for teams that want Mailbase to sit cleanly inside their app, backend jobs, AI tools, and self-hosted email stack.

Start Here

Mailbase has two integration surfaces: the REST API for product teams that need deterministic backend calls, and the MCP server for AI-assisted workflow clients. Both are workspace-scoped and designed around your sender domains, audiences, campaigns, replies, managed sending, and optional BYO useSend setup.

If you’re wiring Mailbase into a live product, start with the REST API reference for authentication, scoped tokens, transactional send, campaigns, and audiences — every endpoint is scoped to a single workspace so multi-tenant data never crosses boundaries. Teams building AI-assisted email workflows can instead connect the MCP server to clients like Claude Code, Cursor, or Codex, where drafts always land for human review before anything sends.

Professional Integration Checklist

  • Create a workspace and verify at least one sender domain.
  • Open Settings, then Developer API, and create a scoped API token.
  • Store the token in your backend secret manager, never in frontend code.
  • Call /api/v1/me from CI or staging to verify the token scope.
  • Use /api/v1/send for transactional email from your app.
  • Use useSend webhooks so delivery, bounce, complaint, and reply events flow back.