Databases
Structured databases with typed properties, versioned records, and saved views.
Structured databases hold typed records alongside your files. Use them for anything an agent should query rather than read: project trackers, glossaries, decision logs, content calendars.
Schema
A database has typed properties. Supported types are text, number, boolean, date, select, multi_select, url, relation, file_reference, and asset_reference.
Record values are keyed by stable property UUID rather than property name, so renaming a property never breaks API consumers:
References and page bodies
- A
file_referenceis one file UUID or, when the property enables multiple files, an array of UUIDs. - An
asset_referenceidentifies an imported binary attachment. - A record can set
contentFileIdto use a normal Orcha file as its editable page body.
Referenced resources must be active and in the same workspace. Folder-scoped tokens cannot write out-of-scope references, and inaccessible references are redacted from responses.
Views, versions, and retrieval
Databases have saved table views with filters and sorting. Updating a record merges values and saves a version. Records are indexed automatically: search_context results include native record citations linking to /databases/:databaseId?record=:recordId.
Query records with search, sorting, filtering, and pagination (limit up to 200). Filter operators are contains, equals, not_equals, is_empty, and is_not_empty. See the API reference and the MCP database tools.