Skip to content

Data Management API

Changes to the Data Management API (/data/management/v1). Newest first. How versions work is on Releases and versions.

Data has a management API for your own server, a script or an agent. A management key, made in the Data app under Settings and Management keys, has one access level: read reads models, records, record history and folders; write also creates, updates, upserts, deletes and restores records; schema also creates, changes and deletes models. A key is bound to between one and twenty partitions. With one, every request runs in it; with several, every request except whoami names the partition in X-Data-Partition (its id) or X-Data-Partition-Key (its key), and one that does not is 400 partition_required. A partition outside the key’s set is 403 partition_not_allowed.

The routes are GET /whoami, models (list, GET /models/field-types, get, POST /models/classify, create, update, delete), records (list, get, create, PUT /models/{modelKey}/records/{key} to create or update by key, delete), a record’s versions (list, get, GET /records/{key}/versions/diff, restore) and GET /folders. An update needs the record’s rowVersion (428 row_version_required, or 409 concurrency_conflict when it is stale) unless the body says "overwrite": true. A key cannot create or delete partitions, change who may see a folder, make a model or field more public, remove field values or make keys, and a model it creates is private. Each key may make 300 requests a minute across all its partitions by default (10 to 6,000). To read data in an application, keep using the Delivery API. See Change Data from your own system.

The @ebitex/mcp server gains a Data module that uses these routes: see @ebitex/mcp.