---
title: "Create a custom subdomain"
method: POST
path: "/projects/{slug}/subdomains"
tags: ["Publishing"]
---

# Create a custom subdomain

`POST /projects/{slug}/subdomains`

Create a custom subdomain for the project's team. Connect it with updateProjectUrl. Requires a paid plan.

## Path parameters

- `slug` string, required

## Request body

- object
  - `subdomain` string, required — The subdomain label (lowercase letters, numbers, hyphens).

## Response `200`

Subdomain created

- object
  - `success` boolean, required
  - `subdomain` object, required
    - `id` string, required
    - `subdomain` string, required

## Other responses

- `400` — Validation error
- `403` — Paid plan required or subdomain limit reached
- `409` — Subdomain already taken

---

[API](https://skmtc.dev/faces/apis/faces-api.md) · [All operations](https://skmtc.dev/faces/apis/faces-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/faces/faces-api/revisions/83197d741969/schema)
