Skip to content

A workflow's runs are listed newest first, in the paginated envelope

The list of a workflow's runs is paged by offset like every other list, so it answers the shared envelope, and its order holds still between pages.

The rule

Normative: this is the rule
  1. The workflow_pipelines route (API-9) lists the runs of one workflow.
  2. It is paginated by offset: it MUST answer with the paginated envelope (API-5), and MUST page as API-6 says.
  3. For a workflow that does not exist, the route MUST answer 404 with the code NOT_FOUND to a caller holding blanket authority over workflows, and 403 with the code ACCESS_DENIED to every other identified caller (a request without accepted credentials gets 401, conventions).
  4. For a workflow that exists but that the caller is not allowed to view, it MUST answer 403 with the code ACCESS_DENIED.
  5. The two 403 answers MUST be indistinguishable, so that the route cannot be used to learn which workflows exist.
  6. The list MUST hold only the workflow's runs that the caller is allowed to view, and total MUST count that set.
  7. Each row MUST carry the run's id, status and createdAt, with the values the run's status document publishes (PIPE-1).
  8. Rows MUST be ordered newest first: by createdAt, compared as instants, latest first.
  9. Runs with the same createdAt MUST be ordered by id, compared as strings code point by code point, the greater first, so that the order is total and the same on every request.
  10. A run whose createdAt is null MUST come after every run that has one.

What it means

The list of a workflow's runs is paged by limit and offset, like the workflow list, so it answers the same envelope: the rows in data as an array, and the shared pagination block beside them (API-5), with the same defaults and the same correction of out-of-range values (API-6). A client that pages through the workflow list pages through the runs list the same way, and stops when has_more is false.

Offset paging is only coherent if the order holds still. The list is newest first, by the run's creation stamp, compared as instants rather than as text, so two stamps written in different offsets compare by the moment they name. Runs created in the same instant are ordered by their identifier, compared as strings code point by code point with the greater first, so two runs never swap places between one page and the next. A run with no recorded creation stamp (PIPE-9 forbids inventing one) goes to the end. Runs that start while a client pages push older ones down a place, so a client that pages a list that is changing may see a row twice; a list that changes while it is read is what cursor paging is for, which this route does not offer.

A row carries at least what a client needs to show the run and to find it: its id, its status and its createdAt, the same values the run's status document publishes. An implementation may carry more. The list holds only runs the caller is allowed to view, and total counts those, so the block never reveals how many runs someone else has.

The workflow in the route is guarded the same way as a run (PIPE-1) or a signal (INT-16). A caller with authority over every workflow is told 404 for a workflow that does not exist. Anyone else gets the same 403 for a workflow that does not exist as for one they may not view, so the list cannot be used to probe which workflow identifiers are in use.

Example

The second page of a workflow's runs200 — paginated
GET /api/flowdrop/workflow/{workflow_id}/pipelines?limit=2&offset=2

{"success": true,
 "data": [
   {"id": "4709", "status": "completed", "createdAt": "2026-11-20T09:14:02Z"},
   {"id": "4708", "status": "failed", "createdAt": "2026-11-20T09:14:02Z"}
 ],
 "pagination": {"total": 5, "limit": 2, "offset": 2, "has_more": true}}

The two rows share a creation stamp, so their identifiers decide the order, and the same request always answers them in this order. The path is an example of the route API-9 names workflow_pipelines.

Why

Recorded under OPEN-54, OPEN-61, OPEN-65.

Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · API-12 · changed in spec 1.1