Skip to main content
POST
/
api
/
flows
/
filter
[
  {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created": "2023-11-07T05:31:56Z",
    "updated": "2023-11-07T05:31:56Z",
    "name": "<string>",
    "tags": [
      "<string>"
    ],
    "labels": {
      "key": "value1",
      "key2": 42
    }
  }
]

Headers

x-prefect-api-version
string

Body

application/json
offset
integer
default:0
Required range: x >= 0
flows
FlowFilter · object

Filter for flows. Only flows matching all criteria will be returned.

flow_runs
FlowRunFilter · object

Filter flow runs. Only flow runs matching all criteria will be returned

task_runs
TaskRunFilter · object

Filter task runs. Only task runs matching all criteria will be returned

deployments
DeploymentFilter · object

Filter for deployments. Only deployments matching all criteria will be returned.

work_pools
WorkPoolFilter · object

Filter work pools. Only work pools matching all criteria will be returned

sort
enum<string>
default:NAME_ASC

Defines flow sorting options.

Available options:
CREATED_DESC,
UPDATED_DESC,
NAME_ASC,
NAME_DESC
limit
integer

Defaults to PREFECT_API_DEFAULT_LIMIT if not provided.

Response

Successful Response

id
string<uuid>
required
created
string<date-time> | null
required
updated
string<date-time> | null
required
name
string
required

The name of the flow

tags
string[]

A list of flow tags

labels
Labels · object

A dictionary of key-value labels. Values can be strings, numbers, or booleans.

Example:
{ "key": "value1", "key2": 42 }