Sitemap Detail
Returns a single sitemap with its full field set — the data behind the admin Marketing → Search & SEO → Sitemaps view screen.
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
generatedFiles— the actual XML files produced by the last generate run, one entry per channel. generatedFilesis 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 /) |
channels | integer[] | Channel ids the sitemap covers |
urls | string[] | Public index URL per channel — the link to submit to a search engine |
generatedAt | string | Timestamp of the last generate run, or null |
generatedFiles | object[] | What the last run wrote, one entry per channel: channelId, channelCode, hostname, index, sitemaps[] |
indexFile | string | Index path of a sitemap generated before generation became channel-aware. null for anything generated since — read generatedFiles |
generatedSitemaps | string[] | Child paths of a sitemap generated before generation became channel-aware. Empty for anything generated since — read generatedFiles |
createdAt | string | Creation timestamp |
updatedAt | string | Last-update timestamp |

