---
title: "Create a queue"
method: POST
path: "/v1/queues.create"
tags: ["Querator V1"]
---

# Create a queue

`POST /v1/queues.create`

Create a new queue with the provided characteristics

## Request body

- QueueInfo
  - `queue_name` string, required — The name of the queue
  - `created_at` string, date-time, required — The timestamp the queue was created
  - `updated_at` string, date-time, required — The timestamp the queue was last updated
  - `dead_queue` string, required — The name of the dead letter queue for this queue. If this is a dead letter queue then this field will be empty when retrieved via `/queue.list`
  - `reference` string, required — This is a user supplied field which could contain metadata or specify who owns this queue
  - `lease_timeout` string, required — The default lease timeout for this queue
  - `expire_timeout` string, required — How long an item can wait in the queue regardless of attempts before it is moved to the dead letter queue
  - `max_attempts` integer, required — The maximum number of times an item can be retried by a consumer before it is placed in the dead letter queue or removed. Infinite attempts if max_attempts is set to '0'. `lease_timeout` violations are included as attempts
  - `requested_partitions` integer, required — The number of partitions this queue has requested. This might be different than the number of currently active partitions as the system grows or contracts the number of partitions.

## Response `200`

- Reply
  - `code` integer, required — Response status code
  - `code_text` string — Human readable status message
  - `message` string — Additional details about the response

## Changes

- **2026-07-17** `b67c2fa641f7` — 1 breaking
  - request body became required
- **2025-06-09** `00a535961201` — 1 breaking, 1 warning
  - added the new required request property `queue_name`
  - removed the request property `name`
- **2025-06-05** `db1e2b747f3c` — 1 info
  - endpoint added
- **2024-09-15** `ba3240950bb2` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/kapetan-io/apis/querator-api/changes/v1/queues.create/post.md)

---

[API](https://skmtc.dev/kapetan-io/apis/querator-api.md) · [All operations](https://skmtc.dev/kapetan-io/apis/querator-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kapetan-io/querator-api/revisions/b67c2fa641f7/schema)
