---
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

## Changes

- **2026-08-14** `c6b2fabd21be` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/snowseo/apis/snowseo-api/changes/v3/sitemaps/generate/post.md)

---

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