Query table rows
List a table’s rows with keyset pagination on an opaque cursor. Without a sort, rows come in DISPLAY order — the user-controlled row position, with the time-ordered record ID as a tiebreak. With one, they come in that column’s value order, and rows with no value for it sort LAST in both directions. Filters are predicates on cell values and compose with either order.
column_ids projects each row’s cells: send the columns the grid will render and the response carries only those. It echoes the projection back, so a column outside it reads as ‘not fetched’ rather than ‘blank’.
A POST because a filter list has no honest query-string encoding. Each cell’s computing flag is derived: stale AND an active run covers that row.
Performance note: an unfiltered sort streams the column’s index. Add a filter and Postgres sorts the matched set instead, so a filter that matches most of a very large table is correspondingly slower.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
Request body for the rows query.
A POST rather than a GET because a filter list has no honest query-string
encoding. column_ids is the projection: send the columns the grid will
actually render and the response carries only those cells.
Project each row's cells to these columns. Omit for every column. The response echoes the projection in column_ids so a client can tell a blank cell from one it did not ask for.
500Opaque cursor from a previous page's next_cursor.
1024Maximum rows per page.
1 <= x <= 100Start the listing this many rows in, rather than at the top: a jump-to-row seek. Mutually exclusive with cursor, which resumes a listing rather than starting one. Postgres walks the skipped rows, so this is for a deliberate jump — keep paging with next_cursor.
x >= 0Hydrate exactly these rows, instead of describing a listing. Mutually exclusive with sorts, where, row_status, offset and cursor — those select rows, and this names them. Pair with /rows/ids/ to fetch an ordering once and then fill in row contents a window at a time, which lets re-sorting or re-filtering reuse cells the client already holds.
1000Restrict to rows whose CELLS are in a given state: errored (any cell failed to compute) or fully_computed (none did). ANDed with where. This is a question about computation, which the filter operators — all of which test one column's value — cannot ask.
errored, fully_computed Order by these columns, in priority order, instead of the display order. Blanks sort last for every key, whichever way that key runs.
3The predicate tree every returned row must satisfy. Omit for an unfiltered listing.
Response
Successful Response
One keyset page of table rows.
The columns whose cells this page carries, or null for all of them. A column outside this list is NOT blank — it was simply not fetched.
Cursor for the next page; None when this is the last page.