# POST /websites/:website_id/repo

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

Create a GitHub repository for this website in our org (from the website starter template) and store it on the website record. Use this to spin up a brand-new site before provisioning its deployment. Optional: repo_name, private (default true), description.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `website_id` | path | string | yes |  |
| `repo_name` | body | string | no | Repository name (defaults to a slug of the website name). |
| `private` | body | boolean | no | Whether the repo is private. Defaults to true. |
| `description` | body | string | no |  |
| `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/repo"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"repo_name":"...","private":"...","description":"..."}'
```

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