Sitemap Detail
Returns a single sitemap with its full field set — the data behind the admin Marketing → Search & SEO → Sitemaps view screen.
TIP
New here? Read the Sitemaps overview for what a sitemap does and how its fields behave.
Endpoint
| Endpoint | Method |
|---|---|
/api/admin/marketing/sitemaps/{id} | GET |
Details
- Requires an admin Bearer token in the
Authorizationheader. - Unlike list rows, the detail endpoint returns
indexFileandgeneratedSitemaps— the actual XML files produced by the last generate run. indexFileisnullandgeneratedSitemapsis empty until the sitemap has been generated at least once.- An unknown id returns a
404.
Response fields
| Field | Type | Notes |
|---|---|---|
id | int | Numeric id |
fileName | string | Index file name (ends with .xml) |
path | string | Path where the index file is written (starts and ends with /) |
generatedAt | string | Timestamp of the last generate run, or null |
indexFile | string | Path of the generated index file, or null before first generate |
generatedSitemaps | string[] | Paths of the per-batch product / category / page XML files |
createdAt | string | Creation timestamp |
updatedAt | string | Last-update timestamp |

