# POST /websites/:website_id/github/sync

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

Workspace admins (and the agency): copy the connected branch's latest commit in and build a preview now, like the Sync now button. Counts toward the workspace's 20 builds a day. Watch it with get_website_github.

## 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/github/sync"   -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`