# Créer un site — API CacheBoost

> Ajouter un nouveau site et obtenir un token de validation.

Source: https://www.cache-boost.com/fr/support/api-reference/sites/create.md
Language: fr

---



Add a new site. Returns a `validation_token` needed to prove site ownership. Unverified sites are capped at 10 URLs per boost.

**`POST /v1/sites`** — Scope: `sites:write`

## Body parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `domain` | string | Required | Domain without scheme or trailing slash. `https://` prefix is stripped automatically. |

## Example request

```bash
curl -X POST https://api.cache-boost.com/v1/sites \
  -H "Authorization: Bearer cb_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain": "www.example.com"}'
```

## Response

`201 Created` — new site object.

```json
{
  "id": 42,
  "domain": "www.example.com",
  "validated": false,
  "validation_token": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
  "created_at": "2025-01-15T10:30:00Z"
}
```

Use the `validation_token` to verify site ownership. See: https://www.cache-boost.com/support/guides/allow-traffic

## Errors

| Code | Description |
|------|-------------|
| `401` | Missing or invalid API key |
| `403` | Insufficient scope |
| `422` | Missing or invalid `domain` |



---

**CacheBoost** — Automatic cache warming for faster websites.

- Website: https://www.cache-boost.com
- Full content (all pages): https://www.cache-boost.com/llms-full.txt
- LLM index: https://www.cache-boost.com/llms.txt
- Documentation: https://www.cache-boost.com/support/getting-started/introduction
- Start free: https://www.cache-boost.com/try
