---
title: "Onboard Subdomain"
method: POST
path: "/api/domains/{domain_id}/hosting/onboard-subdomain"
tags: ["hosting"]
---

# Onboard Subdomain

`POST /api/domains/{domain_id}/hosting/onboard-subdomain`

## Request

- Base URL: `https://api-v1.unusual.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api-v1.unusual.ai/api/domains/{domain_id}/hosting/onboard-subdomain`
- Auth: OAuth 2
  - Password
  - Token URL: `/auth/login`

Create/Upsert the Cloudflare Custom Hostname and return the DNS to set —
or, when the hostname is already demonstrably serving (a same-label
re-onboard of a live desk), report it active with nothing to do (D34,
onboard arm).

## Path parameters

- `domain_id` string, required

## Headers

- `x-view-as` string, nullable

## Request body

- SetupHostingRequest
  - `subdomain` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/unusual/apis/dashboard-server.md) - [All operations](https://skmtc.dev/unusual/apis/dashboard-server/llms.txt) - [OpenAPI document](https://skmtc.dev/unusual/apis/dashboard-server/revisions/89f716930ead?raw)
