# Preview complete sitemap

**Publié le** : 2026-05-08
**Catégorie** : SEO & Analytics

## `GET /sitemap/preview`

**Preview complete sitemap**

Returns a preview of the full sitemap including both auto-generated
and custom entries. Useful for verifying the sitemap before it goes live.

Required permissions: `sitemap.view`

### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `401` | Unauthorized — invalid or missing API token |
| `403` | Forbidden — insufficient permissions |


### Examples

```bash
# Returns the full XML sitemap preview
curl https://api.lynkow.com/v1/sitemap/preview \
  -H "Authorization: Bearer $API_TOKEN"
```

### Response Example

```json
{
  "data": [
    {
      "url": "https://www.example.com/blog/getting-started",
      "lastmod": "2025-04-05",
      "changefreq": "weekly",
      "priority": 0.8,
      "source": "content"
    },
    {
      "url": "https://www.example.com/about",
      "lastmod": "2025-03-20",
      "changefreq": "monthly",
      "priority": 0.6,
      "source": "site-block"
    },
    {
      "url": "https://www.example.com/pricing",
      "lastmod": "2025-04-01",
      "changefreq": "monthly",
      "priority": 0.8,
      "source": "custom"
    }
  ]
}
```

---