- Offset-based (AG-Grid model) — used by POST endpoints that return tabular data. Covered in detail on this page.
- Typesense page/per_page — used by the
/search-public/*endpoints. See the Public Search group for query-string parameters.
Offset-based pagination
Tabular endpoints (companies at an address, watchlist members, person companies, etc.) accept a POST request whose JSON body specifies the row range, sort order, and filters.Request body
The page size is
endRow - startRow. For example, startRow: 0, endRow: 50 returns the first 50 rows.
Response
| Field | Type | Description |
|---|---|---|
success | bool | Whether the request succeeded |
rows | array | The data rows for the requested range |
lastrow | int | Index of the last row in the dataset, or -1 if more rows exist |
How to paginate
Uselastrow to determine if there are more pages:
lastrow == -1— more rows available, request the next pagelastrow >= 0— this is the last page,lastrowis the total row count
Sorting
Add asortModel array to sort by one or more columns:
| Field | Type | Values |
|---|---|---|
colId | string | Column name to sort by |
sort | string | asc or desc |
Filtering
Add afilterModel object to filter results server-side. Each key is a column name; the value describes the filter.
Text filter
Number filter
Date range filter
Set filter (match any of the values)
Multiple conditions on the same column
Supported filter operators
| Operator | Types | Description |
|---|---|---|
equals | text, number | Exact match |
notEqual | text, number | Not equal |
contains | text | Substring match |
startsWith | text | Starts with |
endsWith | text | Ends with |
greaterThan | number, date | Greater than |
lessThan | number, date | Less than |
inRange | date | Between dateFrom and dateTo (inclusive) |
blank | all | Value is null |
notBlank | all | Value is not null |
Combining conditions
Use theoperator field with "AND" or "OR" to combine multiple conditions on the same column.
Endpoints using this pattern
These POST endpoints accept the pagination request body described above:| Endpoint | Description |
|---|---|
POST /addresses/{id}/companies | Companies at an address |
POST /addresses/{id}/workplaces | Workplaces at an address |
POST /addresses/{id}/persons | Persons at an address |
POST /properties/se/{uuid}/companies | Companies at a property |
POST /properties/se/{uuid}/workplaces | Workplaces at a property |
POST /persons/{id}/companies | Companies where person is a representative |
POST /persons/{id}/beneficial-owners | Beneficial ownership positions |
POST /watchlists/{id}/companies | Company members of a watchlist |
POST /watchlists/{id}/persons | Person members of a watchlist |
POST /watchlists/{id}/addresses | Address members of a watchlist |
POST /watchlists/{id}/properties | Property members of a watchlist |
POST /watchlists/{id}/vehicles | Vehicle members of a watchlist |
POST /watchlists/{id}/events | Watchlist events |
POST /orders | Your document orders |
POST /team/orders | Team document orders |
POST /team/exports | Team exports |