Skip to main content
Use Databuddy through Corsair: one client, typed API calls. Create an organization API key in Databuddy under Organization settings > API keys and pick its scopes: read:data for analytics, SQL and replays, track:events for events.*, read:links and write:links, read:monitors and write:monitors, read:status_pages and write:status_pages, read:flags, manage:flags, manage:websites, delete:visitor_data. Where Databuddy’s spec names the scope a route needs, the operation’s description repeats it; the others only name the permission Databuddy checks. apiKeys.self shows the key’s scopes and organization.
  • 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.
What you get:
  • 133 typed API operations

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

Last week’s traffic
Record a purchase
See the full list on the API page.

What’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.