List Sitemaps
Lists every sitemap definition in the store — the data behind the admin Marketing → Search & SEO → Sitemaps datagrid.
TIP
New here? Read the Sitemaps overview for what a sitemap does and how its fields behave.
Operation
| Operation | Type | Purpose |
|---|---|---|
adminMarketingSitemaps | Query | Cursor-paginated list of all sitemaps |
Details
- Requires an admin Bearer token in the
Authorizationheader. - Cursor pagination — pass
firstfor the page size andafter(theendCursorfrom the previous page) to advance.totalCountis the grand total. - Each
nodecarries the flat sitemap fields shown in the example. TheindexFileandgeneratedSitemapspaths resolve only on the detail query — they are omitted from list rows.
Filtering
Pass any of these arguments alongside first / after (they mirror the admin datagrid filters):
| Argument | Description |
|---|---|
fileName | File name — partial match |
sort, order | Sort field (id, file_name) + asc / desc (default id desc) |

