Skip to main content
GET
List workflow runs across one or more workflows. The endpoint supports id pagination plus a rich set of filters: by workflow, by status, by trigger type, by date range, by cost / duration, and by free-text run-ID search. Pagination uses before / after cursors:
  • Pass the last id from a page as after to get the next page.
  • Pass the first id from a page as before to get the previous page.
Filter tips:
  • status filters to a single run status (e.g. "completed").
  • trigger_type filters to a single trigger type (e.g. "api").
  • from_date / to_date accept either YYYY-MM-DD strings or Python date objects (the SDK serializes them).
  • fields lets you slim the response down to just the keys you need (e.g. "id,lifecycle,timing").

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

workflow_id
string | null

Filter by workflow ID

status
enum<string> | null

Filter by run status

Available options:
pending,
queued,
running,
completed,
error,
failed,
awaiting_review,
cancelled
exclude_status
enum<string> | null

Exclude runs with this status

Available options:
pending,
queued,
running,
completed,
error,
failed,
awaiting_review,
cancelled
trigger_type
enum<string> | null

Filter by trigger type

Available options:
manual,
api,
schedule,
webhook,
email,
restart
from_date
string | null

Filter runs created on or after this date (YYYY-MM-DD)

to_date
string | null

Filter runs created on or before this date (YYYY-MM-DD)

min_duration_ms
integer | null

Filter runs with duration >= this value in milliseconds

max_duration_ms
integer | null

Filter runs with duration <= this value in milliseconds

search
string | null

Search by run ID (partial match)

metadata
string | null

Filter by metadata equality: a JSON object of key/value pairs (e.g. {"tenant":"acme"}). Pairs AND together.

before
string | null
after
string | null
limit
integer
default:20

Items per page

Required range: 1 <= x <= 100
order
enum<string>
default:desc
Available options:
asc,
desc
sort_by
string
default:timing.created_at

Response

Successful Response

A page of WorkflowRun resources. data holds the items and list_metadata carries the before/after cursors; pass after to fetch the next page.

data
WorkflowRun · object[]
required
list_metadata
ListMetadata · object
required

Boundary resource IDs for page navigation.