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
- The
workflow_pipelinesroute (API-9) lists the runs of one workflow. - It is paginated by offset: it MUST answer with the paginated envelope (API-5), and MUST page as API-6 says.
- For a workflow that does not exist, the route MUST answer
404with the codeNOT_FOUNDto a caller holding blanket authority over workflows, and403with the codeACCESS_DENIEDto every other identified caller (a request without accepted credentials gets401, conventions). - For a workflow that exists but that the caller is not allowed to view, it MUST answer
403with the codeACCESS_DENIED. - The two
403answers MUST be indistinguishable, so that the route cannot be used to learn which workflows exist. - The list MUST hold only the workflow's runs that the caller is allowed to view, and
totalMUST count that set. - Each row MUST carry the run's
id,statusandcreatedAt, with the values the run's status document publishes (PIPE-1). - Rows MUST be ordered newest first: by
createdAt, compared as instants, latest first. - Runs with the same
createdAtMUST be ordered byid, compared as strings code point by code point, the greater first, so that the order is total and the same on every request. - A run whose
createdAtis 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
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.