Skip to main content
Report on documents and their transactions

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Body

application/json
fields
string[] | null

Properties of a report row to keep, everything else being left out. Left empty, a row comes back whole. A name nothing in a row answers to is ignored, and a selection that would leave a row with nothing in it at all is refused.

Example:
query
object

The search that decides which documents the report covers, in the same shape POST /search takes. It carries the ordering and the paging as well, since the report describes the page of documents the search returns rather than the whole result set.

Response

Returns a report row for every document the search matched.

aggs
object

Results of the aggregations the search carried, answered as the search engine produced them and describing the whole matched set rather than this page. Absent where the search asked for none.

from
integer

Zero-based position of the first returned row within the whole result set, as the search asked for it.

Example:

0

results
object[]

The report, one row per matched document, in the order the search produced them.

scrollId
string

Cursor to send with the next request to continue the walk through the results. Present only while a scroll context is in use, and to be closed with DELETE /search/scroll once the walk is over.

Example:

"8kZtoG59p8qvO4a5LepHCNaR7LGH7BKFIAU1rd5DAEBPi4pxxIA6NVOAd0GXKB1m"

total
integer

Number of documents the search matched in total, which is what to page through - not the number of rows in this answer.

Example:

137