Skip to main content
The logs method retrieves workflow run logs using the List Workflow Runs API.

Arguments

string
A pagination cursor from a previous request. Use this to fetch the next set of results.
number
Maximum number of runs to return. Defaults to a system-defined value if not specified.
object
Filter options for narrowing down workflow run logs.

Response

string
A cursor to use for pagination. If no cursor is returned, there are no more workflow runs.
Array

Usage

Paginate with cursor

Filter by state

Filter by label and date range

Filter by multiple labels

Passing an array matches runs that have any of the given labels (OR semantics). For example, with runs labelled ["label-1", "label-2"] and ["label-2", "label-3"], filtering by ["label-1", "label-2"] returns both.