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
sort
enum<string>[]

The field to order the journeys by. One field only, and the schema refuses a second: there is no secondary sort behind it, so a second value would have had no effect on the order it came back in.

Defaults to -started_at, the most recently started first. Submissions still in progress have no elapsed time, so they sort last under both elapsed_minutes and -elapsed_minutes.

Maximum array length: 1
Available options:
started_at,
-started_at,
elapsed_minutes,
-elapsed_minutes
limit
integer<int64>
default:100

Limit the number of resources returned by the API

Required range: x >= 1
offset
integer<int64>
default:0

Offset the resources returned by the API

Required range: x >= 0
format
enum<string>

Asks for the CSV export rather than a page of journeys. format=csv is equivalent to sending Accept: text/csv, and exists so the export is a plain URL — the form a browser download or a scheduled delivery can use without setting a header.

Available options:
csv
shape
enum<string>
default:transitions

The shape of the CSV export. transitions writes one row per transition — the stage-by-stage trail behind each submission. summary writes one row per submission. Ignored unless CSV was asked for.

Available options:
transitions,
summary

Response

A page of the workflow's submission journeys, or the whole set as CSV when text/csv was asked for.

Document level meta about the resources on the server in list endpoints.

data
A list of workflow submission journeys · object[]
required
jsonapi
object
required
meta
object
required
included
object[]

Resources side-loaded with a page of workflow journeys. The operators are always side-loaded, so a caller can render the names on a journey without a second read.