- A record family (family, for short) is a typed set of records with a key and a parent: the record it attaches to, such as a
clientor apolicy. Reference tables and organization-wide (orggrain) families have no parent. - The access plane applies your access rules to each person before any query runs, under the
litposture (Access plane).
/records, with the action ledger at /actions and write operations at /operations/{id}. The source tables the collections are built from are served on the connection, at /connections/{id}/tables (Source tables). A scoped key needs the records: capabilities, or actions:read and actions:write for the action ledger. The book: capabilities keep working as aliases. These routes take the Nexio-* identity headers (Nexio-Act-As, Nexio-Act-As-Email); a request that sends any X-Nexio-* header answers 400 INVALID_ARGUMENT, reason LEGACY_HEADER.
What Records serves is a catalog of collections: accounts, policies, claims, contacts, documents and the rest, each a thing a person opens, lists or counts, at /records/{collection}. GET /records lists every collection the acting seat may read, with the JSON Schema of one row and the operations that serve it.
Behind the catalog is a registry of planes and families:
- A plane is one registered source area of a system of record, such as one schema of its warehouse replica. Each plane has a stable key, for example
bookorrawams_claims. - A family is one named dataset on a plane. It declares its columns and their types, and a serve grain that says how its rows are bounded to a person. A family is addressed as
{plane}/{family}.
How a read works
Every read runs the same five steps:- Caller intent. Your server sends a request with the organization’s API key and, when the read is for a person, the person it acts for (Authority and scope).
- Resolved authority. Nexio resolves that person’s scope before it builds any query. Under the
litposture the scope comes from your system of record’s own access records (Access plane); underdark, before the organization has any access records, a request reads only what the key grants. - Bounded population. The scope becomes predicates on the query, so the population is exactly the rows the person may open. Your filters then narrow it; they can never widen it.
- Bounded read. Nexio reads your warehouse live, at request time, under a statement time budget; many statements also carry a row ceiling.
- Result and evidence. A JSON read carries the rows plus a
sourceblock (which source and connection answered, when the read ran, and the scope and selection the rows were served at). Responses under/recordscarry aNexio-Buildheader when the build is stamped, and reads that needrecords:readcarry aServer-Timingheader. If the answer is partial, unavailable or refused, it says so (Completeness and errors). A few responses omit a block; the list is Which responses carry each block.
Typed, authorized, scoped to a person
- Typed. A collection serves the fields its registry declares, in a fixed shape. Money is exact decimal text, never a float.
- Authorized. A key reaches Records only with the right capability, and the person’s entitlement, derived from your own systems, decides which datasets and fields they may read (Access plane).
- Scoped to a person. A read made for a person is bounded to the rows that person may open. A keyed read of a record outside that scope answers 404, exactly like a key that does not exist.
Collections are the product surface
Every application read is a collection under/records. A connected system type defines its set: registers (paged, filterable lists with totals and facets), keyed reads of one record and its parts, rollups, composite reads that compose many families under one authority in one call, and document content, which fetches a file from the system of record’s own API. The mechanics they share are documented here: Registers and pagination, Completeness and errors and Authority and scope.
Nothing under /records names a source table. The tables a collection is built from are served on the connection, at GET /connections/{id}/tables/{table}, for lineage, operators and proofs. An application reads collections, never the estate. Source tables documents it.
Where the data comes from
- Connected records are not stored in Nexio’s database to serve reads. Reads query your warehouse at request time and are not held to a fixed instant; a few lookups are held in server memory for a short time. Two reads seconds apart can see different data, and so can two statements inside one response when the source changes between them (Completeness and errors). The notes, tasks and statuses an application records are the exception: they live in Nexio’s action ledger and are read from there (Writes and the action ledger).
- A connection qualifies when it is an active Snowflake data connection that binds the datasets the system-of-record type requires. With one qualifying connection, reads use it without further input. With several, send
connection_idon every read, or the request answers 400book_connection_ambiguous. With none, reads answer 424SOURCE_UNAVAILABLEandGET /records/seats/currentreportshas_published: false. Nexio configures the connection with you; see Connections.
Vocabulary
Who calls it
A trusted server-side application acting for a person. The application authenticates the person, then calls Nexio with the organization’s key and names the person inNexio-Act-As. Ledger appends are the exception: they need a Nexio-issued application credential (below). The API sends no CORS headers, so browsers cannot call it directly.
A sandbox or test organization key gets 403
CAPABILITY_DENIED, reason SCOPED_KEY_REQUIRED, on every Records route. Keys and capabilities are described on Authentication and access.
Writes
Writes are governed commands (notes, tasks, statuses) recorded in Nexio’s action ledger. Nothing is written back to the system of record today; the commands that would do so answer 403CAPABILITY_DENIED, reason OVERLAY_READ_ONLY. See Writes and the action ledger.
Application records
Data your application keeps for itself, beside the connected records, goes in Application records.Your first read
- Ask Nexio to configure the connection to your warehouse replica, and get a key with
records:read. - Call
GET /records/seats/currentwith the person’s principal and email. Checkdata.has_publishedanddata.scope.refused. - Call
GET /recordsto see the collections the person may read, then read the first page of one, for exampleGET /records/accounts. - Follow
page.nextuntil it isnull.
Next
Source tables
The raw tables behind the collections.
Authority and scope
Read on behalf of a person.
Registers and pagination
Page through a scoped list.
Completeness and errors
Tell every outcome apart.