Skip to main content
Use Databox through Corsair: one client, typed API calls. Create a key at account.databox.com/profile under Password & Security, API key (Admin users only). Things to know before you send:
  • The flow is data source, dataset, ingest. dataSources.create makes the container (only a name is required), datasets.create defines columns with schema and an optional primaryKey, and datasets.ingestData pushes records keyed by column ID, at most 500 rows per request. The response returns an ingestionId; poll it with datasets.getIngestion to see how many records were appended, overwritten or rejected. Databox does not document the ingestion status values, so this plugin does not declare a job; poll until the counts settle.
  • A primary key changes re-ingestion. With primaryKey set, re-ingesting a matching record overwrites it instead of appending a duplicate. Without one, every ingest appends.
  • Deleting a data source cascades. dataSources.delete permanently removes the data source, all of its datasets and all of their records, and cannot be undone.
  • Metrics can trigger a sync. metrics.getData may wait for a due or first sync, up to about two minutes, so the plugin raises that call’s timeout; syncInfo.status says whether it synced, and inProgress or neverSynced mean call again shortly. It is rate limited to 30 calls per minute per account.
  • Retry behavior. A 429 and a 409 modification_in_progress both carry Retry-After and are retried, because Databox did not process the request; a 409 modification_failed is final and is not. Failed writes are never replayed on a 5xx, since they may have been applied. idempotencyKey inputs (a UUID) send Databox’s Idempotency-Key header, which dedupes creation and ingestion calls for 24 hours.
  • Accounts. Organizations with accounts enabled can pass accountId on an operation to act on one account instead of the organization tied to the key.
What you get:
  • 14 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

List the organization’s metrics
Ingest two transactions
See the full list on the API page.

What’s next

API reference

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