Skip to main content
Use Sender through Corsair: one client, typed API calls, local DB sync, and incoming webhooks. Create an API access token in Sender under Settings > API access tokens; the plugin sends it as a Bearer token to https://api.sender.net/v2. Lists return 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
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 subscribers
Create a group
See the full list on the API page.

Query synced data

Synced entities support tenant.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 use webhookHooks 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.