Query a workflow dataset

Reads the records a workflow's store@1 nodes wrote to one dataset: filters, time buckets, aggregates (count, sum, avg, min, max) and the latest record per key of a keyed dataset. The body is the dashboard spec's dataset query (the workflow-executor contract, section 15) plus an optional cursor. Every field is checked against the dataset catalog; an unknown field or a type mismatch is a 400 naming it. At most 1000 rows per page (limit defaults to 1000); when truncated is true, send next_cursor back with the same query to read the next page, which covers the range the first page resolved. The caller reads workflows of the companies its company read ability covers; any other workflow, and an unknown dataset, is 404. A query that runs over 30 seconds is cancelled with 504.

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

The workflow id (UUID).

string
required
^[a-z][a-z0-9_]{0,62}$

The dataset name declared by a store@1 node.

Query Params
uuid

The workflow environment (UUID) whose records is read. Absent means the company's production environment.

Body Params
string

Start of the range on the record time, relative (-30d, -12h, -15m) or an RFC 3339 timestamp. Required unless latest is true.

string

End of the range (exclusive), in the same form as from. Defaults to now.

filters
array of objects
length ≤ 10

ANDed. A filter may name a dataset field or at, the record time.

filters
group_by
array of strings
length ≤ 3

Dataset fields to group by; needs aggregate.

group_by
string
enum

Time bucket width, yielding the column bucket; needs aggregate.

Allowed:
aggregate
object
order_by
array of objects
length ≤ 4
order_by
integer
1 to 1000
boolean

Read the latest record per key of a keyed dataset instead of its history; excludes from, to, group_by, bucket and aggregate.

string

The next_cursor of the previous page.

Responses

400

The request was malformed or contained invalid parameters.

401

You are not authorized

404

The item you were looking for does not exist

500

An unexpected error was encountered.

504

The query ran over 30 seconds and was cancelled; narrow its time range.

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