Flow Runs
Read Flow Runs
Query for flow runs.
post/api/flow_runs/filter
Headers
x-prefect-api-versionstring
Request body
Example request
{
"flows": {
"name": {
"any_": [
"my-flow-1",
"my-flow-2"
],
"like_": "marvin"
},
"tags": {
"all_": [
"tag-1",
"tag-2"
]
}
},
"flow_runs": {
"name": {
"any_": [
"my-flow-run-1",
"my-flow-run-2"
],
"like_": "marvin"
},
"tags": {
"all_": [
"tag-1",
"tag-2"
]
},
"work_queue_name": {
"any_": [
"work_queue_1",
"work_queue_2"
]
}
},
"task_runs": {
"name": {
"any_": [
"my-task-run-1",
"my-task-run-2"
],
"like_": "marvin"
},
"tags": {
"all_": [
"tag-1",
"tag-2"
]
}
},
"deployments": {
"name": {
"any_": [
"my-deployment-1",
"my-deployment-2"
],
"like_": "marvin"
},
"tags": {
"all_": [
"tag-1",
"tag-2"
]
},
"work_queue_name": {
"any_": [
"work_queue_1",
"work_queue_2"
]
}
},
"work_pool_queues": {
"name": {
"any_": [
"wq-1",
"wq-2"
],
"startswith_": [
"marvin",
"Marvin-robot"
]
}
}
}Response
Successful Response
Example response
[
{
"name": "my-flow-run",
"deployment_version": "1.0",
"flow_version": "1.0",
"context": {
"my_var": "my_val"
},
"tags": [
"tag-1",
"tag-2"
],
"work_pool_name": "my-work-pool",
"state": {
"message": "Run started"
}
}
]