---
title: "Create Host"
method: POST
path: "/admin/hosts"
---

# Create Host

`POST /admin/hosts`

## Request

- Base URL: `https://api.xhostd.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xhostd.com/admin/hosts`
- Auth: none declared

## Headers

- `authorization` string, nullable

## Request body

- CreateHostRequest
  - `public_fqdn` string, required
  - `provider` string, required
  - `site` string, required
  - `machine_class` string, nullable

## Response `200`

Successful Response

- CreateHostResponse
  - `host_id` string, uuid, required
  - `name` string, required
  - `overlay_ip` string, required
  - `enrollment_token` string, required

## Other responses

- `422`: Validation Error

---

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