Reading Data
Section titled “Reading Data”This is the read-side guide for an external client. Calling the HTTP API owns the shared conventions — the URL scheme, the response envelope, the filter-model reference and the pagination and list parameters. This page is about using them well: choosing the right filter dialect, validating criteria before you commit to them, fetching less than the whole Entry, and paging safely against a server that will not protect you from your own page sizes. Examples read one entity, employees, with an application token; every successful JSON response arrives as {"success": true, "result": …} regardless of the operation’s version — except a GET on /v3, which is raw again Since 1.10 (details).
Choosing a filter dialect
Section titled “Choosing a filter dialect”Two filter dialects coexist, selected by the operation version, and the choice is already made for you: the v1 list operation is marked @deprecated() in the controller, surfaced as deprecated: true in the OpenAPI document. It still works — deprecation on this platform is additive, not a cutover — but a new client should not adopt it.
| Operation | Path | Filter input |
|---|---|---|
| List (deprecated) | GET /api/v1/entities/{entity}/entries | filter (LoopBack) |
| List | GET /api/v2/entities/{entity}/entries | filterCriteria + search |
| List with tags | GET /api/v3/entities/{entity}/entries | filterCriteria + search + appliedTagsFilters |
| Count (v1) | GET /api/v1/entities/{entity}/entries/count | where (LoopBack) |
| Count | GET /api/v2/entities/{entity}/entries/count | whereCriteria + search |
| Single entry | GET /api/v1/entities/{entity}/entries/{id} | fields, excludeResolved |
The rule: write new read paths against v2 or v3 and pass filterCriteria. Take v3 when you want tag information with the rows — its result is an object carrying entries plus a tags array — and v2 when you want just the array. Counting is always a separate operation from listing.
filterCriteria is a superset of the LoopBack filter: it keeps limit, skip/offset, order, fields, include and a legacy where, and adds the recursive criteria expression tree. The expression model — operators, field operators, typed values — is documented in the conventions guide; this page assumes it.
curl -G "https://{host}/api/v2/entities/employees/entries" \ -H "x-app-token: $TOKEN" \ --data-urlencode 'filterCriteria={ "limit": 100, "skip": 0, "order": ["value.hire_date DESC"], "criteria": { "operator": "And", "args": [ { "field": "value.department", "operator": "Equal", "args": [ { "type": 0, "value": "HR" } ] } ] } }'{ "success": true, "result": [ /* entries */ ] }Malformed criteria fail with 400 and a stable code from the query engine: an operator the engine does not know is UNKNOWN_OPERATOR_ERROR, and a fieldOperator outside the supported set is UNSUPPORTED_FIELD_EXPRESSION.
Since 1.8 — criteria that reference a sensitive field the calling user cannot access are rejected outright with 400 and code SENSITIVE_FIELD_QUERY_NOT_ALLOWED, rather than silently dropped — a deliberate design decision recorded in the engine. Sub-paths cannot slip past the guard: filtering on salary.en or manager.dataEntry is treated as filtering on salary or manager. Expect this error to vary per credential — a filter that works for one user can 400 for another.
Validating criteria with the parser
Section titled “Validating criteria with the parser”Before persisting a complex expression — into a saved Query, a client-side filter builder, a configuration file — validate it against the same engine the live endpoints use:
curl -X POST "https://{host}/api/v1/queries/parser" \ -H "content-type: application/json" -H "x-app-token: $TOKEN" \ -d '{ "operator": "And", "args": [ { "field": "value.department", "operator": "Equal", "args": [ { "type": 0, "value": "HR" } ] } ] }'The body is a bare FilterExpression — the criteria node alone, not a whole filterCriteria object. On success the response is the parsed condition rendered as a string inside the envelope; treat that string as opaque — the useful signal is 200 versus a 400 carrying the same UNKNOWN_OPERATOR_ERROR / UNSUPPORTED_FIELD_EXPRESSION codes as a live query.
Two caveats. The parser has no entity context: field names are not checked against any Entity, so a structurally valid expression can still match nothing at runtime. And it does not run the per-user sensitive-field check above, which only applies when a query actually executes — a criteria tree that parses cleanly can still be rejected at read time.
Pointer values are checked strictly Since 1.10. A pointer value in a filter — @me, @today('-1d') and the like — must name a known pointer function in the form @name, @name() or @name('<amount>'); anything else (@Today, @Me, @none, trailing code) is refused with 400 INVALID_POINTER. Pointers are no longer evaluated as code. A saved filter that relied on a loose spelling now fails where it used to be tolerated — fix the spelling.
Projection
Section titled “Projection”On a list, projection is the standard fields clause inside filter or filterCriteria — include or exclude properties per LoopBack semantics.
On a single read, GET /api/v1/entities/{entity}/entries/{id} takes two dedicated parameters:
?fields=value.name,value.email— a comma-separated projection. The read still runs through the view’s access pipeline, deliberately: a raw projected fetch would let?fields=bypass row-level scoping, so the scoping stages stay on while the expensive resolve stages (virtual fields, relation and category resolution) are switched off. The projected read is therefore fast, but relation and category values come back unresolved — raw references, not display-ready objects.?excludeResolved=true— returns the full value but skips the relation- and category-resolution stages only. Use it when you need the whole Entry cheaply and can resolve references yourself, or don’t need them resolved at all.
Paging safely
Section titled “Paging safely”The server enforces no maximum page size. The filter schema requires only limit >= 1 — there is no upper bound, in either dialect — and a request with no limit at all returns every matching row. The platform will not protect you from a full-collection read, so the discipline is the client’s:
- Send an explicit
limiton every list request, including exploratory ones. Pick a fixed page size in the low hundreds and keep it. - Page with
skip(oroffset) inlimit-sized steps; a page shorter thanlimitis the last one. - Sort on a stable, unique key — append the entry id to whatever business ordering you need (
"order": ["value.hire_date DESC", "id ASC"]). Offset paging over a mutating set skips or repeats rows when the sort key is not stable; there are no cursors to save you. - Treat the count operation as advisory: rows can be created or archived between the count and the pages that follow.
Quick filters and tag filters
Section titled “Quick filters and tag filters”Both features let a request reuse filters that were defined once, server-side, instead of re-encoding them in every client.
appliedQuickFilters is an array of saved Query ids. Each referenced Query’s criteria are AND-merged with your own filterCriteria, and a parameterized Query has its parameters resolved from the request. An id that does not resolve to a Query with criteria is silently skipped — a typo narrows nothing and raises no error, so a suspiciously large result set is worth re-checking against the ids you sent.
appliedTagsFilters (v3 list, tree and kanban operations) takes tag ids or tag-group ids — a group id applies every enabled tag in the group. The v3 response’s tags array then reports which returned entries carry which tag, as {tagId, entriesId, groupId} objects. An empty tags array means no applied tag matched the returned rows — not that the tags don’t exist.
Reading a collection by id
Section titled “Reading a collection by id”Since 1.10 — GET /api/v1/collections/{id} now serves four kinds of collection to an authenticated caller: the caller’s own saved collections; open ones, shared with every authenticated user; ones shared with them directly; and ones shared with a group they belong to. Previously it recognised only a narrower set, so a client that created a collection and then opened it by id got a 404 for a list it had just made itself — a confusing failure, because nothing about the credential or the id was wrong.
Authorization did not change. The visibility rule is still applied as a where predicate at query time rather than as a check after the document is fetched, so a fields projection cannot be used to smuggle out a collection you are not entitled to; a Restricted caller holding a grant on the entity still cannot retrieve another user’s saved collection by guessing its id. Anything outside those four cases still answers 404, with the same body as before. No route, method, parameter or response shape changed — only which collections the predicate matches.
Proxy entity capabilities Since 1.10
Section titled “Proxy entity capabilities Since 1.10”GET /v1/entities/{id} — the single-entity read, not the list endpoints — now returns an additional proxyCapabilities?: ProxyCapabilitiesDto property on VirtualProxy entities: a response-only, per-request-derived capability ceiling (which fields, which operations, which surfaces the entity’s bound Proxy view currently permits). It is never accepted on write. An absent property means “not a proxy entity”; a present one with bound: false means “a proxy entity whose capability chain did not resolve” — read the field to know what the entity currently allows rather than assuming from its type alone. The data-service OpenAPI snapshot has since been regenerated and now carries the property on DataEntityDto. Full shape and derivation rules: Virtual Entities § Proxy view governance.
Reading a reaction’s run history Since 1.10
Section titled “Reading a reaction’s run history Since 1.10”GET /v1/reaction/{entity}/{id}/history (reaction-service) returns a keyset-paginated page of one reaction’s recorded runs, newest first — query params outcome (failed/succeeded/refused/all; refused is a run the tenant’s monthly run limit stopped — see Plan limits), from/to, before (keyset cursor), limit (default 10, capped 100); response {items, hasMore, nextBefore}, no total count by design. GET /v1/reaction/{entity} also now returns per-reaction executedCount/succeededCount/failedSinceLastChangeCount/statsSince, and refusedCount (refused runs are not counted in executedCount). Both paths are relative to reaction-service’s base path, /api/reaction. The regenerated reaction-service snapshot now carries both — see the DataReaction reference. Full contract — including why the run history deliberately carries unredacted per-action input/output — is on Reactions & Automation § Execution and failure counts.
When an empty result is not what it seems
Section titled “When an empty result is not what it seems”Outside a view context, a caller without the entries-list grant does not get a 403 from the list and count operations — they deliberately return an empty list and a zero count. For a headless client this is the classic silent failure: an application token whose owning application user lacks read access sees [] everywhere and no error.
The diagnostic is the single-entry read, which does not soften the failure: reading one known entry id without the grant throws ForbiddenToReadEntryException. So when a list you expect to be populated comes back empty, fetch one known entry — an explicit 403 tells you it’s the credential’s permissions, and a clean entry tells you it’s your filter. Permission design for application users is covered in Choosing a credential; the meaning of 403 on view-scoped paths is covered in the conventions guide.
Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27