# POST /websites/:website_id/builder/publish

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

Publish the AI website builder's draft to the live website: every file not published yet goes live in one update, and the site rebuilds in a minute or two. A site built from its own GitHub repo gets the changes committed to its connected branch and goes live once the preview builds; when that branch is protected on GitHub it gets a pull request instead (pull_request_url). Refused with a conflict when the same files changed on the live site since the draft started. Check the preview first.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `website_id` | path | string | yes | The website UUID (from list_websites). |
| `message` | body | string | no | Optional note describing the update, up to 300 characters. |
| `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/builder/publish"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"message":"...","require_approval":"..."}'
```

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