- 5 typed API operations
- 1 synced entity (
events) for fast.search()/.list() - 1 incoming webhook event types
Setup
1
Install
2
Add the plugin
corsair.ts
corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
No setup required yet. When you make your first request as a tenant, Corsair prompts for the API key.Provider walkthrough: Get Credentials.More: API Key
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
Read No read-style endpoint inferred; pick any operation from the API reference. Capture an eventQuery synced data
Search synced events without hitting PostHog.events. See Database for filters and operators.
Webhooks
Fires when a PostHog event is captured.What’s next
API reference
Every
posthog.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.