# POST /websites/github/connect-link

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

Workspace admins (and the agency that looks after the workspace): two links, valid for one hour, for the person who manages the GitHub account or organisation. `connect_url` is the usual one: they sign in with GitHub, any GitHub account with the TrustPager Sites app that they manage is connected to this workspace (one GitHub account can serve several workspaces), and if there is none they go on to install the app and choose which repos TrustPager may see. `url` goes straight to installing the app on a new account. Either way GitHub brings them back to TrustPager to finish. TrustPager can read the code in those repos and write website changes to them. Then call get_github_connection to confirm.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `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/github/connect-link"   -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`