Prefect UI API

The UI API from Prefect — 10 operation(s) for ui.

Operations 10

POST /api/accounts/{account_id}/workspaces/{workspace_id}/ui/flows/count-deployments Count Deployments By Flow #
POST /api/accounts/{account_id}/workspaces/{workspace_id}/ui/flows/next-runs Next Runs By Flow #
POST /api/accounts/{account_id}/workspaces/{workspace_id}/ui/flow_runs/history Read Flow Run History #
POST /api/accounts/{account_id}/workspaces/{workspace_id}/ui/flow_runs/history-v2 Read Flow Run History V2 #
POST /api/accounts/{account_id}/workspaces/{workspace_id}/ui/flow_runs/count-task-runs Count Task Runs By Flow Run #
POST /api/accounts/{account_id}/workspaces/{workspace_id}/ui/task_runs/dashboard/counts Read Dashboard Task Run Counts #
POST /api/accounts/{account_id}/workspaces/{workspace_id}/ui/task_runs/count Read Task Run Counts By State #
POST /api/accounts/{account_id}/workspaces/{workspace_id}/ui/schemas/validate Validate Obj #
POST /api/accounts/{account_id}/workspaces/{workspace_id}/ui/schemas/validate_schema Validate Schema #
POST /api/accounts/{account_id}/workspaces/{workspace_id}/ui/work_pools/count-flow-runs Count Flow Runs By Work Pool #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/prefect-ui-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

prefect-ui-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Prefect Cloud Account Billing UI API
  description: Prefect Cloud REST API documentation.
  version: 0.8.4
