Cosense icon

Cosense

Read and write pages in Cosense (formerly Scrapbox)

Page → Get Snapshot

AI-generated

Overview

This node operation retrieves a specific snapshot of a page from a Cosense (formerly Scrapbox) project. It is useful for accessing historical versions of a page at a particular timestamp, enabling users to view or analyze the state of the page at that moment in time. For example, it can be used to audit changes, recover previous content, or compare different versions of a page.

Use Case Examples

  1. Retrieve a snapshot of a project page by specifying the project name, page title, and the timestamp ID of the snapshot to get its content at that specific time.
  2. Use this operation to fetch historical data for a page to track changes or restore content from a previous version.

Properties

Name Meaning
Project Name The name of your Cosense/Scrapbox project where the page resides.
Page Title The title of the page to get the snapshot from.
Timestamp ID The timestamp ID of the snapshot to retrieve, identifying the specific version of the page.

Output

JSON

  • title - The title of the page snapshot.
  • lines - An array of lines representing the content of the page snapshot.
  • timestamp - The timestamp identifier of the snapshot.

Dependencies

  • Requires an API key credential for Cosense API authentication to access project and page data.

Troubleshooting

  • Common issues include invalid or missing project name, page title, or timestamp ID, which will cause the API call to fail.
  • Errors may occur if the timestamp ID does not correspond to any snapshot for the specified page.
  • Ensure the API credentials are correctly configured and have sufficient permissions to access the project and page data.
  • If the node throws an error, verify that the page and snapshot exist and that the parameters are correctly set.

Discussion