What it does
List site versions, newest first. limit defaults to 200 and cannot exceed 200. before, a version number, reads the next older page. next_before is set when another page remains.
Plans
Works on every plan: Free, Basic, Pro and Ultra.
Parameters
| Name | Type | About |
|---|---|---|
site_idrequired | string | The id of the site. list_sites gives the ids of your sites. |
limit | integer | How many versions to return. Default and maximum 200. |
before | integer | A version number. Returns older versions than that one, to page back. |
cursor | string | next_cursor from the previous page of this tool, to read the next page. Send the other arguments as on the first call; leave out the paging arguments the cursor replaces. |
Example
Call list_site_versions with these arguments:
{
"site_id": "01a1…",
"limit": 10
}
Ids like 01a1… stand for your own. list_sites and list_tables give you the real ones.
Related guides
- Drafts, versions and rollbackEvery publish is a version you can go back to.
- How publishing and review workDrafts, one-step publishing and Pagehive's review.