The version history of ONE row, like a document's: who created it, who changed it last, and every change, newest first. Read from the table's transaction log (nothing extra is stored in the note), so it needs history on for the table.
const url = 'https://example.com/datanotes/operations/row_history/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"table":"example","id":null,"path":null,"limit":null,"since":null,"before":null}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/datanotes/operations/row_history/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "table": "example", "id": null, "path": null, "limit": null, "since": null, "before": null }'The version history of ONE row, like a document’s: who created it, who changed it last, and every change, newest first. Read from the table’s transaction log (nothing extra is stored in the note), so it needs history on for the table.
Name the row by table and id (its system UUID) or path (now, or before it was deleted). The row is followed by its id across renames and moves between tables (move_rows); a row without an id by its path.
created/last_modified: when, by which operation and agent (actor: session, harness, model, tool, auth).createdis null when the oldest versions were vacuumed (history_start.truncated); a row present when its table’s history began shows that version (often CREATE TABLE, no actor).versions:version(oftable),timestamp,operation,change(insert, update, move, delete),source(external= a hand edit: an editor, git, a sync, no agent),actor,migration_id(undo_migration),pathandold_path(rename),from_table(move),changes{column: {before, after}},body_changedandbody_diff(lines removed and added).limit(default 50, max 1000),since/before(ISO date or date-time); passnext_beforeasbeforefor the next, older page.
The whole row as it was at a version: select_rows with version (or timestamp). Every change of a table: table_changes; of the database: list_changes.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Owner only, on reads only (an operation that only reads, tokens/me/, extensions/, the change stream): the request runs with this named token’s permissions and read scope, and the token’s last_seen does not change. A named token sending it gets 403; a request that is not a read gets 400.
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Done.
object
The table the row is in now (or was in last, when deleted).
The row’s system id.
The row’s path now (or its last one).
Whether the row exists now.
Its first version: null when the older versions were vacuumed.
object
The table the row was in.
The table’s version (describe_history; select_rows version reads the table as it was then).
The log’s operation: WRITE, UPDATE, DELETE, MOVE ROWS, MERGE, RESTORE, UNDO, EXTERNAL_EDIT (a hand edit), …
external: changed outside the engine (an editor, git, a sync): no agent is known.
The row’s path after the version (before it, for a delete).
The agent behind the version (absent for hand edits): session, harness, harness_version, model, tool (reported by the agent’s MCP server) and auth (the credential: owner or a token’s name, set by the engine).
object
“harness / model” of the agent.
The operation in the journal (list_migrations, undo_migration).
Its newest version.
object
The table the row was in.
The table’s version (describe_history; select_rows version reads the table as it was then).
The log’s operation: WRITE, UPDATE, DELETE, MOVE ROWS, MERGE, RESTORE, UNDO, EXTERNAL_EDIT (a hand edit), …
external: changed outside the engine (an editor, git, a sync): no agent is known.
The row’s path after the version (before it, for a delete).
The agent behind the version (absent for hand edits): session, harness, harness_version, model, tool (reported by the agent’s MCP server) and auth (the credential: owner or a token’s name, set by the engine).
object
“harness / model” of the agent.
The operation in the journal (list_migrations, undo_migration).
Where the history read starts: the oldest version kept of the oldest table followed; truncated when older versions were vacuumed.
object
Versions matching since / before.
Newest first.
object
The table the row was in.
The table’s version (describe_history; select_rows version reads the table as it was then).
The log’s operation: WRITE, UPDATE, DELETE, MOVE ROWS, MERGE, RESTORE, UNDO, EXTERNAL_EDIT (a hand edit), …
external: changed outside the engine (an editor, git, a sync): no agent is known.
The row’s path after the version (before it, for a delete).
The agent behind the version (absent for hand edits): session, harness, harness_version, model, tool (reported by the agent’s MCP server) and auth (the credential: owner or a token’s name, set by the engine).
object
“harness / model” of the agent.
The operation in the journal (list_migrations, undo_migration).
A rename or move: the path before.
A move from another table (move_rows): the table it came from.
The columns the version changed, {column: {before, after}} (null: no value); an insert lists every column it set.
object
object
The body’s lines removed and added (at most 20 each, each cut at 200 characters; truncated when there were more).
object
Pass as before for the next (older) page; absent on the last page.
Example
{ "created": { "change": "insert", "source": "engine" }, "last_modified": { "change": "insert", "source": "engine" }, "versions": [ { "change": "insert", "source": "engine" } ]}Bad input: the body is not a JSON object, or an argument is unknown, missing or of the wrong type.
object
What went wrong, for a person or an agent.
Example generated
{ "error": "example"}Missing or wrong bearer token.
object
What went wrong, for a person or an agent.
Example generated
{ "error": "example"}A named token whose read patterns do not cover the table, view or note the request names (such as token cook may not read personal.health.weight). Sets it did not name (listings, bases, search, the graph, the change feed) are filtered instead.
object
What went wrong, for a person or an agent.
Example generated
{ "error": "example"}Unknown table, view, migration, note or folder.
object
What went wrong, for a person or an agent.
Example generated
{ "error": "example"}Ambiguous table name: it matches several tables (paths or tables lists them).
object
The tables’ folders the name matches.
The qualified tables the name matches.
Example generated
{ "error": "example", "paths": [ "example" ], "tables": [ "example" ]}Unexpected error.
object
What went wrong, for a person or an agent.
Example generated
{ "error": "example"}