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

# Create a queue

`POST /v1/queue.create`

Create a new queue with the provided characteristics

## Request body

- QueueInfo
  - `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
  - `reserve_timeout` string, required — The default reservation timeout for this queue
  - `dead_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 defered by a consumer before it is placed in the dead letter queue. This includes cases where the 'deadline' was exceeded and the item was retried.
  - `requested_partitions` integer, required — The number of partitions this queue hasrequested. This might be different than the number of currently active partitionsas the system grows or contracts the number of partitions.

## Response `200`

- Reply
  - `code` integer, required
  - `code_text` string, required
  - `message` string, required
  - `details` object, required
    - `key` string, required

## Changes

- **2024-09-16** `22a36c374092` — 11 warning, 5 info
  - removed the optional property `actual_partitions` from the response with the `200` status
  - removed the optional property `created` from the response with the `200` status
  - removed the optional property `dead_queue` from the response with the `200` status
  - removed the optional property `deadline` from the response with the `200` status
  - …12 more
- **2024-09-15** `ba3240950bb2` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/kapetan-io/apis/querator-api/changes/v1/queue.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/36fb0df413ee/schema)
