- 17 typed API operations
- 3 synced entities (
cohorts,events,users) for fast.search()/.list() - 7 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 Amplitude API key before the first call: More: API Key
pnpm corsair setup --plugin=amplitude --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.Provider walkthrough: Get Credentials.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
annotations.list
annotations.create
Query synced data
Synced entities supporttenant.amplitude.db.<entity>.search() and .list(): cohorts, events, users.
See Database for filters and operators.
Webhooks
This plugin registers 7 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
amplitude.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.
Get credentials
Provider-console walkthrough for keys and OAuth apps.