# Get XML sitemap

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

## `GET /seo/sitemap.xml`

**Get XML sitemap**

Returns the generated XML sitemap combining auto-discovered pages
(contents, site blocks) and custom sitemap entries.

Required permissions: `sitemap.view`

### Responses

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


### Examples

```bash
# Returns XML — pipe to file or parse with xmllint
curl https://api.lynkow.com/v1/seo/sitemap.xml \
  -H "Authorization: Bearer $API_TOKEN"
```

### Response Example

```json
"The response is an XML document following the sitemap protocol:\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n  <url>\n    <loc>https://example.com/blog/getting-started</loc>\n    <lastmod>2025-04-05</lastmod>\n    <changefreq>weekly</changefreq>\n    <priority>0.8</priority>\n  </url>\n</urlset>\n"
```

---