- Sending is final.
campaigns.sendemails or texts the campaign’s whole audience andcampaigns.selectAbTestWinnersends the winning variant to the rest; both aredestructive.campaigns.sendTestEmailandautomations.sendBlockTestEmailsend real mail to the addresses you give.automations.enableturns on a flow that messages contacts whenever its trigger fires. - Events trigger automations.
events.sendrecords a customer event (placed order, custom events) and creates or updates the contact; it can start automations that email real customers and cannot be edited or deleted afterwards. - Tags replace.
contacts.update,contacts.updateByEmailandcontacts.upsertreplace a contact’s tag list with the one you send. Usecontacts.addTags/contacts.removeTagsto change tags on up to 250 contacts or a whole segment (queued, 202). - Batches.
batches.createqueues up to 100 contact, product, category or event writes; read progress withbatches.getand per-item results withbatches.listItems. - Paging. Most lists page with
after/beforecursors frompaging.cursorsand stop whenpaging.hasMoreis false; a few takeoffsetandlimit.
- 107 typed API operations
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 Omnisend API key before the first call: More: API Key
pnpm corsair setup --plugin=omnisend --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 contactsWhat’s next
API reference
Every
omnisend.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.