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

# POST /api/sites

`POST /api/sites`

## Request

- Base URL: `https://cronitor.io`
- URL: `https://cronitor.io/api/sites`
- Auth: HTTP basic

## Headers

- `Cronitor-Version` '2025-11-28' | '2020-10-01'

## Request body

- SiteRequest
  - `name` string, required
  - `public_report_enabled` boolean
  - `webvitals_enabled` boolean
  - `errors_enabled` boolean
  - `filter_localhost` boolean
  - `filter_bots` boolean
  - `filter_browser_extensions` boolean
  - `exclude_internal_referrers` boolean
  - `origin_allowlist` string, nullable
  - `ip_denylist` string, nullable
  - `country_code_denylist` string, nullable
  - `path_denylist` string, nullable
  - `sampling` integer

## Response `201`

- Site
  - `key` string, required
  - `name` string, required
  - `client_key` string, required
  - `public_report_enabled` boolean
  - `public_report_key` string, required
  - `webvitals_enabled` boolean
  - `errors_enabled` boolean
  - `filter_localhost` boolean
  - `filter_bots` boolean
  - `filter_browser_extensions` boolean
  - `exclude_internal_referrers` boolean
  - `origin_allowlist` string, nullable
  - `ip_denylist` string, nullable
  - `country_code_denylist` string, nullable
  - `path_denylist` string, nullable
  - `snippet` string, nullable, required
  - `sampling` integer
  - `ingestion_enabled` boolean, required
  - `created` string, date-time, required
  - `updated` string, date-time, required

---

[API](https://skmtc.dev/cronitor/apis/cronitor-api.md) - [All operations](https://skmtc.dev/cronitor/apis/cronitor-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cronitor/apis/cronitor-api/revisions/62fb38ef4462?raw)
