---
title: "Create Work Queue"
method: POST
path: "/api/work_queues/"
tags: ["Work Queues"]
---

# Create Work Queue

`POST /api/work_queues/`

Creates a new work queue.

If a work queue with the same name already exists, an error
will be raised.

## Headers

- `x-prefect-api-version` string

## Request body

- WorkQueueCreate — Data used by the Prefect REST API to create a work queue.
  - `name` string, required — The name of the work queue.
  - `description` string — An optional description for the work queue.
  - `is_paused` boolean — Whether or not the work queue is paused.
  - `concurrency_limit` integer — The work queue's concurrency limit.
  - `priority` integer — The queue's priority. Lower values are higher priority (1 is the highest).
  - `filter` QueueFilter — Filter criteria definition for a work queue.
    - `tags` string[] — Only include flow runs with these tags in the work queue.
    - `deployment_ids` string[] — Only include flow runs from these deployments in the work queue.

## Response `201`

Successful Response

- WorkQueueResponse — An ORM representation of a work queue
  - `id` string, uuid
  - `created` string, date-time
  - `updated` string, date-time
  - `name` string, required — The name of the work queue.
  - `description` string — An optional description for the work queue.
  - `is_paused` boolean — Whether or not the work queue is paused.
  - `concurrency_limit` integer — An optional concurrency limit for the work queue.
  - `priority` integer — The queue's priority. Lower values are higher priority (1 is the highest).
  - `work_pool_id` string, uuid — The work pool with which the queue is associated.
  - `filter` QueueFilter — Filter criteria definition for a work queue.
    - `tags` string[] — Only include flow runs with these tags in the work queue.
    - `deployment_ids` string[] — Only include flow runs from these deployments in the work queue.
  - `last_polled` string, date-time — The last time an agent polled this queue for work.
  - `work_pool_name` string — The name of the work pool the work pool resides within.
  - `status` 'READY' | 'NOT_READY' | 'PAUSED' — Enumeration of work queue statuses.

## 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)
