# Ajouter un sitemap — API CacheBoost

> Ajouter une URL de sitemap à un site.

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

---



Add an XML sitemap or Google Shopping feed URL to a site. CacheBoost downloads and parses it automatically in the background. Sitemap indexes are supported — child sitemaps are followed automatically.

**`POST /v1/sites/{id}/sitemaps`** — Scope: `sites:write`

## Body parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | Required | Full URL of an XML sitemap or Google Shopping feed (RSS/Atom). Must belong to the site's domain. |

## Example request

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

## Response

`201 Created` — new sitemap object.

```json
{
  "id": 7,
  "url": "https://www.example.com/sitemap.xml",
  "status": "waiting",
  "status_message": null,
  "last_processed_at": null,
  "created_at": "2025-01-15T10:30:00Z"
}
```

## Errors

| Code | Description |
|------|-------------|
| `401` | Missing or invalid API key |
| `403` | Insufficient scope or access denied |
| `404` | Site not found |
| `409` | Sitemap URL already exists for this site |
| `422` | Missing or invalid `url` |



---

**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
