---
title: "Count Work Pools"
method: POST
path: "/api/work_pools/count"
tags: ["Work Pools"]
---

# Count Work Pools

`POST /api/work_pools/count`

## Request

- The document declares no server URL.
- Auth: none declared

Count work pools

## Headers

- `x-prefect-api-version` string

## Request body

- BodyCountWorkPoolsWorkPoolsCountPost
  - `work_pools` WorkPoolFilter: Filter work pools. Only work pools matching all criteria will be returned
    - `operator` 'and_' | 'or_': Operators for combining filter criteria.
    - `id` WorkPoolFilterId: Filter by `WorkPool.id`.
      - `any_` string[]: A list of work pool ids to include
    - `name` WorkPoolFilterName: Filter by `WorkPool.name`.
      - `any_` string[]: A list of work pool names to include
    - `type` WorkPoolFilterType: Filter by `WorkPool.type`.
      - `any_` string[]: A list of work pool types to include

## Response `200`

Successful Response

- integer

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/prefecthq/apis/prefect-unreleased-api.md) - [All operations](https://skmtc.dev/prefecthq/apis/prefect-unreleased-api/llms.txt) - [OpenAPI document](https://skmtc.dev/prefecthq/apis/prefect-unreleased-api/revisions/29ba6c4f8837?raw)
