# POST /websites/:website_id/builder/restore

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

Go back to a restore point in the AI website builder's draft: the preview returns to exactly how it was after that request, and later changes are undone. restore_point_id 0 undoes every change since the last publish. Only the draft changes; the live website is not affected.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `website_id` | path | string | yes | The website UUID (from list_websites). |
| `restore_point_id` | body | number | yes | An id from restore_points in get_website_builder, or 0 to undo every unpublished change. |
| `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/builder/restore"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"restore_point_id":"...","require_approval":"..."}'
```

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