---
title: "Create a new site"
method: POST
path: "/api/v1/site"
tags: ["Site"]
---

# Create a new site

`POST /api/v1/site`

Creates a new site with the provided properties including hostname, aliases, tag storage, SEO settings, and optional site variables.

## Response `200`

Site created successfully

- ResponseEntitySiteView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` object
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `400` — Invalid site data (e.g., missing site name, invalid identifier format)
- `401` — Unauthorized access
- `403` — User does not have permission to create sites
- `409` — Site with the same name already exists

---

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