# GET /websites/:website_id/github

**Resource:** [Websites](./websites.md)  
**MCP tool:** `get_website_github`  
**Scopes:** `websites:read`  
**Write operation:** no

A website's GitHub connection (repo, branch, auto-publish, build command) and its latest syncs, newest first. Each sync shows its commit, status (queued, copying, building, ready, published, failed, superseded), preview address and, for a failed build, the end of the build log so the code can be fixed and pushed again. Publish a ready preview with publish_website_preview.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `website_id` | path | string | yes | UUID of the website. Get ids from list_websites. |
| `limit` | query | number | no | How many recent syncs, 1 to 50. Default 10. |

## Request example

```bash
curl   "https://api.trustpager.com/functions/v1/api/v1/websites/:website_id/github"   -H "Authorization: Bearer YOUR_API_KEY"
```

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