---
title: "Claim a parent domain (verify once, wildcard CNAME once)."
method: POST
path: "/parent-domains"
tags: ["Custom domains"]
---

# Claim a parent domain (verify once, wildcard CNAME once).

`POST /parent-domains`

## Request

- Base URL: `https://api.stacktr.ee`
- URL: `https://api.stacktr.ee/parent-domains`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://api.stacktr.ee/oauth/authorize`, token URL `https://api.stacktr.ee/oauth/token`, scopes: `sites:write`, `sites:read`)

Prove control of e.g. theiragency.com with one TXT record and point *.theiragency.com at the fallback origin with one wildcard CNAME. Every client-space hostname under it afterwards registers with zero DNS work. The claim also RESERVES the domain: other accounts cannot register hostnames beneath it.

## Request body

- object
  - `domain` string, required

## Response `201`

Claim issued; add the TXT + wildcard CNAME records returned in `instructions`, then verify.

- object
  - `ok` boolean, required

## Other responses

- `409`: Claimed by another account.

---

[API](https://skmtc.dev/stacktr/apis/stacktree-api.md) · [All operations](https://skmtc.dev/stacktr/apis/stacktree-api/llms.txt) · [OpenAPI document](https://skmtc.dev/stacktr/apis/stacktree-api/revisions/5878cce46977?raw)
