Skip to main content

The logs method retrieves workflow run logs using the List Workflow Runs API.

Arguments#

cursorstring#

A pagination cursor from a previous request. Use this to fetch the next set of results.

countnumber#

Maximum number of runs to return. Defaults to a system-defined value if not specified.

filterobject#

Filter options for narrowing down workflow run logs.

Response#

cursorstring#

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

runsArray#

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.