Skip to content

A query that fits in a URL

The queue as a marketHTTPDashboardCLIGET /api/escalationsfacetsrangeblockorderBy

Facets, ranges, exclusions and ordering ride as JSON query params, so any filtered queue is a link you can paste, pin or curl.

The situation

A lead wants “pending reviews with confidence at or below 0.7, lowest first” as a bookmark for the team and as a script for a nightly report. Both should run the identical query.

The recipe

The API call
curl -G https://lt.acme.dev/api/escalations \
-H "Authorization: Bearer $TOKEN" \
--data-urlencode 'status=pending' \
--data-urlencode 'facets={"flags":"too_short"}' \
--data-urlencode 'range=[{"facet":"confidence","op":"<=","value":0.7}]' \
--data-urlencode 'orderBy=[{"field":"metadata.confidence","numeric":true,"direction":"asc"}]'
The same list in the dashboard
/escalations/available?role=reviewer&facets={"flags":"too_short"}&view=table
The same from a terminal
ltc esc list --status pending --facets '{"flags":"too_short"}' \
--range '[{"facet":"confidence","op":"<=","value":0.7}]'

The dashboard’s copy-URL and copy-curl actions reproduce the exact request. A role can pin the link so its members land on it.

The guarantee

The filter and the count run in SQL with the caller’s read scope applied, so the page total is correct and nothing is filtered client-side. facets, block, range, exists, roles, available and orderBy compose on both list and listAvailable. See Faceted routing.