---
name: "website_rollback"
area: "websites"
title: "Go back to an earlier version"
price: "$0.01"
method: "POST"
url: "https://api.conecto.chat/v1/tools/website_rollback"
mcp_server: "https://api.conecto.chat/mcp/websites"
auth: "Authorization: Bearer <conecto_sk_ key>"
docs_url: "https://conecto.chat/tools/websites/website_rollback"
---

# Go back to an earlier version (`website_rollback`)

Publishes one of the kept versions again; the draft stays as it is.

Publish one of the kept versions again (website_get lists them). The draft stays as it is.

Price: $0.01 a call. A call that fails costs nothing.

## Use it when

A publish went wrong and the site should look as it did before.

## Say this to your agent

> Yesterday's change broke the home page. Go back to the version before it.

## Inputs

| Name | Type | Required | Description | Allowed values | Default |
|---|---|---|---|---|---|
| `site` | string | yes | The site's name, as in cncto.co/w/<name>. 3 to 60 characters. |  |  |
| `version` | integer | yes | At least 1. |  |  |

## Example

Written for Halverson Cycle & Repair, a bike shop with a repair workshop in Portland, Oregon.

MCP: call `website_rollback` on the MCP server `https://api.conecto.chat/mcp/websites` with these arguments:

```json
{
  "site": "halverson-cycle",
  "version": 1
}
```

REST:

```bash
curl https://api.conecto.chat/v1/tools/website_rollback \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"site": "halverson-cycle", "version": 1}'
```

## Response

```json
{
  "call_id": "5f0c8a2e-3b7d-4c1e-9a64-2d8e1f7b0c93",
  "tool": "website_rollback",
  "status": "succeeded",
  "replayed": false,
  "cost_usd": "$0.01",
  "balance_usd": "$19.75",
  "result": {
    "site": {
      "name": "halverson-cycle",
      "title": "Halverson Cycle & Repair",
      "description": "Bikes, repairs and fittings from our workshop in Portland.",
      "language": "en",
      "address": "https://cncto.co/w/halverson-cycle/",
      "published": true,
      "live_version": 3,
      "rent": {
        "rental_id": 4101,
        "kind": "website",
        "label": "Website: cncto.co/w/halverson-cycle",
        "status": "active",
        "monthly_usd": "$5.00",
        "renews_at": "2026-11-14T08:00:00+00:00",
        "grace_until": null
      },
      "settings": {},
      "updated_at": "2026-10-14T08:00:00+00:00"
    },
    "version": 3,
    "copied_from": 1
  }
}
```

`result`: The site, the new version number, and copied_from: the version published again.

## Errors

| Code | Status | When | Fix |
|---|---|---|---|
| `not_found` | 404 | No website of the business has that name. | Call website_list and use one of its names. |
| `not_found` | 404 | No kept version has that number. | Call website_get to see the versions. |
| `not_published` | 409 | The site is not published. | Publish it with website_publish first. |

The refusals every tool can give (401 key, 402 balance, 429 limits) are on the errors page: https://conecto.chat/docs/errors.md

## Related

- [website_create](https://conecto.chat/tools/websites/website_create.md): Starts a website for the business at cncto.co/w/<name> as a draft with a home page, in its brand. $0.01 a call.
- [website_save_page](https://conecto.chat/tools/websites/website_save_page.md): Creates or changes a page of the draft from sections, or a blog post in Markdown. $0.01 a call.
- [website_settings](https://conecto.chat/tools/websites/website_settings.md): Changes the site's title, description, language, footer, header button, blog, and whether its pages carry the analytics script and the chat. $0.001 a call.
- [website_preview](https://conecto.chat/tools/websites/website_preview.md): A private link to the draft as it would look published, working for 24 hours. Free up to 1,000,000 reads a month.
- [website_publish](https://conecto.chat/tools/websites/website_publish.md): Puts the draft online; the first publish starts the monthly rent, later ones cost the price of an edit. $5 for the first publish (the first month of the site's rent), $0.01 after that ($5.00 the first time, then $0.01), up to $5.00.
- [website_get](https://conecto.chat/tools/websites/website_get.md): A site with every page of its draft, its settings, its kept versions, and whether the draft has unpublished changes. Free up to 1,000,000 reads a month.
- [website_list](https://conecto.chat/tools/websites/website_list.md): The business's websites, published or not. Free up to 1,000,000 reads a month.
- [website_delete_page](https://conecto.chat/tools/websites/website_delete_page.md): Removes a page or post from the draft; the home page stays. $0.001 a call.
- [website_unpublish](https://conecto.chat/tools/websites/website_unpublish.md): Takes the site offline and ends its rent; the draft and versions stay. Free.
- [website_delete](https://conecto.chat/tools/websites/website_delete.md): Deletes a site for good, with its pages, versions and address; the name is never used again. Free.