tags:
- name: UI
paths:
  /api/accounts/{account_id}/workspaces/{workspace_id}/ui/flows/count-deployments:
    post:
      tags:
      - UI
      summary: Count Deployments By Flow
      description: 'Get deployment counts by flow id.


        Required workspace scopes: `see_flows`'
      operationId: count_deployments_by_flow_api_accounts__account_id__workspaces__workspace_id__ui_flows_count_deployments_post
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Workspace Id
      - name: x-prefect-api-version
        in: header
        required: false
        schema:
          type: string
          title: X-Prefect-Api-Version
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Body_count_deployments_by_flow_api_accounts__account_id__workspaces__workspace_id__ui_flows_count_deployments_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: integer
                propertyNames:
                  format: uuid
                title: Response Count Deployments By Flow Api Accounts  Account Id  Workspaces  Workspace Id  Ui Flows Count Deployments Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/accounts/{account_id}/workspaces/{workspace_id}/ui/flows/next-runs:
    post:
      tags:
      - UI
      summary: Next Runs By Flow
      description: 'Get the next flow run by flow id.


        Required workspace scopes: `see_flows`'
      operationId: next_runs_by_flow_api_accounts__account_id__workspaces__workspace_id__ui_flows_next_runs_post
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Workspace Id
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      - name: x-prefect-api-version
        in: header
        required: false
        schema:
          type: string
          title: X-Prefect-Api-Version
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Body_next_runs_by_flow_api_accounts__account_id__workspaces__workspace_id__ui_flows_next_runs_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  anyOf:
                  - $ref: '#/components/schemas/SimpleNextFlowRun'
                  - type: 'null'
                propertyNames:
                  format: uuid
                title: Response Next Runs By Flow Api Accounts  Account Id  Workspaces  Workspace Id  Ui Flows Next Runs Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/accounts/{account_id}/workspaces/{workspace_id}/ui/flow_runs/history:
    post:
      tags:
      - UI
      summary: Read Flow Run History
      description: '


        Required workspace scopes: `see_flows`'
      operationId: read_flow_run_history_api_accounts__account_id__workspaces__workspace_id__ui_flow_runs_history_post
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Workspace Id
      - name: x-prefect-api-version
        in: header
        required: false
        schema:
          type: string
          title: X-Prefect-Api-Version
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Body_read_flow_run_history_api_accounts__account_id__workspaces__workspace_id__ui_flow_runs_history_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SimpleFlowRun'
                title: Response Read Flow Run History Api Accounts  Account Id  Workspaces  Workspace Id  Ui Flow Runs History Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/accounts/{account_id}/workspaces/{workspace_id}/ui/flow_runs/history-v2:
    post:
      tags:
      - UI
      summary: Read Flow Run History V2
      description: '


        Required workspace scopes: `see_flows`'
      operationId: read_flow_run_history_v2_api_accounts__account_id__workspaces__workspace_id__ui_flow_runs_history_v2_post
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Workspace Id
      - name: x-prefect-api-version
        in: header
        required: false
        schema:
          type: string
          title: X-Prefect-Api-Version
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Body_read_flow_run_history_v2_api_accounts__account_id__workspaces__workspace_id__ui_flow_runs_history_v2_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlowRunHistoryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/accounts/{account_id}/workspaces/{workspace_id}/ui/flow_runs/count-task-runs:
    post:
      tags:
      - UI
      summary: Count Task Runs By Flow Run
      description: 'Get task run counts by flow run id.


        Required workspace scopes: `see_flows`'
      operationId: count_task_runs_by_flow_run_api_accounts__account_id__workspaces__workspace_id__ui_flow_runs_count_task_runs_post
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Workspace Id
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      - name: x-prefect-api-version
        in: header
        required: false
        schema:
          type: string
          title: X-Prefect-Api-Version
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Body_count_task_runs_by_flow_run_api_accounts__account_id__workspaces__workspace_id__ui_flow_runs_count_task_runs_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: integer
                propertyNames:
                  format: uuid
                title: Response Count Task Runs By Flow Run Api Accounts  Account Id  Workspaces  Workspace Id  Ui Flow Runs Count Task Runs Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/accounts/{account_id}/workspaces/{workspace_id}/ui/task_runs/dashboard/counts:
    post:
      tags:
      - UI
      summary: Read Dashboard Task Run Counts
      description: '


        Required workspace scopes: `see_flows`'
      operationId: read_dashboard_task_run_counts_api_accounts__account_id__workspaces__workspace_id__ui_task_runs_dashboard_counts_post
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Workspace Id
      - name: x-prefect-api-version
        in: header
        required: false
        schema:
          type: string
          title: X-Prefect-Api-Version
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Body_read_dashboard_task_run_counts_api_accounts__account_id__workspaces__workspace_id__ui_task_runs_dashboard_counts_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DashboardTaskRunCount'
                title: Response Read Dashboard Task Run Counts Api Accounts  Account Id  Workspaces  Workspace Id  Ui Task Runs Dashboard Counts Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/accounts/{account_id}/workspaces/{workspace_id}/ui/task_runs/count:
    post:
      tags:
      - UI
      summary: Read Task Run Counts By State
      description: '


        Required workspace scopes: `see_flows`'
      operationId: read_task_run_counts_by_state_api_accounts__account_id__workspaces__workspace_id__ui_task_runs_count_post
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Workspace Id
      - name: x-prefect-api-version
        in: header
        required: false
        schema:
          type: string
          title: X-Prefect-Api-Version
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Body_read_task_run_counts_by_state_api_accounts__account_id__workspaces__workspace_id__ui_task_runs_count_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CountByState'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/accounts/{account_id}/workspaces/{workspace_id}/ui/schemas/validate:
    post:
      tags:
      - UI
      summary: Validate Obj
      operationId: validate_obj_api_accounts__account_id__workspaces__workspace_id__ui_schemas_validate_post
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Workspace Id
      - name: x-prefect-api-version
        in: header
        required: false
        schema:
          type: string
          title: X-Prefect-Api-Version
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Body_validate_obj_api_accounts__account_id__workspaces__workspace_id__ui_schemas_validate_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/accounts/{account_id}/workspaces/{workspace_id}/ui/schemas/validate_schema:
    post:
      tags:
      - UI
      summary: Validate Schema
      operationId: validate_schema_api_accounts__account_id__workspaces__workspace_id__ui_schemas_validate_schema_post
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Workspace Id
      - name: x-prefect-api-version
        in: header
        required: false
        schema:
          type: string
          title: X-Prefect-Api-Version
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              title: Schema
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/accounts/{account_id}/workspaces/{workspace_id}/ui/work_pools/count-flow-runs:
    post:
      tags:
      - UI
      summary: Count Flow Runs By Work Pool
      description: 'Get flow run counts grouped by work pool id.


        Returns a mapping of work_pool_id to the number of flow runs matching the

        optional filter. Work pools with no matching runs are included with a count

        of zero.


        Required workspace scopes: `see_flows`'
      operationId: count_flow_runs_by_work_pool_api_accounts__account_id__workspaces__workspace_id__ui_work_pools_count_flow_runs_post
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Workspace Id
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      - name: x-prefect-api-version
        in: header
        required: false
        schema:
          type: string
          title: X-Prefect-Api-Version
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Body_count_flow_runs_by_work_pool_api_accounts__account_id__workspaces__workspace_id__ui_work_pools_count_flow_runs_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: integer
                propertyNames:
                  format: uuid
                title: Response Count Flow Runs By Work Pool Api Accounts  Account Id  Workspaces  Workspace Id  Ui Work Pools Count Flow Runs Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    WorkPoolFilterType:
      properties:
        any_:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Any
          description: A list of work pool types to include
      additionalProperties: false
      type: object
      title: WorkPoolFilterType
      description: Filter by `WorkPool.type`.
    FlowRunFilterTags:
      properties:
        operator:
          $ref: '#/components/schemas/prefect_cloud__orion__schemas__filters__Operator'
          description: Operator for combining filter criteria. Defaults to 'and_'.
          default: and_
        all_:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: All
          description: A list of tags. Flow runs will be returned only if their tags are a superset of the list
          examples:
          - - tag-1
            - tag-2
        any_:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Any
          description: A list of tags. Flow runs will be returned if their tags contain any of the tags in the list
          examples:
          - - tag-1
            - tag-2
        is_null_:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Is Null
          description: If true, only include flow runs without tags
      additionalProperties: false
      type: object
      title: FlowRunFilterTags
      description: Filter by `FlowRun.tags`.
    Body_count_deployments_by_flow_api_accounts__account_id__workspaces__workspace_id__ui_flows_count_deployments_post:
      properties:
        flow_ids:
          items:
            type: string
            format: uuid
          type: array
          title: Flow Ids
          max_items: 200
      type: object
      required:
      - flow_ids
      title: Body_count_deployments_by_flow_api_accounts__account_id__workspaces__workspace_id__ui_flows_count_deployments_post
    SimpleFlowRun:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: The flow run id.
        state_type:
          $ref: '#/components/schemas/StateType'
          description: The state type.
        timestamp:
          type: string
          format: date-time
          title: Timestamp
          description: The start time of the run, or the expected start time if it hasn't run yet.
        duration:
          type: number
          title: Duration
          description: The total run time of the run.
        lateness:
          type: number
          title: Lateness
          description: The delay between the expected and actual start time.
      type: object
      required:
      - id
      - state_type
      - timestamp
      - duration
      - lateness
      title: SimpleFlowRun
    FlowFilterCreatedBy:
      properties:
        operator:
          $ref: '#/components/schemas/prefect_cloud__orion__schemas__filters__Operator'
          description: Operator for combining filter criteria. Defaults to 'and_'.
          default: and_
        id_:
          anyOf:
          - items:
              type: string
              format: uuid
            type: array
          - type: 'null'
          title: Id
          description: A list of creator IDs to include
        type_:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Type
          description: A list of creator types to include
        is_null_:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Is Null
          description: If true, only include flows without a creator
      additionalProperties: false
      type: object
      title: FlowFilterCreatedBy
      description: Filter by `Flow.created_by`.
    SimpleNextFlowRun:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: The flow run id.
        flow_id:
          type: string
          format: uuid
          title: Flow Id
          description: The flow id.
        name:
          type: string
          title: Name
          description: The flow run name
        state_name:
          type: string
          title: State Name
          description: The state name.
        state_type:
          $ref: '#/components/schemas/StateType'
          description: The state type.
        next_scheduled_start_time:
          type: string
          format: date-time
          title: Next Scheduled Start Time
          description: The next scheduled start time
      type: object
      required:
      - id
      - flow_id
      - name
      - state_name
      - state_type
      - next_scheduled_start_time
      title: SimpleNextFlowRun
    FlowRunFilterIdempotencyKey:
      properties:
        any_:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Any
          description: A list of flow run idempotency keys to include
        not_any_:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Not Any
          description: A list of flow run idempotency keys to exclude
      additionalProperties: false
      type: object
      title: FlowRunFilterIdempotencyKey
      description: Filter by FlowRun.idempotency_key.
    FlowRunFilterState:
      properties:
        operator:
          $ref: '#/components/schemas/prefect_cloud__orion__schemas__filters__Operator'
          description: Operator for combining filter criteria. Defaults to 'and_'.
          default: and_
        type:
          anyOf:
          - $ref: '#/components/schemas/FlowRunFilterStateType'
          - type: 'null'
          description: Filter criteria for `FlowRun.state_type`
        name:
          anyOf:
          - $ref: '#/components/schemas/FlowRunFilterStateName'
          - type: 'null'
          description: Filter criteria for `FlowRun.state_name`
      additionalProperties: false
      type: object
      title: FlowRunFilterState
    FlowRunFilterEndTime:
      properties:
        before_:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Before
          description: Only include flow runs ending at or before this time
        after_:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: After
          description: Only include flow runs ending at or after this time
        is_null_:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Is Null
          description: If true, only return flow runs without an end time
      additionalProperties: false
      type: object
      title: FlowRunFilterEndTime
      description: Filter by `FlowRun.end_time`.
    DeploymentOrFlowNameFilter:
      properties:
        like_:
          anyOf:
          - type: string
          - type: 'null'
          title: Like
          description: A case-insensitive partial match on deployment or flow names. For example, passing 'example' might match deployments or flows with 'example' in their names.
          examples:
          - example
      additionalProperties: false
      type: object
      title: DeploymentOrFlowNameFilter
      description: Filter by `Deployment.name` or `Flow.name` with a single input string for ilike filtering.
    FlowRunFilterDeploymentVersionInfo:
      properties:
        operator:
          $ref: '#/components/schemas/prefect_cloud__orion__schemas__filters__Operator'
          description: Operator for combining filter criteria. Defaults to 'and_'.
          default: and_
        deployment_id:
          type: string
          format: uuid
          title: Deployment Id
          description: The deployment id to filter by
        any_:
          anyOf:
          - items:
              $ref: '#/components/schemas/VersionInfo'
            type: array
          - type: 'null'
          title: Any
          description: A list of flow run deployment version infos to include
      additionalProperties: false
      type: object
      required:
      - deployment_id
      title: FlowRunFilterDeploymentVersionInfo
      description: Filter by `FlowRun.deployment_version_info`.
    Body_read_task_run_counts_by_state_api_accounts__account_id__workspaces__workspace_id__ui_task_runs_count_post:
      properties:
        flows:
          anyOf:
          - $ref: '#/components/schemas/FlowFilter'
          - type: 'null'
        flow_runs:
          anyOf:
          - $ref: '#/components/schemas/FlowRunFilter'
          - type: 'null'
        task_runs:
          anyOf:
          - $ref: '#/components/schemas/TaskRunFilter'
          - type: 'null'
        deployments:
          anyOf:
          - $ref: '#/components/schemas/DeploymentFilter'
          - type: 'null'
      type: object
      title: Body_read_task_run_counts_by_state_api_accounts__account_id__workspaces__workspace_id__ui_task_runs_count_post
    FlowRunFilterFlowId:
      properties:
        operator:
          $ref: '#/components/schemas/prefect_cloud__orion__schemas__filters__Operator'
          description: Operator for combining filter criteria. Defaults to 'and_'.
          default: and_
        any_:
          anyOf:
          - items:
              type: string
              format: uuid
            type: array
          - type: 'null'
          title: Any
          description: A list of flow run flow ids to include
      additionalProperties: false
      type: object
      title: FlowRunFilterFlowId
      description: Filter by `FlowRun.flow_id`.
    WorkPoolStatus:
      type: string
      enum:
      - READY
      - NOT_READY
      - PAUSED
      title: WorkPoolStatus
      description: Enumeration of work pool statuses.
    CountByState:
      properties:
        COMPLETED:
          type: integer
          title: Completed
          default: 0
        PENDING:
          type: integer
          title: Pending
          default: 0
        RUNNING:
          type: integer
          title: Running
          default: 0
        FAILED:
          type: integer
          title: Failed
          default: 0
        CANCELLED:
          type: integer
          title: Cancelled
          default: 0
        CRASHED:
          type: integer
          title: Crashed
          default: 0
        PAUSED:
          type: integer
          title: Paused
          default: 0
        CANCELLING:
          type: integer
          title: Cancelling
          default: 0
        SCHEDULED:
          type: integer
          title: Scheduled
          default: 0
      type: object
      title: CountByState
    WorkPoolFilterId:
      properties:
        any_:
          anyOf:
          - items:
              type: string
              format: uuid
            type: array
          - type: 'null'
          title: Any
          description: A list of work pool ids to include
      additionalProperties: false
      type: object
      title: WorkPoolFilterId
      description: Filter by `WorkPool.id`.
    DeploymentFilterCreatedBy:
      properties:
        operator:
          $ref: '#/components/schemas/prefect_cloud__orion__schemas__filters__Operator'
          description: Operator for combining filter criteria. Defaults to 'and_'.
          default: and_
        id_:
          anyOf:
          - items:
              type: string
              format: uuid
            type: array
          - type: 'null'
          title: Id
          description: A list of creator IDs to include
        type_:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Type
          description: A list of creator types to include
        is_null_:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Is Null
          description: If true, only include deployments without a creator
      additionalProperties: false
      type: object
      title: DeploymentFilterCreatedBy
      description: Filter by `Deployment.created_by`.
    FlowRunFilterId:
      properties:
        any_:
          anyOf:
          - items:
              type: string
              format: uuid
            type: array
          - type: 'null'
          title: Any
          description: A list of flow run ids to include
        not_any_:
          anyOf:
          - items:
              type: string
              format: uuid
            type: array
          - type: 'null'
          title: Not Any
          description: A list of flow run ids to exclude
      additionalProperties: false
      type: object
      title: FlowRunFilterId
      description: Filter by FlowRun.id.
    WorkPoolFilter:
      properties:
        operator:
          $ref: '#/components/schemas/prefect_cloud__orion__schemas__filters__Operator'
          description: Operator for combining filter criteria. Defaults to 'and_'.
          default: and_
        id:
          anyOf:
          - $ref: '#/components/schemas/WorkPoolFilterId'
          - type: 'null'
          description: Filter criteria for `WorkPool.id`
        name:
          anyOf:
          - $ref: '#/components/schemas/WorkPoolFilterName'
          - type: 'null'
          description: Filter criteria for `WorkPool.name`
        type:
          anyOf:
          - $ref: '#/components/schemas/WorkPoolFilterType'
          - type: 'null'
          description: Filter criteria for `WorkPool.type`
        paused:
          anyOf:
          - $ref: '#/components/schemas/WorkPoolFilterPaused'
          - type: 'null'
          description: Filter criteria for `WorkPool.is_paused`
        status:
          anyOf:
          - $ref: '#/components/schemas/WorkPoolFilterStatus'
          - type: 'null'
          description: Filter criteria for `WorkPool.status`
        created_by:
          anyOf:
          - $ref: '#/components/schemas/WorkPoolFilterCreatedBy'
          - type: 'null'
          description: Filter criteria for `WorkPool.created_by`
        updated_by:
          anyOf:
          - $ref: '#/components/schemas/WorkPoolFilterUpdatedBy'
          - type: 'null'
          description: Filter criteria for `WorkPool.updated_by`
      additionalProperties: false
      type: object
      title: WorkPoolFilter
    TaskRunFilterExpectedStartTime:
      properties:
        before_:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Before
          description: Only include task runs expected to start at or before this time
        after_:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: After
          description: Only include task runs expected to start at or after this time
      additionalProperties: false
      type: object
      title: TaskRunFilterExpectedStartTime
      description: Filter by `TaskRun.expected_start_time`.
    FlowRunFilterStateName:
      properties:
        any_:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Any
          description: A list of flow run state names to include
        not_any_:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Not Any
          description: A list of flow run state names to exclude
      additionalProperties: false
      type: object
      title: FlowRunFilterStateName
    FlowRunFilterCreatedBy:
      properties:
        operator:
          $ref: '#/components/schemas/prefect_cloud__orion__schemas__filters__Operator'
          description: Operator for combining filter criteria. Defaults to 'and_'.
          default: and_
        id_:
          anyOf:
          - items:
              type: string
              format: uuid
            type: array
          - type: 'null'
          title: I

# --- truncated at 32 KB (88 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/prefect/refs/heads/main/openapi/prefect-ui-api-openapi.yml