---
title: "Generate an XML sitemap for the site"
method: POST
path: "/v3/sitemaps/generate"
tags: ["Sitemaps"]
---

# Generate an XML sitemap for the site

`POST /v3/sitemaps/generate`

Builds an XML sitemap from the team's crawled pages, honouring the excluded-URL rules. With makePublic=true it PUBLISHES the sitemap to a public URL that search engines can fetch — that is outward-facing, so confirm with the user before setting it. Leave makePublic false to just produce the file.

## Request body

- object
  - `teamId` string, required — SnowSEO team ID. Call list_teams first to choose a team.
  - `makePublic` boolean — Publish the sitemap at a public URL. Outward-facing — ask the user first.

## Response `200`

Default Response

---

[API](https://skmtc.net/snowseo/apis/snowseo-api.md) · [All operations](https://skmtc.net/snowseo/apis/snowseo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/snowseo/snowseo-api/revisions/4532e367c679/schema)
