# Braindump: the guide for agents

Braindump is a multi-tenant knowledge base. People and software agents keep structured notes ("dumps", each in a dump schema) in projects, and every change is recorded as a numbered transaction. This guide is for an agent, and its author, that connects over MCP or talks to the HTTP API. It is served at https://eu.brndmp.com/agents.md.

Every request example below is run by a test against a real server and database (`backend/internal/web/guide_test.go`), and every number that is a limit is taken from the code (`backend/internal/limits`), so what you read here is what the server does. In the examples, a name in capitals such as `$PROJECT` stands for a value from an earlier step (the test fills it in), and a block headed `response` shows the members that matter, with `...` for a value that differs each time.

Where to look things up:

- The machine-readable description of every operation, with its inputs, outputs and rejections: https://eu.brndmp.com/openapi.json
- What the caller may do right now: `GET /capabilities` (per account and organization) and `GET /projects/{p}/capabilities` (per project).
- Rejections: every one has a `type` that is the address of a short page (https://eu.brndmp.com/problems/), and `errors[].code`, which is what you decide on.

All bodies are JSON (`Content-Type: application/json`). Identifiers are opaque strings with a prefix: `prj_1`, `prp_1`, `agt_1`, `usr_1`. A dump and a dump schema are named by their keys, like `TASK-5` and `TASK`. Numbers of transactions are integers.

The guide in parts, each at its own address (`?section=<key>`):

- 0: [Introduction](https://eu.brndmp.com/agents.md?section=0) (1.5 KB)
- 1: [Connect](https://eu.brndmp.com/agents.md?section=1) (2.7 KB)
- 2: [Who you are and what you may do](https://eu.brndmp.com/agents.md?section=2) (1.6 KB)
- 3: [Read the project first](https://eu.brndmp.com/agents.md?section=3) (1.3 KB)
- 4: [Write: transactions](https://eu.brndmp.com/agents.md?section=4) (11.2 KB)
- 5: [Read: QUERY](https://eu.brndmp.com/agents.md?section=5) (7.2 KB)
- 6: [Values by type](https://eu.brndmp.com/agents.md?section=6) (16.6 KB)
  - 6.0: [Values by type](https://eu.brndmp.com/agents.md?section=6.0) (0.1 KB)
  - 6.1: [Quantities](https://eu.brndmp.com/agents.md?section=6.1) (7.3 KB)
  - 6.2: [Dates](https://eu.brndmp.com/agents.md?section=6.2) (5.6 KB)
  - 6.3: [Selects](https://eu.brndmp.com/agents.md?section=6.3) (1.1 KB)
  - 6.4: [Geo](https://eu.brndmp.com/agents.md?section=6.4) (1.9 KB)
  - 6.5: [People and rich text](https://eu.brndmp.com/agents.md?section=6.5) (0.5 KB)
- 7: [Schemas and properties](https://eu.brndmp.com/agents.md?section=7) (5.2 KB)
- 8: [Saved views](https://eu.brndmp.com/agents.md?section=8) (5.6 KB)
- 9: [Search](https://eu.brndmp.com/agents.md?section=9) (1.4 KB)
- 10: [History and who acted](https://eu.brndmp.com/agents.md?section=10) (2.8 KB)
- 11: [Rejections](https://eu.brndmp.com/agents.md?section=11) (1.7 KB)
- 12: [Limits](https://eu.brndmp.com/agents.md?section=12) (6.0 KB)
- 13: [Every operation](https://eu.brndmp.com/agents.md?section=13) (17.3 KB)
  - 13.0: [Every operation](https://eu.brndmp.com/agents.md?section=13.0) (0.6 KB)
  - 13.1: [authorization-requests](https://eu.brndmp.com/agents.md?section=13.1) (0.8 KB)
  - 13.2: [capabilities](https://eu.brndmp.com/agents.md?section=13.2) (0.5 KB)
  - 13.3: [dumps](https://eu.brndmp.com/agents.md?section=13.3) (0.7 KB)
  - 13.4: [me](https://eu.brndmp.com/agents.md?section=13.4) (3.4 KB)
  - 13.5: [openapi](https://eu.brndmp.com/agents.md?section=13.5) (0.3 KB)
  - 13.6: [organizations](https://eu.brndmp.com/agents.md?section=13.6) (3.5 KB)
  - 13.7: [password-resets](https://eu.brndmp.com/agents.md?section=13.7) (0.5 KB)
  - 13.8: [presence](https://eu.brndmp.com/agents.md?section=13.8) (0.4 KB)
  - 13.9: [projects](https://eu.brndmp.com/agents.md?section=13.9) (2.4 KB)
  - 13.10: [registrations](https://eu.brndmp.com/agents.md?section=13.10) (0.6 KB)
  - 13.11: [schemas](https://eu.brndmp.com/agents.md?section=13.11) (0.8 KB)
  - 13.12: [search](https://eu.brndmp.com/agents.md?section=13.12) (0.3 KB)
  - 13.13: [sessions](https://eu.brndmp.com/agents.md?section=13.13) (0.4 KB)
  - 13.14: [transactions](https://eu.brndmp.com/agents.md?section=13.14) (1.2 KB)
  - 13.15: [views](https://eu.brndmp.com/agents.md?section=13.15) (0.9 KB)
- 14: [The unit catalog](https://eu.brndmp.com/agents.md?section=14) (12.1 KB)

## 1. Connect

An agent is an account of its own. A person creates it in the app (My agents, or an organization's agents) and grants it a tier on the projects it works in. A client acts as that agent with a bearer token, which it gets in one of two ways.

**An MCP client** (Claude Code, Cursor, Claude Desktop and the like) needs only the URL: add `https://eu.brndmp.com/mcp` as a remote MCP server over HTTP. With Claude Code:

```text
claude mcp add --transport http braindump https://eu.brndmp.com/mcp
```

The client does OAuth itself (`https://eu.brndmp.com/.well-known/oauth-protected-resource/mcp` names the authorization server). It opens Braindump's consent page in a browser; the person signs in, picks the agent the client acts as, and allows it. The client then holds a token that lasts 1 hour and refreshes it on its own. The connection is listed on the agent's page, where the person can disconnect it. It also ends when the agent is paused, when it goes unused for 90 days, or when the person who approved it is disabled. Every operation of the API is a tool, named after its `operationId` in https://eu.brndmp.com/openapi.json with `.` and `-` as `_` (`projects.get` is `projects_get`). A tool takes the operation's path and query parameters by name, its request body as `body`, and its retry key as `idempotency_key`, and answers what the HTTP API answers. The tool list gives each tool its summary and a shortened input schema; `tool_schema` gives a tool's full description and full input schema, and `guide` returns this guide.

**A client without OAuth** (the GitHub Copilot cloud agent, a script, a scheduled job) sends a fixed header. A person who may manage the agent makes a token for it on the agent's page ("Make a token for ...") and names it after where it is used. The token is shown once; Braindump keeps only a hash of it. The client sends it on every request as `Authorization: Bearer <token>`. It has no refresh: it ends when it goes unused for 90 days, when the person disconnects it on the agent's page, when the agent is paused, or when the person who made it is disabled. An agent holds at most 5 such tokens. For the Copilot cloud agent, store the token as a secret of the repository's `copilot` environment, named `COPILOT_MCP_BRAINDUMP_TOKEN`, and add Braindump to the repository's MCP configuration:

```text
{"mcpServers": {"braindump": {"type": "http", "url": "https://eu.brndmp.com/mcp",
  "headers": {"Authorization": "Bearer $COPILOT_MCP_BRAINDUMP_TOKEN"}, "tools": ["*"]}}}
```

**The HTTP API** accepts the same token, from either way: send `Authorization: Bearer <token>` on every request. The examples in this guide are HTTP requests; over MCP, each is a call of its operation's tool with the same members.

## 2. Who you are and what you may do

The examples send the token as `$TOKEN`. When a request answers `token_expired` or `token_invalid`, an MCP client refreshes its token or asks the person to connect again; a token from the agent's page has ended, and the person makes a new one.

```http 200
GET /me
Authorization: Bearer $TOKEN
```

```response
{"account": "...", "kind": "agent", "name": "ledger", "consent": {"needed": false}}
```

A User Agent whose person has not agreed to the current terms of use and privacy statement yet (people who signed up recently and have not finished) gets `consent_needed` on everything but `GET /me`; it cannot agree for its person, who must sign in to Braindump and agree.

Some operations are for people only, and the description of each operation in https://eu.brndmp.com/openapi.json says who may call it. In short:

- Agreeing to the terms of use and the privacy statement: an agent's own `consent.needed` is always false.
- Ownership transfers of an organization: starting, canceling, accepting and declining one, listing one's own (`GET /me/ownership-transfers`), and the preview. An agent gets `humans_only`, the Owner's User Agent included.
- Being shown as present on a project page: see Presence is for people in section 10.

What the agent may do depends on the tier it was granted on each project: Reader (read), Writer (write dumps), Developer (also change schemas) and Administrator. A tier too low is a `tier_too_low` rejection that says which operation.

```http 200
GET /projects/$PROJECT/capabilities
Authorization: Bearer $TOKEN
```

## 3. Read the project first

Before you write a value or change a property, read what the project says about itself:

- `GET /projects/{p}`: its `description`.
- `GET /projects/{p}/schemas`: each dump schema's `description` and `version`, and for each property its `name`, `type`, `required`, `description`, `options`, `rules` (each with its `message`) and `formula`. A large project's list is long: read one schema with `GET /projects/{p}/schemas/{s}` rather than cutting the list short.

A `description` is written by the people who own the project, for the people and agents who fill it in: what the project, the schema or the property means and what to put in it. Read it before you write a value or change a property; when a request disagrees with it, say so and ask, rather than pick one; when you change a property's type, domain or unit, update its description in the same transaction. When your own script prints a schema, print the descriptions too. Read a schema again when its `version` has moved since your read. The dumps query with `"include": ["schema"]` gives the descriptions of the properties it selects, and the dry run of a write (section 4) answers first with the descriptions of the schemas and properties the write touches. The example in section 4 reads its new schema back this way.

## 4. Write: transactions

Every change to a project's content is a **transaction**: a list of operations that are applied together or not at all, as the next number in the project's history. The request is `POST /projects/{p}/transactions` with three things:

- `operations`: 1 to 500 of them, applied in order. Each has an `op`: `schema.create`, `schema.update`, `schema.remove`, `schema.restore`, `property.restore`, `dump.create`, `dump.update`, `dump.delete`, `dump.undelete`, `dump.move`. The members of each are in https://eu.brndmp.com/openapi.json.
- `base`: the transaction your reads reflected. Every read answers with its `transaction`; send the oldest one you used. Use 0 for a project without transactions. The server compares what you change with what others changed after your base (see conflicts below).
- A **retry key** in the `Idempotency-Key` header: a fresh random value (at most 255 bytes characters) for every change.

### Local names

An operation that makes something may give it a local name, `ref`, and later operations of the same transaction use it as `$name` wherever an identifier goes. A name is 1 to 64 bytes letters, digits, `_` or `-`, defined once per transaction. This lets one transaction create a schema, its properties and the first dump. The result of each operation says what it made (`created` maps each local name to the key of the new dump or dump schema, such as `TAS-1` or `TAS`, or to the identifier of a new property):

```http 201 SCHEMA=results.0.schema TITLE=results.0.created.title POINTS=results.0.created.points DUMP=results.1.dump
POST /projects/$PROJECT/transactions
Authorization: Bearer $TOKEN
Idempotency-Key: guide-create
Content-Type: application/json

{"base": 0, "operations": [
  {"op": "schema.create", "ref": "task", "name": "Task", "properties": [
    {"ref": "title", "name": "Title", "type": "plain_text", "required": true,
     "description": "What to do, as a short imperative sentence."},
    {"ref": "points", "name": "Points", "type": "number",
     "description": "The effort, in story points. Leave it empty when unsure."}]},
  {"op": "dump.create", "schema": "$task", "set": {"$title": "Write the guide", "$points": 3}}]}
```

```response
{"transaction": 1, "results": [
  {"op": "schema.create", "schema": "...", "created": {"points": "...", "task": "...", "title": "..."}},
  {"op": "dump.create", "dump": "..."}]}
```

(That one needs the Developer tier, because it changes a schema. A `$name` used before it is defined, or for the wrong kind of thing, is `ref_unknown`.) `set` writes a value of one property of a dump; lists (multi-selects, to-many references, nested objects) are changed item by item with `list`. The property types and their settings are in section 7, and how a value of each type is written in section 6.

Read the schema back, as section 3 says, before the next write:

```http 200
GET /projects/$PROJECT/schemas/$SCHEMA
Authorization: Bearer $TOKEN
```

```response
{"schema": {"key": "$SCHEMA", "name": "Task", "version": 1, "properties": {
  "$POINTS": {"name": "Points", "type": "number", "required": false,
    "description": "The effort, in story points. Leave it empty when unsure."}}}}
```

### Retry keys

If you do not know whether a request arrived (a timeout, a dropped connection), send **exactly the same request again, with the same retry key**. The server answers with the first response, without writing twice, for 1 day. The same key with a different body is refused (`retry_key_reused`), and a request without a key is refused (`retry_key_missing`). A rejected request stores nothing under its key, so after fixing it you may use the key again.

```http 201
POST /projects/$PROJECT/transactions
Authorization: Bearer $TOKEN
Idempotency-Key: guide-points
Content-Type: application/json

{"base": 1, "operations": [{"op": "dump.update", "dump": "$DUMP", "set": {"$POINTS": 5}}]}
```

```response
{"transaction": 2}
```

The same request, repeated, is the same answer, and still transaction 2:

```http 201
POST /projects/$PROJECT/transactions
Authorization: Bearer $TOKEN
Idempotency-Key: guide-points
Content-Type: application/json

{"base": 1, "operations": [{"op": "dump.update", "dump": "$DUMP", "set": {"$POINTS": 5}}]}
```

```response
{"transaction": 2}
```

The same key for another change:

```http 409
POST /projects/$PROJECT/transactions
Authorization: Bearer $TOKEN
Idempotency-Key: guide-points
Content-Type: application/json

{"base": 1, "operations": [{"op": "dump.delete", "dump": "$DUMP"}]}
```

```response
{"errors": [{"code": "retry_key_reused"}]}
```

### Conflicts, strict and force

Someone else (a person, another agent) changed the points of that dump in transaction 2. This agent still thinks the base is 1 and changes the same value:

```http 409
POST /projects/$PROJECT/transactions
Authorization: Bearer $TOKEN
Idempotency-Key: guide-conflict
Content-Type: application/json

{"base": 1, "operations": [{"op": "dump.update", "dump": "$DUMP", "set": {"$POINTS": 8}}]}
```

```response
{"status": 409, "transaction": 2, "errors": [{
  "code": "value_changed", "pointer": "/operations/0/set/$POINTS", "dump": "$DUMP", "property": "$POINTS",
  "changed": {"transaction": 2, "account": "...", "recorded_at": "..."}, "current": 5,
  "next": [{"action": "rebase", "base": 2}, {"action": "force", "pointer": "/operations/0/force"}]}]}
```

Nothing was written. The rejection says what changed, by whom, in which transaction, and the value as it is now (`current`; a text or a geometry over 10 KB (10,240 bytes) is left out, with `current_omitted`). The top-level `transaction` is the current one. You have two ways out, and `next` names both:

- **Rebase**: look at the current value, decide, and send the change again with `base` set to the current transaction, with a fresh retry key. Only values changed after the base conflict; an unrelated change by someone else never does.
- **Force**: send the operation again with `"force": true`, to overwrite. The overwritten values are recorded in the result as `forced_overwrites`, so the history shows it. A force applies to that one operation and overrides only value and list conflicts (`value_changed`, `list_reordered`, `strict_changed`). Conflicts on a schema (`schema_changed`) or on deleting a dump (`dump_changed`) are never forced: read again.

```http 201
POST /projects/$PROJECT/transactions
Authorization: Bearer $TOKEN
Idempotency-Key: guide-rebased
Content-Type: application/json

{"base": 2, "operations": [{"op": "dump.update", "dump": "$DUMP", "set": {"$POINTS": 8}}]}
```

```response
{"transaction": 3}
```

By default an update conflicts only for the values it writes. With `"strict": true` on a `dump.update`, **any** change to any value of that dump since the base is a conflict (`strict_changed`), for an agent that decided on the whole dump. Forcing a strict update records every value it overwrote.

A transaction that has conflicts and other problems is one `422` rejection that lists them all. One that has only conflicts is a `409`.

### Try it first: a dry run

`POST /projects/{p}/transactions/preview` takes the same body and works the transaction out as the write would, then rolls it back: nothing is stored, no number is used, and it takes no retry key. It is refused exactly as the write would be (a conflict, an invalid content, a stale base), except that values a type change cannot convert do not refuse it: their groups (`resolution_required` entries, with `count`, `sample`, `find` and `next`) are in `preview.properties[].resolutions`, ready for the write's `resolutions`.

The answer starts with `transaction` (the current one: the base to write with) and `descriptions`: the project's instructions for what the transaction touches. There is an entry for each dump schema it creates, changes, removes or restores or holds a dump it creates, updates, deletes, undeletes or moves (a move: both schemas), and for each property it writes a value to, adds, changes, removes or restores, nested ones included: `schema` (the dump schema's key), `path` (for a property of a nested schema, the nested properties down to it, as in the history), `property` (absent in the schema's own entry), `name` and `description`, as of after the transaction (before it, for one it removes). Only those with a description are there, ordered by schema and then property, the schema's own entry first. `changed` lists `type`, `domain` or `unit` when the transaction changes them: check that the description still fits, and change it in the same transaction when it does not. Read them before you send the write; when one disagrees with what you are about to do, say so and ask, rather than pick one. Above 64 KB (65,536 bytes) together, the last entries lose their text and say `omitted: true`; read those in the schema. A write of a value to the Points of section 4:

```http 200
POST /projects/$PROJECT/transactions/preview
Authorization: Bearer $TOKEN
Content-Type: application/json

{"base": 3, "operations": [{"op": "dump.update", "dump": "$DUMP", "set": {"$POINTS": 2}}]}
```

```response
{"transaction": 3, "descriptions": [{"schema": "$SCHEMA", "property": "$POINTS", "name": "Points",
  "description": "The effort, in story points. Leave it empty when unsure."}],
  "results": [{"op": "dump.update", "dump": "$DUMP"}], "preview": {"dumps_affected": 1}}
```

Then come the `results` the write would have and, in `preview`, per changed property how many values convert (`affected`, `converted`), how many dumps a new property's `fill` gives its value (`filled`), how many dumps would be errored and why (`errored`) and how many are errored now (`errored_before`), and how many fail each rule (`rules`; each rule is evaluated on its own, so a dump that fails two rules counts under both), as the background work would settle them; `recalculating` counts holders it could not settle (their job is held by a worker), which are in neither. A preview holds the project's lock like a write, so it settles only so much: above 1,750 dumps in the schemas involved, once its type changes, fills and statuses to mark come to more than 20,000 values together (from there on, `affected`, `converted`, `filled` and groups are still there, but nothing more is written), or once it has held the lock for 2 seconds, `checked` is `false` and those counts are left out. Send `"statuses": false` beside `base` and `operations` for the light preview: nothing is settled (`checked: false`), and it is as fast as the operations themselves. `versions` names, per dump schema the transaction changes, the version number the write would make (`version` of a schema read: 1 when created, one more per transaction that changes the type or anything inside it).

```http 200
POST /projects/$PROJECT/transactions/preview
Authorization: Bearer $TOKEN
Content-Type: application/json

{"base": 3, "operations": [{"op": "schema.update", "schema": "$SCHEMA", "change_properties": [
  {"property": "$POINTS", "required": true, "rules": [{"formula": "Points <= 5", "message": "at most 5 points"}]}]}]}
```

```response
{"transaction": 3, "results": [{"op": "schema.update", "schema": "..."}], "preview": {"dumps_affected": 0, "checked": true,
  "properties": [{"property": "...", "affected": 0, "converted": 0, "errored": {"rule_failed": 1},
    "rules": [{"message": "at most 5 points", "failing": 1}], "resolutions": []}],
  "versions": [{"schema": "...", "version": 2}]}}
```

## 5. Read: QUERY

Reads of lists use the HTTP method **QUERY**: a safe request with a JSON body. Where a client or proxy cannot send QUERY, `POST` to the same path plus `/query` does exactly the same (`QUERY /projects/{p}/dumps` is `POST /projects/{p}/dumps/query`). Every list in the API has both. `GET` reads single things (`GET /projects/{p}/schemas`, `GET /projects/{p}/dumps/{d}`). `GET /projects/{p}/dumps/{d}/linked-from` lists the live dumps that link to one dump, through a reference (to-one or to-many, at any depth of nested objects) or a link in a rich text: `{transaction, dumps: [{key, label?, schema}], more}`, each dump once, by schema key, then number, at most 25 (`more: true` when there are more). `label` is the text of the dump's title property, else of its schema's first plain-text property. It takes `transaction` or `at` as the dump read does.

The dumps query reads the dumps of one schema:

| Member | Meaning |
|---|---|
| `schema` | The dump schema to read (required). |
| `select` | The properties to return, by identifier. A path continues through references and nested objects with dots (`prp_23.prp_11`): at most 4 steps. Dumps reached that way are in `referenced`. |
| `include` | `["schema"]` adds the definitions of the schemas the answer reaches, with each selected property's `description`. |
| `where` | A filter, see below. |
| `sort` | Entries `{"property": ..., "direction": "asc" or "desc"}`; ties are broken by dump identifier. At most 8 entries. |
| `limit` | The page size: 50 by default, at most 500. |
| `cursor` | The next page: send the `cursor` of the previous answer, alone. |
| `transaction` or `at` | Read as of a transaction, or as of a time (not both). |
| `counts` | `true` adds `counts` to every page: `matched` (the dumps the query keeps, over all pages, `skipped` not among them), `errored` and `recalculating` (how many of those `issues has errored` and `issues has recalculating` would keep). The same on every page. Not with `aggregate`. |

```http 201
POST /projects/$PROJECT/transactions
Authorization: Bearer $TOKEN
Idempotency-Key: guide-more
Content-Type: application/json

{"base": 3, "operations": [
  {"op": "dump.create", "schema": "$SCHEMA", "set": {"$TITLE": "Ship it", "$POINTS": 1}},
  {"op": "dump.create", "schema": "$SCHEMA", "set": {"$TITLE": "Celebrate", "$POINTS": 2}}]}
```

### Select, where and sort

```http 200
QUERY /projects/$PROJECT/dumps
Authorization: Bearer $TOKEN
Content-Type: application/json

{"schema": "$SCHEMA", "select": ["$TITLE", "$POINTS"],
 "where": {"property": "$POINTS", "op": "gte", "value": 2},
 "sort": [{"property": "$POINTS", "direction": "desc"}]}
```

```response
{"transaction": 4, "dumps": [
  {"key": "$DUMP", "schema": "$SCHEMA", "status": "okay", "values": {"$TITLE": "Write the guide", "$POINTS": 8}},
  {"key": "...", "schema": "$SCHEMA", "status": "okay", "values": {"$TITLE": "Celebrate", "$POINTS": 2}}]}
```

A `where` node is exactly one of `and` or `or` (a list), `not`, a condition `{"property": ..., "op": ..., "value": ...}`, a block `any`, `all` or `none` over a list with its own `where`, or `count`. The operators depend on the property's type: `eq`, `ne`, `in`, `is_empty` for all; `gt`, `gte`, `lt`, `lte` for numbers, quantities and dates; `contains`, `starts_with` and `matches` for text (`matches`: every word of the value is a word of the text, the last as the start of a word, ignoring case, as search reads it; a value without words matches nothing); `has`, `has_any`, `has_all` for multi-selects and lists of people; `within` (every shape) and `near` (points only) for geo. On geo, see Geo in section 6. On a quantity, see Quantities in section 6. On a date, the value may be coarser than the property and then means "falls in" (`eq "2026"` on a day column is every day of 2026); see Dates in section 6. `links_to` on rich text takes a dump's key, a dump schema's key or a person's `usr_` identifier. A person is compared by `usr_` identifier; one that no value names matches nothing (whether or not the account exists), and a person cannot be sorted on. A condition can also test a system field (`"field": "status"`, `key`, `transaction`, `issues`, `links`; a nested object, in a block over a nested list, has `id`). A dump is named by its key, current or old, in any letter case (`TASK-5`, `task-5`); a key that names no dump is refused with `dump_not_found` rather than matching nothing. A rejected operator lists the allowed ones in `expected.allowed`. A where tree has at most 200 nodes, nests at most 16 deep, and a list in a condition holds at most 1,000 values (`query_too_large`). A filter, a sort and an aggregation load every dump of the schema; a read that would load more than 32 MB (33,554,432 bytes) of dumps' contents is refused with `query_too_large`, and so is reading one dump that holds more.

A dump whose value is errored or still being recalculated is never kept by a filter on that value; it is counted in the `skipped` section of the answer (the first 100 by name). Deleted dumps are left out unless the filter has a condition on `status`.

`QUERY /projects` with `"include": ["summary"]` gives each project a `summary`, what a card on the all-projects page shows: `schema_keys` and `schemas` (its live dump schemas), `dumps` (those not deleted, now), `last_activity` (its newest caller transaction, never a recalculation: `at`, `by`, `kind` such as `dump_changed` or `schema_created`, and the dump's key or the schema's key and name), `people` (up to 5 accounts most recently active) and `my_agents` (the caller's own User Agents that can open the project, with their `level`; empty for an agent). `by`, `people` and `my_agents` are keys of the page's `actors`, named by the rules of section 10. The cursor carries the include. To find a project, `QUERY /projects` takes `q` (text in its name or description, ignoring case), `organization`, `writable: true` (where you can write) and `with_my_agents: true`, and `sort`: `created` (the default), `name` or `last_activity` (the newest caller transaction first). The page's `totals` count what the query matches over all its pages, per organization. The cursor carries the filters and the sort, so send it alone.

### Pages

```http 200 CURSOR=cursor
POST /projects/$PROJECT/dumps/query
Authorization: Bearer $TOKEN
Content-Type: application/json

{"schema": "$SCHEMA", "select": ["$POINTS"], "limit": 2}
```

```response
{"transaction": 4, "dumps": [{"key": "..."}, {"key": "..."}], "cursor": "..."}
```

Send the cursor alone, to get the next page of the same query over the **same state**: pages neither skip nor repeat, whatever others write meanwhile. The last page has no `cursor`.

```http 200
QUERY /projects/$PROJECT/dumps
Authorization: Bearer $TOKEN
Content-Type: application/json

{"cursor": "$CURSOR"}
```

```response
{"transaction": 4, "dumps": [{"key": "..."}]}
```

### As of a transaction

`transaction` (or `at`, a time) reads the project as it was. This is the points of the dump before anyone changed them:

```http 200
QUERY /projects/$PROJECT/dumps
Authorization: Bearer $TOKEN
Content-Type: application/json

{"schema": "$SCHEMA", "select": ["$POINTS"], "transaction": 1, "limit": 1}
```

```response
{"transaction": 1, "dumps": [{"status": "okay", "transaction": 1, "values": {"$POINTS": 3}}]}
```

## 6. Values by type

How a value of each type is written, compared and converted. The types and the settings of a property are in section 7.

### Quantities

A `quantity` is a number with a unit: a length, a mass, a temperature. The property has a required `domain` (`length`, `area`, `mass`, `temperature`, ...; the unit catalog in section 14 lists them with their units, and https://eu.brndmp.com/openapi.json has them as an enum) and a `unit`, the **code** of a unit of that domain (`km`, `m2`, `degC`, `gal_us`; case-sensitive, ASCII). Without a `unit` it is the domain's base unit, and a schema read always shows both. A unit of another domain is `wrong_type`, a `domain` or `unit` on any other type is `member_not_allowed`, and a quantity is never `many`. The property's unit is the one that `sum` and `average` answer in, and what a type change reads a number as; it changes no value, so a unit change is a plain change. A change of domain is a type change that converts nothing (every value needs a resolution: `clear`, or `replace` with a quantity of the new domain).

A value is the amount and the exact code of a unit of the property's domain, in any unit of it: `{"amount": 20, "unit": "gal_us"}`. The amount follows the rules of a number. It is stored and read back as written, never converted: a property in `L` can hold `20 gal_us`. A bare number, a missing or extra member, a symbol or a name instead of the code, and a unit of another domain are `value_not_representable`, and `expected.allowed` of the entry names the codes you may have meant (`gal` gives `gal_us` and `gal_imp`, `feet` gives `ft`; when nothing matches, every code of the domain).

This schema has a volume property in liters (`L`) and a number computed from it. The formula reads the quantity in a unit of its choice with `in_unit`; the people who use the app may see volumes in their own units, but a formula never reads that preference:

```http 201 TANK=results.0.schema CAPACITY=results.0.created.capacity GALLONS=results.0.created.gallons NAME=results.0.created.name SMALL=results.1.dump
POST /projects/$PROJECT/transactions
Authorization: Bearer $TOKEN
Idempotency-Key: guide-quantity
Content-Type: application/json

{"base": 4, "operations": [
  {"op": "schema.create", "ref": "tank", "name": "Tank", "properties": [
    {"ref": "name", "name": "Name", "type": "plain_text"},
    {"ref": "capacity", "name": "Capacity", "type": "quantity", "domain": "volume", "unit": "L"},
    {"ref": "gallons", "name": "Gallons", "type": "number", "formula": "in_unit(Capacity, \"gal_us\")"}]},
  {"op": "dump.create", "schema": "$tank", "set": {"$name": "Small", "$capacity": {"amount": 40, "unit": "L"}}},
  {"op": "dump.create", "schema": "$tank", "set": {"$name": "Medium", "$capacity": {"amount": 20, "unit": "gal_us"}}},
  {"op": "dump.create", "schema": "$tank", "set": {"$name": "Large", "$capacity": {"amount": 100, "unit": "L"}}}]}
```

`gal` is not a code (it could be two units), so it is refused, and the refusal says which:

```http 422
POST /projects/$PROJECT/transactions
Authorization: Bearer $TOKEN
Idempotency-Key: guide-quantity-refused
Content-Type: application/json

{"base": 5, "operations": [
  {"op": "dump.create", "schema": "$TANK", "set": {"$NAME": "Odd", "$CAPACITY": {"amount": 10, "unit": "gal"}}}]}
```

```response
{"status": 422, "errors": [
  {"code": "value_not_representable", "pointer": "/operations/0/set/$CAPACITY", "expected": {"allowed": ["gal_us", "gal_imp"]}}]}
```

A filter, a sort and an aggregation compare quantities by size, in the domain's base unit, never by the bare amount. The operators are those of a number (`eq`, `ne`, `in`, `is_empty`, `gt`, `gte`, `lt`, `lte`); the value is a quantity in any unit of the property's domain (`in` takes a list of them), and `20 gal_us` equals a stored `75.70823568 L`. Two quantities are equal when their amounts in the base unit are equal after rounding to 15 significant digits, so `3.33333333333333 ft` equals `3.33333333333334 ft`. A bare number or a unit of another domain is `wrong_type`, with the codes you may have meant in `expected.allowed`. The medium tank was written in gallons, and is found with the large one by a filter in gallons:

```http 200
QUERY /projects/$PROJECT/dumps
Authorization: Bearer $TOKEN
Content-Type: application/json

{"schema": "$TANK", "select": ["$NAME", "$CAPACITY", "$GALLONS"],
 "where": {"property": "$CAPACITY", "op": "gte", "value": {"amount": 20, "unit": "gal_us"}},
 "sort": [{"property": "$CAPACITY", "direction": "desc"}]}
```

```response
{"dumps": [
  {"key": "...", "schema": "$TANK", "status": "okay", "values": {"$NAME": "Large", "$CAPACITY": {"amount": 100, "unit": "L"}, "$GALLONS": 26.4172052358148}},
  {"key": "...", "schema": "$TANK", "status": "okay", "values": {"$NAME": "Medium", "$CAPACITY": {"amount": 20, "unit": "gal_us"}, "$GALLONS": 20}}]}
```

The values are as they were written (`20 gal_us` is not shown in liters), and the computed number is the capacity in gallons, exact and rounded once to 15 significant digits. In an aggregation, `min` and `max` of a quantity answer the value as it was stored, and `sum` and `average` answer a quantity in the property's unit, each value converted to it first; a value beyond the bounds of a number in that unit (`1e300 m` in a property in `nm`) is left out of them and counted in `skipped`. `sum` of a quantity of `temperature` is `wrong_type` (use `average`, `min` or `max`), and a quantity cannot be a `group_by`:

```http 200
QUERY /projects/$PROJECT/dumps
Authorization: Bearer $TOKEN
Content-Type: application/json

{"schema": "$TANK", "aggregate": {"values": {
  "total": {"sum": "$CAPACITY"}, "largest": {"max": "$CAPACITY"}}}}
```

```response
{"groups": [{"total": {"amount": 215.70823568, "unit": "L"}, "largest": {"amount": 100, "unit": "L"}}]}
```

In a formula or a rule a quantity is never computed with as a bare amount. A path that ends in a quantity may only be the argument of one of these, or of `is_empty` or `count`:

- `in_unit(Capacity, "gal_us")`: the amount in that unit, a number. Over a to-many path it is a list of numbers, so `sum(in_unit(items.weight, "kg"))` adds weights entered in `lb` and `kg`.
- `unit_of(Capacity)`: the code of the unit as entered, a text.
- `quantity(n, "m2")`: a quantity made from a number (`quantity(in_unit(width, "m") * in_unit(length, "m"), "m2")` for an `area`).

The unit is a text literal, the code of a unit, and for `in_unit` one of the property's domain: `Capacity * 2`, `in_unit(Capacity, "kg")`, `in_unit(Capacity, "parsecs")` and `in_unit(Capacity, label)` are `formula_invalid` when the schema is saved, and in the dry run. Arithmetic or a comparison on quantities is `type_mismatch`. A `quantity` property can itself be computed, when its formula gives a quantity of its domain; it is stored as `{"amount": 3, "unit": "m2"}`, and a quantity of another domain errors the value with `type_mismatch`.

A type change converts, and a move does the same. A number becomes a quantity of that amount in the property's unit, and a quantity becomes a number in the old property's unit (`5 ft` in a property in `m` gives `1.524`). A plain text becomes a quantity when it is a number and a code or a symbol of one unit of the domain (`12.5 km`, `12.5km`, `3 gal (US)`; `3 gal` is no unit's symbol, so it needs a resolution), and a quantity becomes plain text as `12.5 km`. A move keeps a quantity of the same domain as it is. The `find` of a group into a quantity names it with `not_convertible_to`: `{"type": "quantity", "domain": "length", "unit": "m"}`.

### Dates

A `date` property has a `precision`: how fine its values are. It is `day` when you leave it out, it is fixed for the property (every value has it), and a schema read always shows it. A value is a JSON string in the form of the precision, and it stands for that whole period:

| `precision` | Written as | Example | The period |
|---|---|---|---|
| `year` | `YYYY` | `"2026"` | 1 January to 31 December 2026 |
| `quarter` | `YYYY-Qn` | `"2026-Q4"` | 1 October to 31 December 2026 |
| `month` | `YYYY-MM` | `"2026-11"` | 1 to 30 November 2026 |
| `week` | `YYYY-Www`, an ISO 8601 week | `"2026-W48"` | Monday 23 to Sunday 29 November 2026 |
| `day` | `YYYY-MM-DD` | `"2026-11-25"` | that day |
| `time` | RFC 3339, whole seconds, with an offset | `"2026-11-25T14:00:00+01:00"` | that moment |

So when only the year is known, a `year` property holds `"1987"`, with no made-up first of January. Years run from 0001 to 9999. A week runs Monday to Sunday, and week 1 holds the year's first Thursday. A moment is answered in UTC (`"2026-11-25T13:00:00Z"`). There is no `datetime` type: that is a `date` with the precision `time`.

```http 201 RELEASE=results.0.schema RNAME=results.0.created.rname PLANNED=results.0.created.planned SHIPPED=results.0.created.shipped ANNOUNCED=results.0.created.announced
POST /projects/$PROJECT/transactions
Authorization: Bearer $TOKEN
Idempotency-Key: guide-dates
Content-Type: application/json

{"base": 5, "operations": [
  {"op": "schema.create", "ref": "release", "name": "Release", "properties": [
    {"ref": "rname", "name": "Name", "type": "plain_text"},
    {"ref": "planned", "name": "Planned", "type": "date", "precision": "quarter"},
    {"ref": "shipped", "name": "Shipped", "type": "date"},
    {"ref": "announced", "name": "Announced", "type": "date", "precision": "time"}]},
  {"op": "dump.create", "schema": "$release", "set": {"$rname": "Alpha", "$planned": "2025-Q4", "$shipped": "2025-12-30", "$announced": "2025-11-03T10:00:00+01:00"}},
  {"op": "dump.create", "schema": "$release", "set": {"$rname": "Beta", "$planned": "2026-Q1", "$shipped": "2026-03-02", "$announced": "2026-01-01T00:30:00+01:00"}},
  {"op": "dump.create", "schema": "$release", "set": {"$rname": "Gamma", "$planned": "2026-Q4", "$shipped": "2026-11-25", "$announced": "2026-10-01T09:00:00Z"}}]}
```

Only the form of the property's precision is taken, finer or coarser is `value_not_representable`, and `expected.format` shows the form:

```http 422
POST /projects/$PROJECT/transactions
Authorization: Bearer $TOKEN
Idempotency-Key: guide-dates-refused
Content-Type: application/json

{"base": 6, "operations": [
  {"op": "dump.create", "schema": "$RELEASE", "set": {"$RNAME": "Delta", "$PLANNED": "2027-03"}}]}
```

```response
{"status": 422, "errors": [
  {"code": "value_not_representable", "pointer": "/operations/0/set/$PLANNED", "expected": {"type": "string", "format": "quarter, as 2026-Q4"}}]}
```

A filter on a date takes a value of any precision, written as strictly as a value. One coarser than the property means "falls in". With V the value's period and O the filter's:

- `eq`: V lies within O, so `eq "2026"` on a day column finds every day of 2026. `ne`: it does not. `in`: `eq` for any value of the list.
- `lt`: V ends before O begins: `lt "2026"` is before 2026. `gt`: V begins after O ends.
- `lte`: V ends no later than O ends: `lte "2026"` is in 2026 or before. `gte`: V begins no earlier than O begins.

A value of the property's own precision means what you expect. Sorting, `min` and `max` go by the first day of the period.

```http 200
QUERY /projects/$PROJECT/dumps
Authorization: Bearer $TOKEN
Content-Type: application/json

{"schema": "$RELEASE", "select": ["$RNAME", "$SHIPPED"],
 "where": {"property": "$SHIPPED", "op": "eq", "value": "2026"},
 "sort": [{"property": "$SHIPPED", "direction": "asc"}]}
```

```response
{"dumps": [
  {"key": "...", "schema": "$RELEASE", "status": "okay", "values": {"$RNAME": "Beta", "$SHIPPED": "2026-03-02"}},
  {"key": "...", "schema": "$RELEASE", "status": "okay", "values": {"$RNAME": "Gamma", "$SHIPPED": "2026-11-25"}}]}
```

A moment is compared in UTC. Beta was announced at half past midnight on New Year's Day in a zone one hour ahead of UTC, which is still 2025 in UTC, so it is before 2026:

```http 200
QUERY /projects/$PROJECT/dumps
Authorization: Bearer $TOKEN
Content-Type: application/json

{"schema": "$RELEASE", "select": ["$RNAME", "$ANNOUNCED"],
 "where": {"property": "$ANNOUNCED", "op": "lt", "value": "2026"},
 "sort": [{"property": "$ANNOUNCED", "direction": "asc"}]}
```

```response
{"dumps": [
  {"key": "...", "schema": "$RELEASE", "status": "okay", "values": {"$RNAME": "Alpha", "$ANNOUNCED": "2025-11-03T09:00:00Z"}},
  {"key": "...", "schema": "$RELEASE", "status": "okay", "values": {"$RNAME": "Beta", "$ANNOUNCED": "2025-12-31T23:30:00Z"}}]}
```

Changing the `precision` of a property is a type change. A value converts when it lies wholly inside one period of the new precision: the day `2026-11-25` becomes the month `2026-11`, the quarter `2026-Q4` or the year `2026`, and a moment becomes its UTC day. The rest form the group `not_in_one_period` (`time_missing` when the new precision is `time`). Resolve it with `start`, the period of the new precision that holds the value's first day (the year `2026` becomes the day `2026-01-01`, the week `2026-W53` the month `2026-12`; to `time`, midnight UTC), or with `time` (a time of day on the first day; `time_missing` only), `clear`, `replace` or `per_dump`. A text converts to a date, and a date to a text, in the written form of the precision. In a formula a date keeps its precision: equality and order compare periods, and `concat` gives the written form. There are no date functions.

### Selects

Each option of a select has a `color`, one of `gray`, `blue`, `teal`, `green`, `yellow`, `orange`, `red` and `purple` (any other is `wrong_type`, with the eight in `expected.allowed`); give it in `options`, `add_options` or `change_options`, or leave it out and a new option gets the first of `blue`, `teal`, `green`, `yellow`, `orange`, `red`, `purple`, `gray` that no live option of the property has, else the one the fewest have. Options from before colors are `gray`. A color change is a schema change, like a relabel: it is in the history and the dry run, and it conflicts as a relabel does. A plain text becomes an option of a select when, trimmed, it equals the label of one of the options the property has after the operation (`add_options` included), ignoring case, and has at most 64 characters characters; a multi-select gets a list of that one option (a text is never split on commas). The other texts form a `resolution_required` group, whose `find` names the labels: `{"op": "not_convertible_to", "value": {"type": "single_select", "labels": [...]}}`. Add an option per value in use first, and nothing is left to resolve.

### Geo

A `geo` property has a `shape`, `point`, `path` or `area`, and its value is a GeoJSON geometry of that shape in WGS84, `[longitude, latitude]`: a `Point`, a `LineString` of at least 2 different points, or a `Polygon` with one closed ring that does not cross or touch itself (`{"type": "Point", "coordinates": [4.8897, 52.374]}`). Coordinates are rounded to 7 decimals before the geometry is checked; a geometry has at most 1,000 positions. A path that crosses the antimeridian is a `MultiLineString`, cut there into lines that meet at longitude 180 and -180 at the same latitude (RFC 7946 §3.1.9), the positions on either side of each cut more than 180° of longitude apart. An area that crosses it is a `MultiPolygon`, cut there into polygons of one ring each, each with an edge along longitude 180 or -180, that joined along the edges they share make one ring that does not cross or touch itself; an area cannot go around a pole. No other segment may jump more than 180° of longitude, and no other multi-geometry is a value. Anything else is `value_not_representable`. A geo property cannot be sorted or grouped on. A type change turns a geometry into plain text as its GeoJSON, and a plain text into a geometry when it is GeoJSON of the property's shape; a change of shape never converts (the values need a resolution). On geo, `eq`, `ne` and `in` take a GeoJSON geometry, rounded like a write and compared coordinate for coordinate. `within` takes a box `[west, south, east, north]` in degrees and finds the geometries wholly inside it, edges included; a box whose west is east of its east crosses the antimeridian (RFC 7946 §5.2: `[170, -10, -170, 10]` is 20° wide), and one whose south is north of its north is `wrong_type`. `near` takes `{"center": [longitude, latitude], "radius_meters": 1000}` and finds the points at most that far from the center (haversine, on a sphere); on a path or an area it is `operator_not_allowed`.

### People and rich text

A person value is a `usr_` identifier of someone `GET /projects/{p}/people` lists; anyone else is `person_not_found`. A `rich_text` value is Markdown; a link in it whose destination is `dump:TASK-5` or `schema:TASK` (a key) links to that dump or schema, and one whose destination is `person:usr_N` (`[Ada](person:usr_5)`, or `[](person:usr_5)` for the app to show the person's current name) mentions that person. A mention is never checked: any `usr_N` is accepted, whether or not the account exists or is in the project.

## 7. Schemas and properties

The property types are `plain_text`, `rich_text`, `number`, `date`, `boolean`, `single_select`, `multi_select`, `reference`, `nested`, `attachment`, `person`, `geo` and `quantity`. A `quantity` property is a number with a unit; see Quantities in section 6. A `date` property has a `precision`, `year`, `quarter`, `month`, `week`, `day` (the default) or `time`, and takes values in that form only; see Dates in section 6.

A property takes `card`, `always`, `detail` (the default) or `never`: whether it shows on cards; it is only the default a new board, calendar or map view starts its card from (a saved view's own choice wins), a change is a schema change, and a schema read always shows it. It also takes the layout of a dump's page: `placement`, `table` or `body` (a body section; the default for `rich_text` and `nested`, `table` otherwise), `when_empty`, `show` (the default) or `hide` (Read leaves an empty value out), and `group`, the name of its group in the property table (at most 100 characters characters, `""` for none). A group is the properties that share a name, ordered by their first property; to rename one, change the `group` of each of its properties. A schema read always shows `placement` and `when_empty`, and `group` when set. New properties and `change_properties` take all four; another value of `card`, `placement` or `when_empty` is `wrong_type`, with the values in `expected.allowed`. Each is a schema change, only a top-level property's layout has an effect, and a type change leaves the placement as it is.

A dump schema read also has `sections`: `linked_from` and `recent_changes`, the fixed parts of every dump's page, each placed like a top-level property (`placement`, `group`, `after`: the property it follows, `""` for first; `linked_from` also has `when_empty`). They are not properties: no values, and not in the order of properties. `schema.update` places them with `change_sections`, applied after the property changes; a change is a schema change.

`schema.create` and `schema.update` also take `singular`, the name for one dump (`Vessel` for `Vessels`; `""` removes it, nothing is derived from the name), and `title`, the title property: a live `plain_text` property of the schema itself without a formula (`property_not_in_schema` or `wrong_type` at `/title` otherwise; `""` removes it). The server stores them, and a schema read shows them: no filter or sort changes, only the `label` of the linked-from read follows `title`, and you label dumps as you like. Removing the title property, or making it another type or computed, removes the choice in the same transaction, and restoring it does not bring the choice back. A change of either is a schema change.

A new property of a dump schema takes `fill`, a value every live dump of the schema gets in the same transaction (deleted dumps, and dumps a later operation creates, do not), written as `set` takes it (a list of identifiers for a multi-select or a to-many reference): `{"name": "country", "type": "plain_text", "required": true, "fill": "NL"}` leaves no dump missing a country. The hard limits of a write refuse a fill, as does a reference to a dump of another schema, a computed, nested or attachment property or a property of a nested schema (`member_not_allowed`), or more than 100,000 values (`too_many_values`); a rule never does, so a filled value that fails one is stored and errored. The dry run counts the dumps a fill gives its value in `filled`. The type changes to or from text, the fills of a text property and the moves of one transaction write at most 300,000 values together, so that the search index stays quick to update; the change that goes over is `too_many_values`, and fits in a transaction of its own.

`QUERY /projects/{p}/schemas` with `"counts": true` gives each schema `dumps` (those not deleted) and `last_number` (the highest number given in it: its keys run from `KEY-1` to `KEY-<last_number>`), and the answer `count` (the schemas not removed), all as of the read.

`GET /projects/{p}/schemas/{s}?include=issues` gives each live property of the schema, nested ones too, `issues`: what is wrong with its values over the schema's live dumps now. `errored` is how many dumps have it errored on a holder that shows (the dump, or a nested object it shows: what `issues has errored` finds), with `reasons` counting those dumps by reason code (`{"required_missing": 1}`); `recalculating` is how many have it recalculating. Above 10,000 live dumps each property has `checked: false` and no numbers. A schema list never computes them.

`?include=used_by` (also `include=issues,used_by`) gives each live property `used_by`: what reads it, before you change or remove it. Each entry is a live property of the project whose formula (`"in": "formula"`) or one of whose rules (`"in": "rule"`) reads this one, directly or through a reference or a nested object, every step of the path counting: `supplier.rate` is listed under `supplier` and under `rate`. `schema` is the reader's dump schema key, `path` the nested properties down to the reader's own schema (absent for a top-level one), `property` the reader. A property's own rules are left out, and saved views are not listed. An empty list means nothing reads it; a schema list never computes it.

## 8. Saved views

A saved view is a named filter of one schema: a `query` (the `where`, `sort` and `select` of the dumps query, in the same JSON) and a `kind` with its `layout` (how an app draws it: `table`, `board`, `timeline`, `calendar` or `map`). Views are presentation: they are not in history and have no transaction. A view is either shared with the project (everyone in it runs it; only a Project Developer or Administrator saves it) or personal (only its owner sees it, whatever the tier). An agent's personal views are its own, not its person's. A schema holds at most 50 shared views, and each account at most 50 personal ones (`view_limit_reached`).

Save a personal view (`"shared": true` makes one everyone sees). The query is checked on save against the schema as it is now, with the codes of the dumps query and pointers under `/query`:

```http 201 VIEW=id
POST /projects/$PROJECT/views
Authorization: Bearer $TOKEN
Content-Type: application/json

{"schema": "$SCHEMA", "name": "Big ones", "kind": "table", "shared": false,
 "query": {"select": ["$TITLE", "$POINTS"],
           "where": {"property": "$POINTS", "op": "gte", "value": 2},
           "sort": [{"property": "$POINTS", "direction": "desc"}]}}
```

```response
{"id": "...", "schema": "$SCHEMA", "name": "Big ones", "kind": "table", "shared": false, "revision": 1}
```

A layout names each property by identifier, or a property of a nested object by its path, as `select` does (`prp_31.prp_36`: a map of the geo property `prp_36` of the nested object `prp_31` holds). The path goes only through nested properties without `many`, so a dump has one value there; a path through a list or a reference is `view_setting_invalid`.

A `timeline` or `map` layout may set `color_by`: the identifier of a live single-select property of the view's schema whose option colors the bars or features (`view_setting_invalid` at `/layout/color_by` otherwise, with the fitting properties in `expected.allowed`).

A `board` layout groups by `group_by`: a single-select or a multi-select (a lane per option; `lanes` and `hidden` name options, `opt_N`), or a person or a reference without `many` (a lane per value in use; `lanes` and `hidden` name people of the project by `usr_N`, or dumps of the reference's target type by key, at most 100 distinct entries together; an entry in both counts once). `empty_lane` (default `true`) is the lane of dumps without a value. `rows_by`, optional, is another single-select whose options are swimlanes. A `calendar` layout may set `span`: `month` (the default) or `week`. Every entry is checked on save against the project as it is now (`view_setting_invalid` at its pointer, such as `/layout/lanes/2`); an account that is not a person of the project is refused alike, whatever it is. An entry that goes stale later (a person who left, a dump moved to another type, an option removed) stays in the view and is ignored, but is refused when you send it again: leave it out. Reads answer a reference board's keys as the dumps' current keys.

List the views of a schema. The shared ones come first, then your own, each in order; there are no pages. Leave `?schema=` out for the views of every schema.

```http 200
GET /projects/$PROJECT/views?schema=$SCHEMA
Authorization: Bearer $TOKEN
```

```response
{"views": [{"id": "$VIEW", "name": "Big ones", "shared": false, "revision": 1}]}
```

Run a view with the dumps query: `view` takes the place of `schema`, `select` and `sort` (sending one of them with `view` is `member_not_allowed`). The answer is what that schema, select, where and sort return.

```http 200
QUERY /projects/$PROJECT/dumps
Authorization: Bearer $TOKEN
Content-Type: application/json

{"view": "$VIEW"}
```

```response
{"transaction": 4, "dumps": [
  {"key": "$DUMP", "schema": "$SCHEMA", "values": {"$TITLE": "Write the guide", "$POINTS": 8}},
  {"key": "...", "schema": "$SCHEMA", "values": {"$TITLE": "Celebrate", "$POINTS": 2}}]}
```

A `where` sent with `view` narrows the view's (both must hold). `limit`, `transaction`, `at` and `include` work as usual, and the `cursor` pages as before, sent alone: it carries the query the view stood for, so saving the view again meanwhile does not change the pages.

```http 200
QUERY /projects/$PROJECT/dumps
Authorization: Bearer $TOKEN
Content-Type: application/json

{"view": "$VIEW", "where": {"property": "$POINTS", "op": "gte", "value": 5}}
```

```response
{"transaction": 4, "dumps": [{"key": "$DUMP", "values": {"$POINTS": 8}}]}
```

A view that is not yours (another account's personal view), that does not exist, or whose schema was removed is `view_not_found` at `/view`. A view whose `where` names a property removed since is rejected with the query's own code (`property_unknown`) at a pointer under `/view`. Change a view with `PATCH /projects/{p}/views/{v}` and its `revision` (`view_changed` when it was saved since), and remove it with `DELETE`; the OpenAPI description lists every member. The list, a read and the answer of a create or a change carry `actors`, which names `saved_by`.

A shared view keeps a change log: `GET /projects/{p}/views/{v}/history` lists, newest first, each save that changed the query or layout (`saved`), only the name (`renamed`) or brought back an earlier version (`restored`), with `by`, `at` and the view `before` the change. At most 100 entries are kept per view. Your personal views keep none. Who may change the view brings an entry's `before` back with `POST /projects/{p}/views/{v}/history/{e}/restore` and `{"revision": N}`, checked as a `PATCH` is (a person or reference board's lanes that went stale since are dropped first); an entry that is not that view's, or was pruned, is `view_event_not_found`.

## 9. Search

`QUERY /projects/{p}/search` finds dumps by the words in their text: the current plain-text and rich-text values of live dumps, their nested objects' included. Every word of `q` must be in one value, the last as the start of a word, ignoring letter case; punctuation separates words. `q` needs at least 2 characters of word, and holds at most 8 words and 200 characters (`search_text_invalid` otherwise). `schemas` narrows it to some dump schemas, by key. A page holds `limit` results (20 by default, at most 50), best first; send the `cursor` alone for the next.

Each result is a dump's key, its schema's key and up to 3 matching values: the `property`, a plain-text snippet of at most 160 characters (`text`, never HTML; an ellipsis where it is cut) and `marks`, the `[start, end)` offsets in characters of the matched words. A `q` that is exactly a dump's key answers that dump first. Only the first 65,536 characters of a value are searched. Search reads the project as it is now: `transaction` and `at` are refused (`member_not_allowed`), and a later page reads the project as it is then.

```http 200
QUERY /projects/$PROJECT/search
Authorization: Bearer $TOKEN
Content-Type: application/json

{"q": "celeb"}
```

```response
{"transaction": 4, "results": [
  {"dump": "...", "schema": "$SCHEMA", "matches": [{"property": "$TITLE", "text": "Celebrate", "marks": [[0, 9]]}]}]}
```

## 10. History and who acted

Each dump of a page of the dumps query (section 5), and the dump of `GET /projects/{p}/dumps/{d}`, has `changed`: the latest transaction a caller sent that touched it (`transaction`, `at`), as of the read. A recalculation is background work and never counts. Its `by` is an account id and a key of the answer's `actors`, which describes each account once: `{"account": "agt_12", "kind": "user_agent", "owner": {"kind": "human", "account": "usr_3", "name": "Hans Pannekoek"}}`. `kind` is `human`, `user_agent`, `organization_agent` or `system`. A User Agent's `name` goes to its owner and to the agent itself only; for everyone else it is its owner's agent. The history (`QUERY /projects/{p}/transactions`) gives each transaction `by` (its `account`, or `system` for background work) and the page `actors` the same way. Each of its `schemas` and `properties` entries has `kind` (`added`, `removed`, `restored` or `changed`) and `fields`, what the change changed: `[{field, before, after}]`, each value as a schema read shows it (a formula as its text, a target by its key); an option the transaction wrote is `{field: "option", option, before, after}`, a move `{field: "order"}`. An entry whose fields pass 8 KB (8,192 bytes) loses their values from the last one backward, each marked `omitted: true`. Account ids (`account`, `by`) are never hidden, only names.

Version numbers come from the history. A schema read's `version` is 1 when the schema was created and one more per transaction that changed it or anything inside it (properties, options, nested schemas, a removal or a restore): the number of transactions the history's `schema` filter finds. Each `schemas` and `properties` entry of the history has the `version` its transaction made, and the dry run's `versions` the one a write would make. A read of one dump (`GET /projects/{p}/dumps/{d}`) has `version`, the number of entries its history (`dump` filter) lists: its creation is 1, a move counts, a recalculation never does; and `created`, the transaction that made it. With `schema`, `"include_dumps": true` adds the changes of the dumps that were in it at the time; a moved dump's changes follow it from the move on.

### Presence is for people

`POST /projects/{p}/presence` is the heartbeat the app sends while a person has a project page open. You may call it, and you get the same answer a person gets (the project's latest `transaction`, `by`, `recalculating`, and who else is `present`), but your call is not recorded: an agent shows in other people's `present` for a few minutes after it writes a transaction, never by calling this. To follow a project's changes, read the transactions since the one you know (`QUERY /projects/{p}/transactions` with `since`). The `transaction` it answers is not a `base`: a write sends the transaction its own read was made at.

## 11. Rejections

A request that is not carried out gets a response with the content type `application/problem+json`: `type` (the address of a page about that kind of rejection), `status`, `title`, `detail` (for people), `request_id` (quote it when you ask for help), and `errors`: **every** problem of the stage the request reached, each with a stable `code`, usually a `pointer` into your body and sometimes `expected`, `actual` and `next`. Decide on `errors[].code`, never on the text. The kinds, their statuses and every code are described at https://eu.brndmp.com/problems/.

```http 422
POST /projects/$PROJECT/transactions
Authorization: Bearer $TOKEN
Idempotency-Key: guide-unknown-ref
Content-Type: application/json

{"base": 4, "operations": [{"op": "dump.update", "dump": "$nope", "set": {}}]}
```

```response
{"type": "...", "status": 422, "title": "The request cannot be applied", "request_id": "...",
 "errors": [{"code": "ref_unknown", "pointer": "/operations/0/dump", "expected": {"type": "dump"}, "actual": "$nope"}]}
```

Problems are found in stages (sign-in, the request's shape, access, then content), and a stage reports all its problems at once, so fix everything listed and send again. `next` suggests what to do (`sign_in`, `rebase`, `force`, `split`, ...). A `429` (`rate_limited`) carries `Retry-After`; `busy` means nothing was changed and the same request may be sent again. Anything with `status` 5xx: send the same request again with the same retry key.

```http 400
POST /projects/$PROJECT/transactions
Authorization: Bearer $TOKEN
Content-Type: application/json

{"base": 4, "operations": []}
```

```response
{"status": 400, "errors": [{"code": "retry_key_missing", "header": "Idempotency-Key"}]}
```

## 12. Limits

These are the values the server enforces now. They are filled in from the constants in `backend/internal/limits` when the server starts, so they cannot drift from the code.

| Limit | Value | What it bounds |
|---|---|---|
| `OperationsPerTransaction` | 500 | operations in one transaction (too_many_operations) |
| `RequestBytes` | 5 MB (5,242,880 bytes) | one request body (request_too_large) |
| `TextValueBytes` | 1 MB (1,048,576 bytes) | one text value (value_too_large) |
| `GeoVertices` | 1,000 | positions in one geo value (value_not_representable) |
| `GeoDecimals` | 7 | decimals a geo coordinate is rounded to |
| `JSONValues` | 250,000 | JSON values in one request body, at every depth |
| `JSONDepth` | 64 | nesting of arrays and objects in a request body |
| `LocalNameBytes` | 64 bytes | a local name (ref) in a transaction |
| `ContentNameRunes` | 200 characters | the name of a schema or property, the label of an option |
| `DescriptionRunes` | 2,000 characters | the description of a schema or property |
| `GroupNameRunes` | 100 characters | the group name of a property |
| `NameRunes` | 200 characters | the name of an organization or project |
| `ValuesPerTypeChange` | 100,000 | values one type change may migrate, or one fill write (too_many_values) |
| `ConvertibleTextRunes` | 64 characters | the longest text a type change reads as a number, date, boolean or option label |
| `ValuesPerMove` | 10,000 | values and list items one move of a dump may write (too_many_values) |
| `TextValuesPerTransaction` | 300,000 | text values the type changes to or from text, fills of a text property and moves of one transaction may write together (too_many_values) |
| `PreviewDumps` | 1,750 | dumps the schemas of a dry run's changed properties may hold for it to count statuses (checked: false) |
| `PreviewTypeChangeValues` | 20,000 | values a dry run may rewrite and fill, and statuses it may mark, all together, for it to count statuses (checked: false) |
| `PreviewLockHold` | 2 seconds | how long a dry run may hold the project's lock settling statuses (checked: false) |
| `PreviewDescriptionBytes` | 64 KB (65,536 bytes) | a dry run's descriptions together; above it the last ones lose their text (omitted: true) |
| `IssueCountDumps` | 10,000 | live dumps a schema may hold for schemas.get with include=issues to count its issues (checked: false) |
| `SelectionDepth` | 4 | steps in one path (path_too_deep) |
| `DefaultPageSize` | 50 | dumps in a page when you ask for no size |
| `MaxPageSize` | 500 | dumps in the largest page |
| `ReferencedSectionSize` | 2,000 | dumps in the referenced section of one answer |
| `LinkedFromPage` | 25 | dumps the linked-from read of one dump lists (more: true above it) |
| `ReadBytes` | 32 MB (33,554,432 bytes) | dumps' contents one read may load; a filter, sort or aggregation loads every dump of the schema (query_too_large) |
| `FilterConditions` | 200 | nodes in a where tree (query_too_large) |
| `FilterDepth` | 16 | nesting of a where tree (query_too_large) |
| `FilterListValues` | 1,000 | values in one condition's list (query_too_large) |
| `SortEntries` | 8 | entries in a sort (query_too_large) |
| `SkippedItems` | 100 | dumps listed by name in skipped |
| `SearchMinChars` | 2 characters | the fewest characters the words of a search's q hold together (search_text_invalid) |
| `SearchWords` | 8 | words in a search's q (search_text_invalid) |
| `SearchQueryRunes` | 200 characters | a search's q (search_text_invalid) |
| `SearchDefaultResults` | 20 | results in a page of a search when you ask for no size |
| `SearchMaxResults` | 50 | results in the largest page of a search |
| `SearchMatchesPerResult` | 3 | matching values a search shows per dump |
| `SearchSnippetRunes` | 160 characters | the snippet of a matching value |
| `SearchValueRunes` | 65,536 characters | the start of a text value that search reads; words after it are not found |
| `SharedViewsPerSchema` | 50 | shared saved views of one dump schema (view_limit_reached) |
| `ViewsPerSchemaPerAccount` | 50 | personal saved views of one dump schema, per account (view_limit_reached) |
| `ViewBoardLanes` | 100 | distinct entries of lanes and hidden together on a board grouped by a person or a reference (one in both counts once) |
| `ViewEventsPerView` | 100 | entries kept in a shared view's change log; the oldest go first |
| `RulesPerProperty` | 20 | validation rules on one property (too_many_rules) |
| `RuleMessageRunes` | 200 characters | the message of a validation rule |
| `FormulaObjectsRead` | 10,000 | dumps and nested objects one formula or rule may read (formula_error otherwise) |
| `ConflictCurrentMaxBytes` | 10 KB (10,240 bytes) | a text or geometry above this size is left out of a conflict (current_omitted) |
| `ChangeDetailBytes` | 8 KB (8,192 bytes) | the fields of one schema or property entry of the history; above it they lose their values from the last one backward (omitted) |
| `RetryKeyBytes` | 255 bytes | a retry key (the Idempotency-Key header) |
| `RetryKeyRetention` | 1 day | how long the answer to a retry key is kept |
| `ReadsPerMinute` | 600 | reads per minute, per account (rate_limited) |
| `WritesPerMinute` | 120 | writes per minute, per account (rate_limited) |
| `SignInsPerAddressPerMinute` | 60 | requests to the token endpoint and client registrations per minute, per client address |
| `AgentTokenLifetime` | 1 hour | how long an access token from OAuth is valid; the client refreshes it |
| `SessionsPerGrant` | 5 | live access tokens per connection; a new one ends the oldest |
| `OAuthGrantIdle` | 90 days | how long a connection or a token from the agent's page may go unused before it ends |
| `OAuthGrantsPerAgent` | 20 | connections and tokens of one agent together (too_many_connections) |
| `AgentTokensPerAgent` | 5 | tokens from the agent's page per agent (too_many_tokens) |

Writes and reads are counted separately per account. A body over the size limit is refused before it is read (`request_too_large`, 413), and so is a transaction with too many operations (`too_many_operations`, with `next: split`).

## 13. Every operation

Every operation of the API, by group, with its name, method and path, and what it is for. The full description of each (its input, its output, who may call it and every code it can reject with) is in https://eu.brndmp.com/openapi.json. `https://eu.brndmp.com/openapi.json?operation=<name>` answers one operation, and `https://eu.brndmp.com/openapi.json?tag=<tag>` one group, each as a complete OpenAPI document. A QUERY has a POST alias at the same path with `/query` appended, for clients that cannot send the QUERY method; the list does not repeat it. Over MCP the tool's name is the operation's name with `.` and `-` as `_`.

### authorization-requests

The consent page of an OAuth connection: a person reads the request, then approves it for one agent or cancels it. For people in the app; an agent never calls these, its client does OAuth itself.

[The operations of `authorization-requests` as an OpenAPI document](https://eu.brndmp.com/openapi.json?tag=authorization-requests)

- `authorization-requests.approve` POST /authorization-requests/approvals: Approve an OAuth authorization request for one of your User Agents, or an Organization Agent you manage. People only.
- `authorization-requests.cancel` POST /authorization-requests/cancellations: Cancel an OAuth authorization request. People only.
- `authorization-requests.query` QUERY /authorization-requests: Read an OAuth authorization request: the client, where it redirects, and the agents it may act as. People only.

### capabilities

What the caller may do now, about its own account and in each organization, so a client can show or hide actions without trying them. Per project it is GET /projects/{p}/capabilities.

[The operations of `capabilities` as an OpenAPI document](https://eu.brndmp.com/openapi.json?tag=capabilities)

- `capabilities.get` GET /capabilities: What the caller may do now: about its own account, and in each organization it is in. GET /projects/{p}/capabilities says it per project.

### dumps

Read the dumps (the records) of a project: one by key, the dumps that link to one, or a QUERY of a schema's dumps with chosen properties, filters and sorting, now or as of a transaction. Writes go through transactions.

[The operations of `dumps` as an OpenAPI document](https://eu.brndmp.com/openapi.json?tag=dumps)

- `dumps.get` GET /projects/{p}/dumps/{d}: One dump of a project, now or as of a transaction.
- `dumps.linked-from` GET /projects/{p}/dumps/{d}/linked-from: The dumps that link to one dump, now or as of a transaction.
- `dumps.query` QUERY /projects/{p}/dumps: Read the dumps of a schema: chosen properties, through references, a page at a time, as of a transaction.

### me

The signed-in caller's own account: who it is, its preferences, password and authenticator, its invites and ownership transfers, and a person's User Agents with their connections, delegations and tokens. An agent uses GET /me to learn who it is; the rest is mostly for people.

[The operations of `me` as an OpenAPI document](https://eu.brndmp.com/openapi.json?tag=me)

- `me.agent-tokens.create` POST /me/agent-tokens: Make a token for a client that cannot sign in with OAuth, such as the Copilot cloud agent, which sends only static headers. People only.
- `me.agents.connections.delete` DELETE /me/agents/{a}/connections/{c}: Disconnect a client from one of your User Agents. People only.
- `me.agents.connections.list` GET /me/agents/{a}/connections: The clients connected as one of your User Agents: MCP clients that signed in with OAuth. People only.
- `me.agents.create` POST /me/agents: Create a User Agent. People only.
- `me.agents.delegations.create` POST /me/agents/{a}/delegations: Delegate to one of your User Agents in an organization or on a project, or change what it holds there. People only.
- `me.agents.delegations.delete` DELETE /me/agents/{a}/delegations/{scope}: Take back what you delegated to one of your User Agents in an organization or on a project. People only.
- `me.agents.delegations.list` GET /me/agents/{a}/delegations: What you delegated to one of your User Agents, per organization and per project. People only.
- `me.agents.get` GET /me/agents/{a}: One of your User Agents. People only.
- `me.agents.list` GET /me/agents: Your User Agents. People only.
- `me.agents.update` PATCH /me/agents/{a}: Rename, describe, disable or enable one of your User Agents. People only.
- `me.authenticator.confirm` POST /me/authenticator/confirmation: Switch the authenticator on with a code from it, and get the recovery codes. People only.
- `me.authenticator.create` POST /me/authenticator: Start setting up an authenticator app (2FA). People only.
- `me.authenticator.delete` DELETE /me/authenticator: Switch the authenticator off. People only.
- `me.consents.create` POST /me/consents: Agree to the current terms of use and privacy statement. People only.
- `me.get` GET /me: Who the caller is, and the organizations it is in.
- `me.invites.accept` POST /me/invites/{i}/accept: Accept an invite addressed to you. Humans only. People only.
- `me.invites.decline` POST /me/invites/{i}/decline: Decline an invite addressed to you. Humans only. People only.
- `me.invites.list` GET /me/invites: The signed-in person's pending invites, to organizations and to projects.
- `me.invites.query` QUERY /me/invites: A page of the signed-in person's pending invites.
- `me.ownership-transfers.accept` POST /me/ownership-transfers/{t}/accept: Accept an ownership transfer to you: become the organization's Owner. Humans only. People only.
- `me.ownership-transfers.decline` POST /me/ownership-transfers/{t}/decline: Decline an ownership transfer to you. Humans only. People only.
- `me.ownership-transfers.list` GET /me/ownership-transfers: The pending ownership transfers to the signed-in person. Humans only. People only.
- `me.password.update` PATCH /me/password: Change your password. People only.
- `me.recovery-codes.create` POST /me/recovery-codes: Make a new set of recovery codes. People only.
- `me.sessions.delete` DELETE /me/sessions: Sign out your other sessions. People only.
- `me.update` PATCH /me: Change your name and preferences. People only.

### openapi

This document, whole or in parts (operation=, tag=).

[The operations of `openapi` as an OpenAPI document](https://eu.brndmp.com/openapi.json?tag=openapi)

- `openapi.get` GET /openapi.json: This document: every operation of the API. No sign-in needed.

### organizations

An organization and its administration: members and their privileges, invites, Organization Agents, projects, ownership and the event log. For the Owner and Organization Administrators; an agent working in a project rarely needs it.

[The operations of `organizations` as an OpenAPI document](https://eu.brndmp.com/openapi.json?tag=organizations)

- `organizations.agents.connections.delete` DELETE /organizations/{o}/agents/{a}/connections/{c}: Disconnect a client from an Organization Agent. People only.
- `organizations.agents.connections.list` GET /organizations/{o}/agents/{a}/connections: The clients connected as an Organization Agent, with who approved each. People only.
- `organizations.agents.create` POST /organizations/{o}/agents: Create an Organization Agent. People only.
- `organizations.agents.get` GET /organizations/{o}/agents/{a}: One Organization Agent.
- `organizations.agents.list` GET /organizations/{o}/agents: The Organization Agents of an organization, and what the caller may do to each.
- `organizations.agents.update` PATCH /organizations/{o}/agents/{a}: Rename, describe, disable or enable an Organization Agent.
- `organizations.events.list` GET /organizations/{o}/events: What happened to the organization.
- `organizations.events.query` QUERY /organizations/{o}/events: A page of what happened to the organization.
- `organizations.get` GET /organizations/{o}: An organization: its name, its Owner, how many members it has, and the caller's privilege there.
- `organizations.invites.create` POST /organizations/{o}/invites: Invite a person to the organization by email address.
- `organizations.invites.delete` DELETE /organizations/{o}/invites/{i}: Withdraw a pending invite to the organization.
- `organizations.invites.list` GET /organizations/{o}/invites: The organization's pending invites.
- `organizations.invites.query` QUERY /organizations/{o}/invites: A page of the organization's pending invites.
- `organizations.members.delete` DELETE /organizations/{o}/members/{account}: Remove a member from an organization, or leave it.
- `organizations.members.list` GET /organizations/{o}/members: The members of an organization, with their privileges and what the caller may do to each.
- `organizations.members.query` QUERY /organizations/{o}/members: A page of the members of an organization.
- `organizations.members.update` PATCH /organizations/{o}/members/{account}: Promote a member to Organization Administrator, or demote an administrator to member. Only the Owner.
- `organizations.ownership.cancel` DELETE /organizations/{o}/ownership: Cancel the pending ownership transfer. Only the Owner, in person. People only.
- `organizations.ownership.preview` GET /organizations/{o}/ownership/preview: What an ownership transfer would change for the Owner now. Only the Owner, in person. People only.
- `organizations.ownership.start` POST /organizations/{o}/ownership: Start transferring ownership of an organization to another person who is a member. Only the Owner, in person. People only.
- `organizations.projects.create` POST /organizations/{o}/projects: Create a project in the organization. The creator becomes its Project Administrator.
- `organizations.projects.list` GET /organizations/{o}/projects: The organization's projects that the caller may open.
- `organizations.projects.query` QUERY /organizations/{o}/projects: A page of the organization's projects that the caller may open.
- `organizations.update` PATCH /organizations/{o}: Rename an organization. Only the Owner.

### password-resets

Choose a new password with a code sent to the address. For people, without signing in.

[The operations of `password-resets` as an OpenAPI document](https://eu.brndmp.com/openapi.json?tag=password-resets)

- `password-resets.confirm` POST /password-resets/confirmation: Choose a new password with the code sent to the address. No sign-in needed.
- `password-resets.create` POST /password-resets: Ask for a code to choose a new password. No sign-in needed.

### presence

The heartbeat of a project page in the app: who else is looking, and the project's latest transaction. For people.

[The operations of `presence` as an OpenAPI document](https://eu.brndmp.com/openapi.json?tag=presence)

- `presence.heartbeat` POST /projects/{p}/presence: The heartbeat of a project page, for people: who else is here, and the project's latest transaction.

### projects

A project and who works in it: its name and description, personal grants, group invites, invites, people and per-project capabilities. An agent reads GET /projects/{p} first: its description is the instruction of the people who own the project.

[The operations of `projects` as an OpenAPI document](https://eu.brndmp.com/openapi.json?tag=projects)

- `projects.capabilities.get` GET /projects/{p}/capabilities: What the caller may do on a project now.
- `projects.delete` DELETE /projects/{p}: Delete a project. Only the Owner.
- `projects.get` GET /projects/{p}: A project: its name, its description (the instruction of the people who own it: read it before you write), its organization, its group invites, and the caller's tier on it.
- `projects.grants.create` POST /projects/{p}/grants: Grant an Organization Agent a tier on the project, by its identifier. Active at once.
- `projects.grants.delete` DELETE /projects/{p}/grants/{account}: Remove an account's personal grant, or leave the project.
- `projects.grants.list` GET /projects/{p}/grants: The personal grants on a project.
- `projects.grants.query` QUERY /projects/{p}/grants: A page of the personal grants on a project.
- `projects.grants.update` PATCH /projects/{p}/grants/{account}: Promote or demote an account's personal grant.
- `projects.group-invites.get` GET /projects/{p}/group-invites: The project's two group invites: the tier of every human member of the organization, and of every Organization Agent.
- `projects.group-invites.update` PATCH /projects/{p}/group-invites: Set the project's group invites. Only the Owner.
- `projects.invites.create` POST /projects/{p}/invites: Invite a person to the project by email address.
- `projects.invites.delete` DELETE /projects/{p}/invites/{i}: Withdraw a pending invite to the project.
- `projects.invites.list` GET /projects/{p}/invites: The project's pending invites.
- `projects.invites.query` QUERY /projects/{p}/invites: A page of the project's pending invites.
- `projects.list` GET /projects: Every project the caller may open, in any organization.
- `projects.people.list` GET /projects/{p}/people: The people of a project.
- `projects.people.query` QUERY /projects/{p}/people: Search the people of a project, or resolve identifiers to names.
- `projects.query` QUERY /projects: A page of the projects the caller may open, in any organization.
- `projects.update` PATCH /projects/{p}: Change a project's name and description. Project Administrators and the Owner.

### registrations

Register a person with an email address and a password, confirmed with a code sent there. For people, without signing in.

[The operations of `registrations` as an OpenAPI document](https://eu.brndmp.com/openapi.json?tag=registrations)

- `registrations.confirm` POST /registrations/confirmation: Confirm a registration with the code sent to its address: make the account and sign in. No sign-in needed.
- `registrations.create` POST /registrations: Register a person with an email address and a password. No sign-in needed.
- `registrations.resend` POST /registrations/code: Send a registration's code again. No sign-in needed.

### schemas

Read the dump schemas of a project: their properties, types, units and descriptions, now or as of a transaction. Read them before writing a value; changes to schemas go through transactions.

[The operations of `schemas` as an OpenAPI document](https://eu.brndmp.com/openapi.json?tag=schemas)

- `schemas.get` GET /projects/{p}/schemas/{s}: One dump schema of a project, whole, with the description of the schema and of every property: the project's instructions, to read before you write.
- `schemas.list` GET /projects/{p}/schemas: The live dump schemas of a project, each whole, with the description of every schema and property: the project's instructions, to read before you write.
- `schemas.query` QUERY /projects/{p}/schemas: The dump schemas of a project, as of a transaction, with removed ones if asked.

### search

Find the dumps of a project by the words in their text values, when the key or a filter is not known.

[The operations of `search` as an OpenAPI document](https://eu.brndmp.com/openapi.json?tag=search)

- `search.query` QUERY /projects/{p}/search: Find the dumps of a project by the words in their text.

### sessions

Sign a person in and out of the app with a session cookie. Agents use a bearer token instead.

[The operations of `sessions` as an OpenAPI document](https://eu.brndmp.com/openapi.json?tag=sessions)

- `sessions.create` POST /sessions: Sign a person in with their email address and password: start a session cookie. No sign-in needed.
- `sessions.delete` DELETE /sessions: Sign out: end the session and clear its cookie. No sign-in needed.

### transactions

Every write to a project's content (dumps and schemas): a list of operations applied all together or not at all, a preview that tries them without writing, and the history of what changed. Preview first, then write with a base and an Idempotency-Key.

[The operations of `transactions` as an OpenAPI document](https://eu.brndmp.com/openapi.json?tag=transactions)

- `transactions.create` POST /projects/{p}/transactions: Write to a project: a list of operations, applied all together or not at all, on base, the transaction your reads reflected. Needs a retry key: the Idempotency-Key header, over MCP the argument idempotency_key.
- `transactions.list` GET /projects/{p}/transactions: The latest transactions of a project, with what they changed.
- `transactions.preview` POST /projects/{p}/transactions/preview: Try a transaction without writing it, with the same body as the write. Read its descriptions first: the project's instructions for every schema and property it touches. Then what it would do, or how it would be refused.
- `transactions.query` QUERY /projects/{p}/transactions: The transactions since a transaction, newest first, narrowed to a dump, property, schema or account.

### views

Saved views of a dump schema: a named query with a layout (table, board, timeline, calendar, map), their change log and restoring an earlier version.

[The operations of `views` as an OpenAPI document](https://eu.brndmp.com/openapi.json?tag=views)

- `views.create` POST /projects/{p}/views: Save a view of a dump schema.
- `views.delete` DELETE /projects/{p}/views/{v}: Delete a saved view.
- `views.get` GET /projects/{p}/views/{v}: One saved view.
- `views.history` GET /projects/{p}/views/{v}/history: The change log of a saved view.
- `views.list` GET /projects/{p}/views: The saved views of a project, or of one dump schema.
- `views.query` QUERY /projects/{p}/views: The saved views of a project, or of one dump schema.
- `views.restore` POST /projects/{p}/views/{v}/history/{e}/restore: Save an earlier version of a view again.
- `views.update` PATCH /projects/{p}/views/{v}: Change or move a saved view.

## 14. The unit catalog

Every unit, by its code. Take the code, not the symbol or the name, for a value, a filter and a formula. The table is generated from the server's catalog, so it is what the server accepts.

| Domain | Code | Symbol | Name |
|---|---|---|---|
| `length` | `m` | `m` | meter |
| `length` | `nm` | `nm` | nanometer |
| `length` | `um` | `µm` | micrometer |
| `length` | `mm` | `mm` | millimeter |
| `length` | `cm` | `cm` | centimeter |
| `length` | `dm` | `dm` | decimeter |
| `length` | `km` | `km` | kilometer |
| `length` | `in` | `in` | inch |
| `length` | `ft` | `ft` | foot |
| `length` | `yd` | `yd` | yard |
| `length` | `mi` | `mi` | mile |
| `length` | `nmi` | `nmi` | nautical mile |
| `length` | `angstrom` | `Å` | ångström |
| `length` | `thou` | `thou` | thousandth of an inch |
| `length` | `chain` | `ch` | chain |
| `length` | `fathom` | `ftm` | fathom |
| `length` | `furlong` | `fur` | furlong |
| `length` | `au` | `au` | astronomical unit |
| `length` | `ly` | `ly` | light-year |
| `length` | `pc` | `pc` | parsec |
| `area` | `m2` | `m²` | square meter |
| `area` | `mm2` | `mm²` | square millimeter |
| `area` | `cm2` | `cm²` | square centimeter |
| `area` | `ha` | `ha` | hectare |
| `area` | `km2` | `km²` | square kilometer |
| `area` | `in2` | `in²` | square inch |
| `area` | `ft2` | `ft²` | square foot |
| `area` | `yd2` | `yd²` | square yard |
| `area` | `ac` | `ac` | acre |
| `area` | `mi2` | `mi²` | square mile |
| `area` | `a` | `a` | are |
| `volume` | `m3` | `m³` | cubic meter |
| `volume` | `mm3` | `mm³` | cubic millimeter |
| `volume` | `cm3` | `cm³` | cubic centimeter |
| `volume` | `mL` | `mL` | milliliter |
| `volume` | `cL` | `cL` | centiliter |
| `volume` | `dL` | `dL` | deciliter |
| `volume` | `L` | `L` | liter |
| `volume` | `hL` | `hL` | hectoliter |
| `volume` | `in3` | `in³` | cubic inch |
| `volume` | `ft3` | `ft³` | cubic foot |
| `volume` | `yd3` | `yd³` | cubic yard |
| `volume` | `tsp_us` | `tsp (US)` | US teaspoon |
| `volume` | `tbsp_us` | `tbsp (US)` | US tablespoon |
| `volume` | `floz_us` | `fl oz (US)` | US fluid ounce |
| `volume` | `cup_us` | `cup (US)` | US cup |
| `volume` | `pt_us` | `pt (US)` | US pint |
| `volume` | `qt_us` | `qt (US)` | US quart |
| `volume` | `gal_us` | `gal (US)` | US gallon |
| `volume` | `bbl` | `bbl` | oil barrel (42 US gallons) |
| `volume` | `floz_imp` | `fl oz (imp)` | imperial fluid ounce |
| `volume` | `pt_imp` | `pt (imp)` | imperial pint |
| `volume` | `qt_imp` | `qt (imp)` | imperial quart |
| `volume` | `gal_imp` | `gal (imp)` | imperial gallon |
| `volume` | `uL` | `µL` | microliter |
| `volume` | `dm3` | `dm³` | cubic decimeter |
| `volume` | `tsp_metric` | `tsp (metric)` | metric teaspoon (5 mL) |
| `volume` | `tbsp_metric` | `tbsp (metric)` | metric tablespoon (15 mL) |
| `volume` | `cup_metric` | `cup (metric)` | metric cup (250 mL) |
| `mass` | `kg` | `kg` | kilogram |
| `mass` | `ug` | `µg` | microgram |
| `mass` | `mg` | `mg` | milligram |
| `mass` | `g` | `g` | gram |
| `mass` | `t` | `t` | tonne |
| `mass` | `oz` | `oz` | ounce |
| `mass` | `lb` | `lb` | pound |
| `mass` | `st` | `st` | stone |
| `mass` | `ton_us` | `ton (US)` | short ton (2,000 lb) |
| `mass` | `ton_imp` | `ton (imp)` | long ton (2,240 lb) |
| `mass` | `gr` | `gr` | grain |
| `mass` | `ct` | `ct` | carat |
| `mass` | `ozt` | `oz t` | troy ounce |
| `mass` | `kt` | `kt` | kilotonne |
| `mass` | `Mt` | `Mt` | megatonne |
| `temperature` | `K` | `K` | kelvin |
| `temperature` | `degC` | `°C` | degree Celsius |
| `temperature` | `degF` | `°F` | degree Fahrenheit |
| `temperature` | `degR` | `°R` | degree Rankine |
| `speed` | `m/s` | `m/s` | meter per second |
| `speed` | `km/h` | `km/h` | kilometer per hour |
| `speed` | `mph` | `mph` | mile per hour |
| `speed` | `ft/s` | `ft/s` | foot per second |
| `speed` | `kn` | `kn` | knot |
| `speed` | `km/s` | `km/s` | kilometer per second |
| `speed` | `m/min` | `m/min` | meter per minute |
| `speed` | `ft/min` | `ft/min` | foot per minute |
| `pressure` | `Pa` | `Pa` | pascal |
| `pressure` | `hPa` | `hPa` | hectopascal |
| `pressure` | `kPa` | `kPa` | kilopascal |
| `pressure` | `MPa` | `MPa` | megapascal |
| `pressure` | `mbar` | `mbar` | millibar |
| `pressure` | `bar` | `bar` | bar |
| `pressure` | `atm` | `atm` | standard atmosphere |
| `pressure` | `mmHg` | `mmHg` | millimeter of mercury |
| `pressure` | `psi` | `psi` | pound per square inch |
| `pressure` | `inHg` | `inHg` | inch of mercury |
| `pressure` | `GPa` | `GPa` | gigapascal |
| `pressure` | `kgf/cm2` | `kgf/cm²` | kilogram-force per square centimeter |
| `pressure` | `torr` | `Torr` | torr |
| `pressure` | `ksi` | `ksi` | thousand psi |
| `energy` | `J` | `J` | joule |
| `energy` | `kJ` | `kJ` | kilojoule |
| `energy` | `MJ` | `MJ` | megajoule |
| `energy` | `GJ` | `GJ` | gigajoule |
| `energy` | `Wh` | `Wh` | watt-hour |
| `energy` | `kWh` | `kWh` | kilowatt-hour |
| `energy` | `MWh` | `MWh` | megawatt-hour |
| `energy` | `GWh` | `GWh` | gigawatt-hour |
| `energy` | `cal` | `cal` | calorie (thermochemical) |
| `energy` | `kcal` | `kcal` | kilocalorie |
| `energy` | `BTU` | `BTU` | British thermal unit (IT) |
| `energy` | `mJ` | `mJ` | millijoule |
| `energy` | `TJ` | `TJ` | terajoule |
| `energy` | `TWh` | `TWh` | terawatt-hour |
| `energy` | `eV` | `eV` | electronvolt |
| `energy` | `toe` | `toe` | tonne of oil equivalent |
| `energy` | `ft.lbf` | `ft⋅lbf` | foot-pound |
| `energy` | `MMBtu` | `MMBtu` | million BTU |
| `energy` | `therm_us` | `thm (US)` | US therm |
| `energy` | `therm_ec` | `thm (EC)` | EC therm (100,000 ISO BTU) |
| `power` | `W` | `W` | watt |
| `power` | `mW` | `mW` | milliwatt |
| `power` | `kW` | `kW` | kilowatt |
| `power` | `MW` | `MW` | megawatt |
| `power` | `GW` | `GW` | gigawatt |
| `power` | `PS` | `PS` | metric horsepower |
| `power` | `hp` | `hp` | mechanical horsepower |
| `power` | `BTU/h` | `BTU/h` | BTU per hour |
| `power` | `uW` | `µW` | microwatt |
| `power` | `TW` | `TW` | terawatt |
| `power` | `hp_e` | `hp (E)` | electrical horsepower |
| `power` | `TR` | `TR` | ton of refrigeration (12,000 BTU/h) |
| `force` | `N` | `N` | newton |
| `force` | `kN` | `kN` | kilonewton |
| `force` | `kgf` | `kgf` | kilogram-force |
| `force` | `lbf` | `lbf` | pound-force |
| `force` | `mN` | `mN` | millinewton |
| `force` | `MN` | `MN` | meganewton |
| `force` | `dyn` | `dyn` | dyne |
| `force` | `ozf` | `ozf` | ounce-force |
| `force` | `kip` | `kip` | kip (1,000 lbf) |
| `duration` | `s` | `s` | second |
| `duration` | `ms` | `ms` | millisecond |
| `duration` | `min` | `min` | minute |
| `duration` | `h` | `h` | hour |
| `duration` | `d` | `d` | day |
| `duration` | `wk` | `wk` | week |
| `duration` | `ns` | `ns` | nanosecond |
| `duration` | `us` | `µs` | microsecond |
| `angle` | `deg` | `°` | degree |
| `angle` | `arcmin` | `′` | arcminute |
| `angle` | `arcsec` | `″` | arcsecond |
| `angle` | `grad` | `gon` | gradian |
| `angle` | `rad` | `rad` | radian |
| `angle` | `turn` | `turn` | turn |
| `angle` | `mrad` | `mrad` | milliradian |
| `frequency` | `Hz` | `Hz` | hertz |
| `frequency` | `kHz` | `kHz` | kilohertz |
| `frequency` | `MHz` | `MHz` | megahertz |
| `frequency` | `GHz` | `GHz` | gigahertz |
| `frequency` | `rpm` | `rpm` | revolution per minute |
| `frequency` | `THz` | `THz` | terahertz |
| `frequency` | `bpm` | `bpm` | beat per minute |
| `data_size` | `B` | `B` | byte |
| `data_size` | `bit` | `bit` | bit |
| `data_size` | `kB` | `kB` | kilobyte |
| `data_size` | `MB` | `MB` | megabyte |
| `data_size` | `GB` | `GB` | gigabyte |
| `data_size` | `TB` | `TB` | terabyte |
| `data_size` | `PB` | `PB` | petabyte |
| `data_size` | `KiB` | `KiB` | kibibyte |
| `data_size` | `MiB` | `MiB` | mebibyte |
| `data_size` | `GiB` | `GiB` | gibibyte |
| `data_size` | `TiB` | `TiB` | tebibyte |
| `data_size` | `PiB` | `PiB` | pebibyte |
| `data_size` | `kbit` | `kbit` | kilobit |
| `data_size` | `Mbit` | `Mbit` | megabit |
| `data_size` | `Gbit` | `Gbit` | gigabit |
| `data_size` | `EB` | `EB` | exabyte |
| `data_size` | `EiB` | `EiB` | exbibyte |
| `data_rate` | `bit/s` | `bit/s` | bit per second |
| `data_rate` | `kbit/s` | `kbit/s` | kilobit per second |
| `data_rate` | `Mbit/s` | `Mbit/s` | megabit per second |
| `data_rate` | `Gbit/s` | `Gbit/s` | gigabit per second |
| `data_rate` | `B/s` | `B/s` | byte per second |
| `data_rate` | `kB/s` | `kB/s` | kilobyte per second |
| `data_rate` | `MB/s` | `MB/s` | megabyte per second |
| `data_rate` | `Tbit/s` | `Tbit/s` | terabit per second |
| `data_rate` | `GB/s` | `GB/s` | gigabyte per second |
| `data_rate` | `KiB/s` | `KiB/s` | kibibyte per second |
| `data_rate` | `MiB/s` | `MiB/s` | mebibyte per second |
| `current` | `A` | `A` | ampere |
| `current` | `mA` | `mA` | milliampere |
| `current` | `uA` | `µA` | microampere |
| `current` | `kA` | `kA` | kiloampere |
| `voltage` | `V` | `V` | volt |
| `voltage` | `mV` | `mV` | millivolt |
| `voltage` | `kV` | `kV` | kilovolt |
| `voltage` | `uV` | `µV` | microvolt |
| `voltage` | `MV` | `MV` | megavolt |
| `charge` | `C` | `C` | coulomb |
| `charge` | `mAh` | `mAh` | milliampere-hour |
| `charge` | `Ah` | `Ah` | ampere-hour |
| `charge` | `uC` | `µC` | microcoulomb |
| `charge` | `mC` | `mC` | millicoulomb |
| `ratio` | `ratio` |  | ratio |
| `ratio` | `percent` | `%` | percent |
| `ratio` | `permille` | `‰` | per mille |
| `ratio` | `ppm` | `ppm` | part per million |
| `ratio` | `ppb` | `ppb` | part per billion |
| `ratio` | `bp` | `bp` | basis point |
| `ratio` | `ppt` | `ppt` | part per trillion |
| `density` | `kg/m3` | `kg/m³` | kilogram per cubic meter |
| `density` | `g/L` | `g/L` | gram per liter |
| `density` | `mg/L` | `mg/L` | milligram per liter |
| `density` | `g/cm3` | `g/cm³` | gram per cubic centimeter |
| `density` | `g/mL` | `g/mL` | gram per milliliter |
| `density` | `kg/L` | `kg/L` | kilogram per liter |
| `density` | `t/m3` | `t/m³` | tonne per cubic meter |
| `density` | `lb/ft3` | `lb/ft³` | pound per cubic foot |
| `density` | `lb/in3` | `lb/in³` | pound per cubic inch |
| `density` | `lb/gal_us` | `lb/gal (US)` | pound per US gallon |
| `flow` | `m3/s` | `m³/s` | cubic meter per second |
| `flow` | `m3/min` | `m³/min` | cubic meter per minute |
| `flow` | `m3/h` | `m³/h` | cubic meter per hour |
| `flow` | `L/s` | `L/s` | liter per second |
| `flow` | `L/min` | `L/min` | liter per minute |
| `flow` | `L/h` | `L/h` | liter per hour |
| `flow` | `mL/min` | `mL/min` | milliliter per minute |
| `flow` | `ft3/s` | `ft³/s` | cubic foot per second |
| `flow` | `ft3/min` | `ft³/min` | cubic foot per minute |
| `flow` | `gal_us/min` | `gal (US)/min` | US gallon per minute |
| `flow` | `gal_imp/min` | `gal (imp)/min` | imperial gallon per minute |
| `flow` | `bbl/d` | `bbl/d` | oil barrel per day |
| `torque` | `N.m` | `N⋅m` | newton-meter |
| `torque` | `mN.m` | `mN⋅m` | millinewton-meter |
| `torque` | `kN.m` | `kN⋅m` | kilonewton-meter |
| `torque` | `kgf.m` | `kgf⋅m` | kilogram-force meter |
| `torque` | `lbf.ft` | `lbf⋅ft` | pound-foot |
| `torque` | `lbf.in` | `lbf⋅in` | pound-inch |
| `torque` | `ozf.in` | `ozf⋅in` | ounce-inch |
| `acceleration` | `m/s2` | `m/s²` | meter per second squared |
| `acceleration` | `cm/s2` | `cm/s²` | centimeter per second squared (gal) |
| `acceleration` | `km/h/s` | `km/h/s` | kilometer per hour per second |
| `acceleration` | `g0` | `g₀` | standard gravity |
| `acceleration` | `ft/s2` | `ft/s²` | foot per second squared |
| `acceleration` | `in/s2` | `in/s²` | inch per second squared |
| `resistance` | `ohm` | `Ω` | ohm |
| `resistance` | `mohm` | `mΩ` | milliohm |
| `resistance` | `kohm` | `kΩ` | kilohm |
| `resistance` | `Mohm` | `MΩ` | megohm |
| `capacitance` | `F` | `F` | farad |
| `capacitance` | `mF` | `mF` | millifarad |
| `capacitance` | `uF` | `µF` | microfarad |
| `capacitance` | `nF` | `nF` | nanofarad |
| `capacitance` | `pF` | `pF` | picofarad |
| `illuminance` | `lx` | `lx` | lux |
| `illuminance` | `klx` | `klx` | kilolux |
| `illuminance` | `fc` | `fc` | foot-candle |
| `amount` | `mol` | `mol` | mole |
| `amount` | `nmol` | `nmol` | nanomole |
| `amount` | `umol` | `µmol` | micromole |
| `amount` | `mmol` | `mmol` | millimole |
| `amount` | `kmol` | `kmol` | kilomole |
