# POST /websites/connect

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

Connect a website the business already has (on WordPress, Wix, Squarespace, Shopify, Webflow or built by their web designer). Records it, switches on visitor tracking (a paid extra, $5 a month) and sets up spam protection when asked, and returns copy-paste steps written for that platform: tracking code, chat code, booking links, and the developer guides for sending form enquiries into the CRM. Also runs a first live check of the site. For a brand new site use create_website_from_design instead.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `address` | body | string | yes | The website's address, for example "www.smithplumbing.com.au" or "https://smithplumbing.com.au". |
| `platform` | body | string | no | What the site is built on: wordpress, wix, squarespace, shopify, webflow, agency, github, other. Sets where each piece of code is pasted. Default other. |
| `goals` | body | array | no | What the site should do with TrustPager: leads (enquiries into the CRM), booking, chat, tracking (visitor tracking, a paid extra: $5 a month in credits per website, the rest of this month taken now; only when the person asks for it), bot_protection (spam protection, set up but left off). |
| `name` | body | string | no | A name for the website. Defaults to its address. |
| `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/connect"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"address":"...","platform":"...","goals":"..."}'
```

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