# POST /websites/:website_id/sitemaps

**Resource:** [Websites](./websites.md)  
**MCP tool:** `submit_website_sitemap`  
**Scopes:** `websites:write`  
**Write operation:** yes

Send a website's sitemap to Google Search Console, so Google finds every page. With no sitemap_url it sends every sitemap the website names: the Sitemap lines in its robots.txt, else /sitemap.xml (followed to where it redirects), else /sitemap-index.xml; 404 when the site has none. sitemap_urls lists what was sent. Needs website setup access: without it the answer is 409 MANAGE_ACCESS_NEEDED with the link a workspace admin opens to allow it (get_google_analytics_manage_link).

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `website_id` | path | string | yes | UUID of the website. Get ids from list_websites. |
| `sitemap_url` | body | string | no | The sitemap's full address, e.g. https://www.acme.com.au/sitemap-index.xml. Default: every sitemap the website names (its robots.txt Sitemap lines, else /sitemap.xml or /sitemap-index.xml). |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/websites/:website_id/sitemaps"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"sitemap_url":"...","require_approval":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`