---
title: "Create a site"
method: POST
path: "/sites"
tags: ["Sites"]
---

# Create a site

`POST /sites`

## Request

- Base URL: `https://api.universally.com`
- URL: `https://api.universally.com/sites`
- Auth: API key in header `X-API-Key`

Creates a site in the workspace this API key belongs to. Don't send a workspaceId — it's taken from the key.

## Request body

- object
  - `name` string, required
  - `domain` string
  - `sourceLanguage` string, required
  - `tech` 'wordpress' | 'website' | 'lovable' | 'framer' | 'webflow' | 'tilda' | 'duda' | 'squarespace' | 'weebly' | 'shopify' | 'app' | 'astro', required
  - `subdomain` boolean
  - `servingMode` 'plugin' | 'shopify' | 'subdomain' | 'javascript' | 'domain' | 'sdk'

## Response `200`

Success

- object
  - `success` boolean
  - `data` unknown
  - `message` string, nullable
  - `code` string

## Other responses

- `default`: Error

---

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