- The flow is data source, dataset, ingest.
dataSources.createmakes the container (only a name is required),datasets.createdefines columns withschemaand an optionalprimaryKey, anddatasets.ingestDatapushes records keyed by column ID, at most 500 rows per request. The response returns aningestionId; poll it withdatasets.getIngestionto 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
primaryKeyset, re-ingesting a matching record overwrites it instead of appending a duplicate. Without one, every ingest appends. - Deleting a data source cascades.
dataSources.deletepermanently removes the data source, all of its datasets and all of their records, and cannot be undone. - Metrics can trigger a sync.
metrics.getDatamay wait for a due or first sync, up to about two minutes, so the plugin raises that call’s timeout;syncInfo.statussays whether it synced, andinProgressorneverSyncedmean call again shortly. It is rate limited to 30 calls per minute per account. - Retry behavior. A 429 and a 409
modification_in_progressboth carryRetry-Afterand are retried, because Databox did not process the request; a 409modification_failedis final and is not. Failed writes are never replayed on a 5xx, since they may have been applied.idempotencyKeyinputs (a UUID) send Databox’sIdempotency-Keyheader, which dedupes creation and ingestion calls for 24 hours. - Accounts. Organizations with accounts enabled can pass
accountIdon an operation to act on one account instead of the organization tied to the key.
- 14 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)
No setup required yet. When you make your first request as a tenant, Corsair prompts for the API key.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
List the organization’s metricsWhat’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.