Skip to main content
Use Mailcoach through Corsair: one client, typed API calls. Save the exact team API URL shown in Mailcoach account settings → API Tokens as the account-level api_url field alongside the Mailcoach API token (api_key). This lets each connected tenant use its own Mailcoach team host. For a single-team setup, mailcoach({ apiUrl: "https://<team>.mailcoach.app/api" }) is accepted as a fallback. Only HTTPS team subdomains under mailcoach.app are accepted; self-hosted instances and custom domains are not enabled because their host contract is not documented by the linked API reference. Use an All API endpoints token for management operations, or a Send only token only when calling the transactional send operation. Tokens inherit the owner’s permissions and must remain server-side. Collection operations return the provider’s page plus links.next. Pass that absolute URL as the operation’s next input to fetch the next page; the client verifies that it stays on the configured team host and same resource. Successful 204 operations return undefined. Transactional send returns a top-level uuid when stored, and undefined when store: false. Mailcoach Cloud’s default authenticated limit is 300 requests per minute per user (shared across that user’s tokens). Transactional sends have a separate 3,000/minute per-user limit. Campaign click statistics and individual link lookups also share a 5 requests/second per-team burst limit. On 429, Corsair’s transport honors Retry-After; writes are not retried on timeouts because Mailcoach may already have accepted them. Errors retain status and retry metadata but redact provider text, request paths, query values, and bodies to prevent email addresses or message content from leaking. Sending a campaign, sending test mail, resending confirmations, starting an import, and transactional sends are destructive operations. Set fake: true for a transactional dry run. Subscriber imports are drafts until explicitly started; starting one may resubscribe addresses or unsubscribe contacts absent from the CSV. Only import addresses for which you have consent, and use skip_confirmation: true only when the subscriber has already consented. Mailcoach documents a single automation trigger endpoint, but its successful response body is not specified; it is excluded rather than exposing an unverifiable output schema. Inbound webhooks are not supported. What you get:
  • 70 typed API operations

Setup

1

Install

2

Add the plugin

corsair.ts
With multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.
3

Choose authentication

4

Connect a tenant

Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.

Example API calls

automationMails.get
automationMails.create
See the full list on the API page.

What’s next

API reference

Every mailcoach.api.* operation with input and output types.

Connect / OAuth

createLink, Hub delivery, and tenant connect flows.

Use with agents

Expose this plugin’s operations as MCP tools.