Skip to content

Get Sitemap By Slug

GET
/api/sitemap/sitemap-{slug}.xml

Strapi v5 Content API endpoint handled by controller.getSitemapBySlug. Protected by Strapi Users & Permissions / API Token (bearerAuth); can be granted to the Public role in Strapi Settings.

slug
required
string

Target slug identifier

Successful response

UTF-8 XML feed / Sitemap document

string

Bad Request — validation or parameter error

Unauthorized — missing or invalid Bearer token

Forbidden — insufficient Strapi RBAC permissions