---
title: "Add custom domain (Vercel project must be configured)"
method: POST
path: "/api/v1/sites/{subdomain}/domains"
tags: ["domains"]
---

# Add custom domain (Vercel project must be configured)

`POST /api/v1/sites/{subdomain}/domains`

## Request

- Base URL: `https://slatehut.com`
- URL: `https://slatehut.com/api/v1/sites/{subdomain}/domains`
- Auth: HTTP bearer

Registers exactly the given `hostname` on the Vercel project (e.g. `example.com` or `www.example.com`). Add each variant separately if you need both.

## Request body

- object
  - `hostname` string, required

## Response `201`

domain

## Other responses

- `409`: Validation or conflict error

---

[API](https://skmtc.dev/slatehut/apis/slatehut-api.md) · [All operations](https://skmtc.dev/slatehut/apis/slatehut-api/llms.txt) · [OpenAPI document](https://skmtc.dev/slatehut/apis/slatehut-api/revisions/32dae277550c?raw)
