Skip to main content
Use Campaign Cleaner through Corsair: one client, typed API calls, local DB sync. What you get:
  • 5 typed API operations
  • 2 synced entities (campaigns, credits) for fast .search() / .list()

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 campaigns
Get a campaign PDF analysis
See the full list on the API page.

Query synced data

These tables exist, but Campaign Cleaner calls don’t fill them yet. This returns only rows you have written yourself.
Synced entities: campaigns, credits. See Database for filters and operators.

What’s next

API reference

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