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

# Count Work Pools

`POST /api/work_pools/count`

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.net/prefecthq/apis/untitled-api-2.md) · [All operations](https://skmtc.net/prefecthq/apis/untitled-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/prefecthq/untitled-api-2/revisions/29ba6c4f8837/schema)
