data, links and meta (current_page, last_page, total). Paging and sorting inputs differ per operation: most take page and limit, some also order and direction (see each operation’s inputs).
Sending (campaigns.send, campaigns.schedule, transactional.send, messages.send, workflows.start) emails real people and is marked destructive. Campaign and transactional sender addresses must be on a domain verified in the Sender account.
Webhooks: Sender signs each delivery with HMAC-SHA256 of the raw body (header X-Sender-Hmac-Sha256, lowercase hex) using the account’s signing secret (Settings > Webhooks), stored as the webhook signature. After rotating it, store <new>,<old> for 10 minutes, then the new one alone. A webhookSecret plugin option replaces the stored secret, so with that option set, put the pair in the option instead. The body carries no topic: create each webhook with ?topic=<topic> on its URL (for example https://.../sender?topic=subscribers/new). Without it, only groups/new, campaigns/new and bounces/new can be told apart by their payload.
What you get:
- 66 typed API operations
- 7 synced entities (
campaigns,fields,groups,segments,transactionalCampaigns,webhooks, and 1 more) for fast.search()/.list() - 8 incoming webhook event types
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
Store the Sender API key before the first call: More: API Key
pnpm corsair setup --plugin=sender --tenant=acme api_key=<your-key> (leave out --tenant without multiTenancy), or pass it as key in the plugin options. With Hub, each tenant enters their own key on the connect page. See API key auth.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 subscribersQuery synced data
Synced entities supporttenant.sender.db.<entity>.search() and .list(): campaigns, fields, groups, segments, transactionalCampaigns, webhooks, workflows.
See Database for filters and operators.
Webhooks
This plugin registers 8 webhook event types. Configure the provider to POST to your Corsair HTTP handler, then usewebhookHooks on the plugin factory.
See Webhooks for every event path and payload shape, and Webhooks concept for routing.
What’s next
API reference
Every
sender.api.* operation with input and output types.Database
Synced entities, search filters, and operators.
Webhooks
Event paths, payloads, and
webhookHooks examples.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.