Run an inline report definition synchronously

Needs permission report:read. Rows are capped at 10,000 and the truncated flag is set when the cap is hit. A definition that exceeds the synchronous time budget returns 408: narrow the filters or queue an export instead. Every run is recorded in the run history, which GET /runs returns.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

The report-definition document: one contract drives sync runs, exports, saved
definitions and schedules. select holds 1 to 50 entries.

string
required

A dataset name from GET /datasets

select
array of objects
required
length between 1 and 50
select*

One select entry: a plain field ({"field": ...}), an aggregation ({"aggregate": "sum", "field": ..., "as": ...}), or a tag-value extraction ({"field":

string | null
string | null
enum
Allowed:
string | null

Output column alias (required for aggregations and tag-value extractions)

boolean
Defaults to false
string | null

Extract this tag's value from a tags field as a text column; groupable via its alias

string | null

Restrict tagName extraction to one tag group; omitted matches any group

string | null
enum

In a report that runs on a pay run: current (this pay run), compared (the pay run it is compared with), difference (this minus compared) or changePercent (the difference as a percentage of compared; 100 when compared is 0 and this is not). Left out: this pay run's value, or the compared one's when the row is only there.

Allowed:
filters
object | null

Filter tree node: exactly one of and/or/not (branch, nesting depth at most 3) or field+op (leaf). value must match the field's type as GET /datasets/{name} lists it.

groupBy
array of strings | null

Required iff any select entry aggregates; every plain select entry must appear here, referenced by field name or alias

groupBy
orderBy
array of objects | null
orderBy
int32 | null

Clamped to 10,000 (sync) / 5,000,000 (export)

string | null
enum

payRun: the report runs on the pay run it is opened from, its keys never a filter; paySchedule: on that pay run's pay schedule over its tax year and the one before. Left out: whatever its filters say.

Allowed:
Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json