Skip to main content
A register is a paged, filterable list over one kind of record, sorted and filtered on the server and bounded to the rows the person may open. Where a family read returns one dataset as it is stored, a register composes a list screen: one row per record, with the columns a list needs. Most registers also return the numbers a list screen needs beside the page: a total that matches the filters, facet counts for the filter controls, and sums over the filtered set. Registers are dedicated list collections under /records (for example GET /records/accounts, GET /records/policies and GET /records/tasks), with their register rollups beside them (for example GET /records/accounts/rollups/register). The set of registers is fixed and defined per connected system type, and each register has its own filters, sort keys and page sizes. This page covers the mechanics every register shares.

How a register is read

  1. Send the first request with the filters, the sort, the subject tokens (Authority and scope) and the identity headers. Add include_total=true for a row count and facets= for the facet counts you need.
  2. Nexio resolves the person’s scope, applies it, then applies your filters inside it.
  3. The response carries data (the page), page (the continuation), total and facets when you asked for them, source (who answered, and the scope and selection in source.subject), unreachable and warnings.
  4. Follow page.next to the next page, or send offset to jump to a row number on a register that accepts it.
Every register takes limit, cursor, subject and include_total. limit defaults to 25 on most registers. Each register sets its own maximum page size, and a larger limit is coerced to it with a LIMIT_COERCED entry in warnings. A limit below 1 or not a number answers 400 INVALID_ARGUMENT, with errors naming the parameter.

Two ways to page

  • Cursor. Follow page.next until it is null. This is the right way to read a whole register. On most registers the cursor is a keyset cursor: each page continues after the last row the previous page returned. A register may instead use an offset cursor, which stores the next row number. Each page is a new current read (When the data changes during a walk).
  • Offset (page jump). On a register view that accepts it (GET /records/accounts, GET /records/policies and GET /records/placements document offset), send offset to jump to a row number, for a numbered-page screen. The largest offset is 1,000,000. When you send offset, the response echoes it in page.offset. page.next is still returned and still says whether more rows exist.
Sending both offset and cursor answers 400 INVALID_ARGUMENT, reason INVALID_OFFSET: a cursor already fixes the position. offset on a view whose reader cannot skip exactly answers 400 INVALID_ARGUMENT, reason FILTER_NOT_IN_VIEW.

What a cursor fixes, and what you resend

A cursor is opaque. It carries the continuation position and the filters it fixes. It does not hold later pages to the time of the first page, and it never carries permissions: authority is resolved again on every page. Which filters a cursor fixes differs by register. On most registers the first page’s filters and sort are fixed by the cursor, and sending one of them again with the cursor answers 400 INVALID_ARGUMENT, reason CURSOR_FILTER_MISMATCH. Some registers instead record the filters in the cursor and compare them, so you resend the same values; a different value answers the same refusal. The rule to remember: the identity headers and the subject tokens are never taken from a cursor. Resend them on every page. A cursor records which subject tokens it was issued for, and a page request with different tokens answers 400 INVALID_ARGUMENT, reason CURSOR_SUBJECT_MISMATCH.

Page, totals and facets

  • page.limit is the page size Nexio applied, after any coercion.
  • page.next is null on the last page. An empty data array with a null page.next is a complete, empty answer. page.cursor is the cursor that produced this page, null on the first page. page.prev is null: page back through the cursors you hold.
  • total is sent only when you send include_total=true. total.value counts every row that matches the filters, before paging, and total.exact is false when the count is an estimate. A read that cannot count the whole relation names total in unreachable with reason no_aggregate instead.
  • facets holds only the facets you name in facets=. Each facet is a list of { value, label, parent, count }, where label is the display name of a code and parent the value it rolls up to (an office’s market). The total and the facets are counted over the same authorized base population, the rows the person may read. The total applies every filter. A facet does not always: each register defines its facet filters, and a facet usually leaves out its own dimension, so choosing one value still shows the counts for the others. Read facet counts as “what you would get if you picked this”, not as a breakdown of the total. An owner facet that lists only the busiest owners adds a FACET_TRUNCATED entry to warnings.
  • The register’s other figures, such as the sums over the filtered set and the whole population’s totals, are on its rollup beside the list (for example GET /records/accounts/rollups/register), under the same filters and subject.
  • Money is exact decimal text, for example "48250.00". Parse it with a decimal library. A sum with nothing to add reads null, not 0.
Where a register computes its page and its numbers in one warehouse statement, they describe the same data. Where it uses separate statements, even concurrent ones in the same request, a source change between them can make the numbers and the page disagree.

What complete means for a register

The full outcome model is on Completeness and errors.

Walk a whole register safely

  1. Send the first request with every filter, the sort, the subject tokens and the identity headers.
  2. For each next page, send cursor, the same subject tokens, and only the filters the register’s resend rule says. Never rebuild the filters from the previous page’s rows.
  3. Stop when page.next is null.
  4. On a problem with reason CURSOR_EXPIRED (400 INVALID_ARGUMENT, or 424 SOURCE_UNAVAILABLE when the warehouse read can no longer continue from the cursor), start again from the first page. A current-read cursor has no age limit of its own.
  5. On 424 SOURCE_UNAVAILABLE with reason BUSY, wait retry_after_ms and resend the same page. On other reasons, see Completeness and errors.
The same walk applies to a source table on the connection, GET /connections/{id}/tables/{table} (Source tables), whose cursor records the table and its filters and is followed through page.next. Its refusals are problems, with the same cursor reasons as every Records list: a cursor the read can no longer continue from answers reason CURSOR_EXPIRED (400 INVALID_ARGUMENT, or 424 SOURCE_UNAVAILABLE when the warehouse read can no longer continue from it), and a source that could not answer answers 424 SOURCE_UNAVAILABLE, with retry_after_ms when a retry may succeed. The example walks a whole table: prcode, the code dictionary of the connected system, which is read whole and takes no filter. A walk like this one is for lineage and proofs; an application reads the codes it needs through the codes collection under /records. Replace CONNECTION_ID with one of your connection ids.
The last page of the walk has fewer rows than the limit and a null page.next. Each row is its row_key and its source_columns, every column as text keyed <OBJECT>.<COLUMN>:
200 OK

When the data changes during a walk

No register holds a walk to one instant. Each page reads its sources again at the time of that page’s request, then continues in the same sort order: after the last row the previous page returned, or, on a register with an offset cursor, at the next row number. So a source change during a walk can show up in the pages that follow:
  • A row created, or changed so that it now sorts after the cursor position, can appear on a later page.
  • A row changed so that it sorts before the cursor position can be missed; one that moves from before to after it can appear twice.
  • A row that stops matching the filters, or leaves the person’s scope, is absent from later pages.
  • On a register that pages by row number, a row added or removed before the cursor position shifts every row after it. An unchanged row can then appear twice or be skipped.
  • total, facets and the other numbers are computed again on each page, so they can differ from page to page.
For a consistent count, read the numbers from one page. To pick up changes made during a walk, start a new walk.

Cursor and paging errors

Each is a 400 INVALID_ARGUMENT problem; the reason names the cause.

Next

Completeness and errors

Tell an empty list from an unavailable one.

Source tables

Walk a raw table on the connection.
Last modified on November 27, 2026