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

# Create site

`POST /api/sites`

## Request

- Base URL: `https://demo.hitkeep.com`
- URL: `https://demo.hitkeep.com/api/sites`
- Auth: API key in cookie `hk_token`

Creates a new tracked site using an apex domain or subdomain without protocol, port, path, query, fragment, or www prefix.

## Request body

- object
  - `domain` string, required: Apex domain or subdomain without protocol, port, path, query, fragment, or www prefix (e.g. example.com or blog.example.com).

## Response `200`

Site

- Site
  - `created_at` string, date-time
  - `data_retention_days` integer
  - `domain` string
  - `id` string, uuid
  - `user_id` string, uuid

## Other responses

- `400`: Invalid domain
- `409`: Domain exists

---

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