# Restore landing page version

`POST https://api.tentary.com/v1/landing-pages/{page_id}/versions/{version_id}/restore`

Source: https://tentary.com/en/help/api/restore-landing-page-version/
Area: Landing pages
MCP tool: `restore_landing_page_version`. Changes data at once.

---

Puts the HTML of an earlier version back on an `html` landing page. On a live page, the change is live at once.

- `title`, `url_slug`, `status` and `affiliates` stay.
- The HTML before the restore becomes a version itself, so a restore can be undone the same way.
- The restore is refused when the HTML of the version breaks the current rules for HTML pages.

The answer is the page, as in [`PATCH /v1/landing-pages/{page_id}`](https://tentary.com/en/help/api/update-landing-page/).

## Authorization

`Authorization: Bearer <API key>`

A personal API key (tnt_...), created in the Tentary app on the page AI & API, or an access token of the Tentary app for iPhone and Android.

## Path parameters

- `page_id` (integer, required, path): The id from list_landing_pages. Limits: min 1.
- `version_id` (integer, required, path): A version_id from get_landing_page. Limits: min 1.

## Response

- `id` (integer): The ID.
- `title` (string): Name in the Tentary app.
- `type` (string): html = own HTML code. builder = made with the page builder in the app. Allowed values: `html`, `builder`.
- `status` (string): draft = not public: its URL opens the shop. Allowed values: `live`, `draft`.
- `url_slug` (string): The address part of the URL.
- `url` (string<uri>): shop URL/<url_slug>.
- `affiliates` (boolean): true = shown to the affiliates in their affiliate hub.
- `created_at` (string<date-time>, can be null): UTC, like 2026-01-31T14:05:00Z.
- `admin_url` (string<uri>): The page in the Tentary app.

## Example request

```bash
curl -X POST "https://api.tentary.com/v1/landing-pages/901/versions/951/restore" \
  -H "Authorization: Bearer $TENTARY_API_KEY"
```

## Example response

```json
{
  "id": 901,
  "title": "Retreat 2027",
  "type": "html",
  "status": "live",
  "url_slug": "retreat-2027",
  "url": "https://lena-yoga.mytentary.com/retreat-2027",
  "affiliates": false,
  "created_at": "2026-11-08T10:00:00Z",
  "admin_url": "https://app.tentary.com/landingpages/edit-html/901"
}
```
