---
title: "Add a CAPTCHA domain"
method: POST
path: "/clusters/{cluster_id}/security/captcha/domains"
tags: ["Cluster Security"]
---

# Add a CAPTCHA domain

`POST /clusters/{cluster_id}/security/captcha/domains`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/clusters/{cluster_id}/security/captcha/domains`
- Auth: API key in header `API-Key`

Registers a hostname for CAPTCHA protection. Returns `409` if the hostname is already registered and `402` if the per-cluster domain limit has been reached.

Required scope: `clusters:security:write`

## Path parameters

- `cluster_id` string, uuid, required

## Headers

- `API-Version` '2026-06-01.beta', required

## Request body

- AddCAPTCHADomainRequest
  - `hostname` string, required

## Response `201`

The request has succeeded and a new resource has been created as a result.

- CAPTCHADomain: A hostname registered for CAPTCHA protection.
  - `hostname` string, required
  - `created_at` string, date-time, required

## Other responses

- `401`: Access is unauthorized.
- `402`: Client error
- `403`: Access is forbidden.
- `404`: The server cannot find the requested resource.
- `409`: The request conflicts with the current state of the server.
- `422`: Client error
- `429`: Client error
- `500`: Server error
- `501`: Server error

---

[API](https://skmtc.dev/skycloak/apis/skycloak-public-api.md) · [All operations](https://skmtc.dev/skycloak/apis/skycloak-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/skycloak/apis/skycloak-public-api/revisions/33a69e2ce35f?raw)
