Get workflow insights
The aggregate figures for a workflow over a reporting window: volumes by outcome, return rate, average end-to-end time, active submitters and per-step timings with box-plot quartiles.
Everything is derived from the workflow’s transition records, under the caller’s own access — a principal whose grants reach only part of the workflow’s activity sees figures for that part. A submission that has never transitioned does not appear, and a submission whose earlier transitions predate the window is counted from its first transition inside it.
It also carries the transition volume over time, bucketed at the width asked for, so an activity chart does not need the records themselves.
The window is required. Optionally narrow the figures to a scheme’s or a
contract’s submissions, and ask for include_baseline=true to get the unscoped
figures alongside them for comparison.
Served by a hand-written handler rather than a generated one, because the resource is computed rather than stored.
Authorizations
Session token for authentication.
Path Parameters
The unique identifier for the workflow.
Query Parameters
Narrows the transition records the figures are computed from.
The reporting window is required — an unbounded window would mean aggregating the whole collection, so it is rejected rather than served:
ge(created_at,xxx): the start of the window. Required.le(created_at,xxx): the end of the window. Required.
The cohort filters are optional and mutually exclusive. Both resolve to a set of submissions server-side, through the operation a submission captured:
eq(scheme,xxx): only submissions whose payload operation belongs to the scheme.eq(contract,xxx): asscheme, expanded across every scheme in the contract.
A submission that captured no operation cannot join a scheme or a contract, so it is invisible to both cohorts. Unscoped figures include it.
The organisation is not a filter — it is the organisation that owns the workflow definition in the path.
For more information on using named filters, see the docs
1The bucket width for the activity series. The five widths are the ones an activity chart picks between as the reporting window widens, from five minutes over a few hours to a week over a year.
5m, 1h, 6h, 1d, 1w Adds a baseline block to the attributes: the same figures over the same window
with the cohort filter dropped, so a cohort can be read against the whole
network. Costs one extra aggregation, not an extra round trip.
Response
The aggregate figures for the workflow definition over the requested window
JSON API response object
The aggregate view of one workflow definition's activity over a reporting window. A synthetic, read-only resource: it is computed from the workflow transition records the caller can see, never stored, and its identifier is the workflow definition it was computed for.