---
title: "Create a pool"
method: POST
path: "/api/pools"
tags: ["Pool"]
---

# Create a pool

`POST /api/pools`

Create a pool with the specified name and concurrency limit. A default pool is created with the account's concurrency limit if it does not exist. The default pool’s concurrency limit is reduced by the new pool’s concurrency limit. You cannot create a pool if the default pool has more running attempts than its new reduced concurrency limit.

## Request body

- RestPoolCreateRequest
  - `concurrencyLimit` integer, required — Maximum number of concurrent attempts that can run in this pool. Total concurrency limit of all pools cannot exceed the account's concurrency limit.
  - `name` string, required — Name of the pool. This name must be unique within the account.

## Response `201`

Pool created

- RestPool
  - `concurrencyLimit` integer, required — Maximum number of concurrent attempts that can run in this pool. Total concurrency limit of all pools cannot exceed the account's concurrency limit.
  - `default` boolean, required — Whether the pool is the default pool.
  - `id` string, required — ID of the pool.
  - `name` string, required — Name of the pool. This name must be unique within the account.

## Other responses

- `400` — Invalid request
- `403` — Forbidden
- `409` — Pool name is already used

---

[API](https://skmtc.net/treasure/apis/treasure-workflow.md) · [All operations](https://skmtc.net/treasure/apis/treasure-workflow/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/treasure/treasure-workflow/revisions/4eedf1838ef4/schema)
