# POST /websites/:website_id/search-console-setup

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

Set up Google Search Console for a website in one call: uses the verified site that already covers it, or proves the business owns it (a verification tag on websites TrustPager hosts, the website's Google Analytics tag, or a DNS record) and adds it, sends every sitemap the website names (sitemap_urls), and links the website so get_website_search_traffic and the Traffic tab read it. Safe to run again. status "ok", or "verification_needed" with dns_record (type, name, value): the owner adds that TXT record where the domain is managed, then run this again to finish. On a website whose own code does not print the saved verification tag, tag_on_site is false and meta_tag is the tag to paste into the head of its pages instead. 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. |
| `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/search-console-setup"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"require_approval":"..."}'
```

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