email (the plugin trims and lower-cases it, then takes its MD5 hash) or leadHash, which must be the MD5 of the trimmed, lower-case address; leads.create takes the email itself. Product and order ids are ones you choose. Errors keep MailBluster’s reason (“Lead not found”, “The API key is invalid”) but not the request, the response body or the lead’s URL. The local database keeps lead ids, subscription state and tags, field definitions, products, and order totals; emails, names, IP addresses and field values are not stored.
What you get:
- 18 typed API operations
- 4 synced entities (
fields,leads,orders,products) for fast.search()/.list()
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 MailBluster API key before the first call: More: API Key
pnpm corsair setup --plugin=mailbluster --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
Look up a lead by emailQuery synced data
Synced entities supporttenant.mailbluster.db.<entity>.search() and .list(): fields, leads, orders, products.
See Database for filters and operators.
What’s next
API reference
Every
mailbluster.api.* operation with input and output types.Database
Synced entities, search filters, and operators.
Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.