Skip to main content
GET
cURL

Authorizations

X-Session-Token
string
header
required

Session token for authentication.

Path Parameters

workflow_definition_id
string<uuid>
required

The unique identifier for the workflow.

Query Parameters

filter
string
required

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): as scheme, 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

Minimum string length: 1
bucket
enum<string>
default:1d

The 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.

Available options:
5m,
1h,
6h,
1d,
1w
include_baseline
boolean
default:false

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

data
object
required

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.

jsonapi
object
required