Actions15
Overview
This node integrates with Cosense (formerly Scrapbox) to interact with pages within a project. Specifically, the "Get Snapshots" operation under the "Page" resource retrieves all snapshots (historical versions) of a specified page in a given project. This is useful for users who want to track changes over time, audit edits, or restore previous versions of a page.
Common scenarios:
- Auditing changes made to a page by viewing its snapshots.
- Retrieving historical data for backup or analysis.
- Implementing version control workflows on Cosense pages.
Example use case:
You have a project named "my-project" and want to fetch all snapshots of the page titled "Meeting Notes" to review how the content evolved over time.
Properties
| Name | Meaning |
|---|---|
| Project Name | The name of your Cosense/Scrapbox project where the page resides. |
| Page Title | The title of the page for which you want to get all snapshots (historical versions). |
Output
The output is an array of snapshot objects representing different saved states of the specified page. Each snapshot typically contains metadata such as timestamp IDs, content at that point in time, and possibly other related information about the page's state when the snapshot was taken.
The output JSON structure will look like an array of objects, each describing one snapshot. The exact fields depend on the Cosense API response but generally include identifiers and content details.
No binary data is output by this operation.
Dependencies
- Requires access to the Cosense API via an API key credential configured in n8n.
- The node uses the Cosense API client internally to communicate with the Cosense service.
- The user must provide valid project and page identifiers.
Troubleshooting
Common issues:
- Incorrect project name or page title may result in no snapshots found or errors.
- Missing or invalid API credentials can cause authentication failures.
- Network connectivity issues may prevent communication with the Cosense API.
Error messages:
"Page not found": Verify the project name and page title are correct."Authentication failed": Check that the API key credential is properly set up and valid."Rate limit exceeded": Too many requests sent in a short period; try again later.
Resolving these usually involves verifying input parameters, ensuring credentials are correctly configured, and checking network status.
Links and References
- Cosense Official Website
- Scrapbox Documentation (legacy)
- Cosense API Documentation (if publicly available)