# POST /websites/:website_id/deploy

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

Trigger a fresh deployment of the website from its connected git branch (default main). Use to rebuild without pushing new code.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `website_id` | path | string | yes |  |
| `branch` | body | string | no | Branch to deploy. Defaults to main. |
| `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/deploy"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"branch":"..."}'
```

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