Skip to main content
Use Moosend through Corsair: one client, typed API calls. Create an API key in Moosend under More → Settings → API key and store it on the account. Every call sends the key as the apikey query parameter; errors never carry it, the request body or the email addresses Moosend quotes back.
  • Errors arrive as HTTP 200. Moosend wraps every answer in {Code, Error, Context} and signals failure with a nonzero Code. The plugin throws core’s ApiError with the HTTP status the code means: 429 for RATE_LIMITING (retried with backoff), 401 for API_KEY_NOT_VALID, 404 for any *_NOT_FOUND, 400 for validation errors, 500 for an internal error. The original Code and Error are on error.body.
  • Outputs keep Moosend’s field names (ID, Name, MailingLists, Paging, …). Dates come as ASP.NET strings such as /Date(1795515243966+0000)/, and most enums as numbers (a subscriber’s SubscribeType is 1 subscribed, 2 unsubscribed, 3 bounced, 4 removed).
  • subscribe is an upsert. It updates the existing subscriber with that email, re-subscribes one who unsubscribed, and clears custom fields left out of the call (so does subscribers.update). On a double opt-in list it emails a confirmation unless hasExternalDoubleOptIn is true. Both subscribe operations are destructive for that reason. subscribers.subscribeMany skips invalid addresses and reports them in notice.
  • remove, unsubscribe and delete differ. remove marks the member Removed (it stays visible under that status), unsubscribe marks it Unsubscribed, and the delete operations erase it. Moosend refuses to remove an address that already unsubscribed.
  • Segment criteria are addressed by position. segments.addCriteria returns the new criterion’s position (1 = first); segments.updateCriteria takes that number, not the criterion’s ID. segments.update with criteria replaces all of them. To filter on a custom field, set field to that field’s ID from lists.get (CustomFieldsDefinition[].ID); the documented CustomField + CustomFieldName form is rejected by the API.
  • No campaigns yet. Moosend answers the campaign list routes with CAMPAIGN_NOT_FOUND when the account has none; campaigns.list returns an empty list for that answer.
  • Sending. campaigns.send, campaigns.sendTest, campaigns.schedule and transactional.send email real people and are destructive. Creating, updating and cloning campaigns only makes drafts.
  • Rate limits. Moosend limits some routes per API key: campaign activity 2 calls a minute, adding subscribers 10 per 10 s, bulk adds 2 per 10 s, tag updates 5 per 10 s.
  • Moosend’s website tracking API (track.moosend.com) is a separate, site-ID based API and is not part of this plugin.
What you get:
  • 52 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

List the subscribed members of a mailing list
Create a draft campaign for a mailing list
See the full list on the API page.

What’s next

API reference

Every moosend.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.