- Reports. analytics.listWebsites gives website IDs; analytics.query runs one report or a batch of up to 25 with a date preset or range, filters, granularity and page/limit paging. The top-level success only means the request was valid: check each parameter’s success too.
- Events go to the Basket API (basket.databuddy.cc) with the same key. events.track takes a list; events that fail validation come back in rejected while the others are stored.
- Not in the plugin: managing other API keys (Databuddy refuses that for API keys), the signed-in person’s feedback and email preferences, and the tracker-only Basket routes (/vitals, /errors).
- Risk. Deletes, transfers, revoking the key, publishing a website’s analytics (websites.togglePublic), status page incidents and alarms.test (it notifies every destination) are
destructive.
- 133 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 Databuddy API key before the first call: More: API Key
pnpm corsair setup --plugin=databuddy --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
Last week’s trafficWhat’s next
API reference
Every
databuddy.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.