Keystone Developers
Open Keystone
API reference

Public API

Sitemap

1 endpoint.

GET/api/v1/public/sitemap/current

Serve the website sitemap (XML)

Serve the latest persisted sitemap.

If nothing is stored yet (cold start), build + persist once and serve. The cold build skips per-file commit lookups (lastmod = now) so the first request never waits on them; a debounced background refresh then fills in the real dates. If that persist can't complete, fall back to building the sitemap on the fly so a real site always gets a valid response.

Parameters

NameInTypeDescription
X-API-Keyheaderstring | null

Responses

200Successful Response
application/xmlstring
  • 400Bad request
  • 401Unauthorized
  • 403Forbidden
  • 404Not found
  • 422Validation error
  • 500Internal server error
  • 503Service unavailable

Error bodies: ErrorResponse. See Errors.