> ## Documentation Index
> Fetch the complete documentation index at: https://support.muqtarah.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Version history

> Go back to any earlier version of your document, preview it as your client sees it, then restore it or make a new draft from it.

Muqtarah keeps a version of the document each time someone starts editing it, so you can go back to how it looked before any edit.

## When a version is kept

* A version is kept automatically when editing starts, and it is the document as it was before that edit.
* At most one version every 10 minutes per document, so continuous editing doesn't fill the history.
* A version that matches the one before it isn't kept.

A version keeps the document's content: its items, sections and their order, its template and its total. It doesn't keep the status, the number or who can open the link.

## Where to find it

* **On the document page:** the **History** tab next to **Activity**. You can read [Document page](https://support.muqtarah.app/en/documents/document-page.md).
* **In the editor:** the **Version history** button (the stack icon) in the top bar, which opens the history in a dialog.

At the top of the history is the **Current version**, what your client sees now, and under it the earlier versions grouped by day, with each version's time and the name of who started that edit.

## Preview a version

Click any version to see it as your client sees it, in the frame of the client page itself. A preview doesn't count as a view, and nobody can accept or sign the document from it. Go back to the list with **All versions**.

## Restore a version

1. Open the version, then click **Restore this version**.
2. Read the note, then click **Restore**.

The document's details go back to that version, and the state before the restore is kept in the history with the **Before restore** tag, so you can undo the restore itself. The document's status and link don't change, so your client sees the restored version on the same link.

> [!NOTE]
>
> If the editor is still saving, wait until saving finishes, then restore the version.

## New draft from a version

Click **New draft from it** to create a new document with this version's details. The original document stays as it is. The new document gets a new number and opens in the editor.

> [!WARNING]
>
> The new draft is a new document, so it counts toward your plan's monthly documents limit.

## Named versions

> [!NOTE]
>
> Naming versions is on the **Agency plan**.

Name a version you want to come back to later, like "Before the meeting": click **Name** next to the **Current version** or in any earlier version, type the name, then click **Save**. The version shows in the history with the **Named** tag and is kept as long as the document exists. You remove the name with **Remove the name**.

## How far back the history goes

Your plan sets how much of the history you see:

| Plan | What you see |
| - | - |
| **Free** | Versions from the last 24 hours |
| **Pro** | Versions from the last 7 days |
| **Agency** | Versions from the last 30 days, and named versions as long as the document exists |

Each plan shows the newest versions of a document inside its window, so when there are many, the history stops at the newest. We keep versions for longer than the plans show, so if you upgrade, older and more versions show right away. On Free and Pro, when there are versions your plan does not show, the end of the history says so.

## In a team

* Anyone who can open the document sees its history and previews its versions.
* Restoring is for people who can edit the document.
* A new draft is for people who can create documents.

Every restore shows in the **Activity** log with the name of who did it. You can read [Activity log](https://support.muqtarah.app/en/account/activity-log.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.