# POST /websites/:website_id/preview

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

Take a new picture of a website as it looks live now (the top of its home page, desktop size). It is stored on the website as preview_image_url (read it with get_website or list_websites) and shown on the website card in the app. Pictures are already taken automatically after every publish, redeploy and connection check, so only call this to refresh one by hand. Answers at once; the picture is usually ready within a minute. Fails if the website has no live address yet.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `website_id` | path | string | yes | UUID of the website. Get ids from list_websites. |

## Request example

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

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