Actions15
Overview
This node interacts with Cosense (formerly Scrapbox) to retrieve information about deleted pages within a specified project. The "Get Deleted Page" operation fetches details of a page that has been deleted, identified by its unique page ID. This is useful for scenarios where you need to audit or recover metadata about deleted content in your Cosense projects.
Practical examples include:
- Auditing deleted pages to track changes or removals.
- Recovering information about deleted pages for backup or restoration purposes.
- Integrating with workflows that monitor project content lifecycle.
Properties
| Name | Meaning |
|---|---|
| Project Name | The name of your Cosense/Scrapbox project from which the deleted page will be retrieved. |
| Page ID | The unique identifier of the deleted page to fetch information about. |
Output
The output JSON contains the detailed information of the deleted page as returned by the Cosense API. This typically includes metadata such as the page's title, deletion timestamp, and possibly other attributes related to the deleted page record.
No binary data is output by this operation.
Example output structure (simplified):
{
"id": "5f1234567890abcdef123456",
"title": "Deleted Page Title",
"deletedAt": "2023-01-01T12:00:00Z",
"otherMetadata": "..."
}
Dependencies
- Requires an API key credential for authenticating with the Cosense API.
- The node depends on the bundled
CosenseApiClientclass to communicate with the Cosense service. - The user must provide the correct project name and deleted page ID to successfully retrieve the data.
Troubleshooting
- Invalid Project Name or Page ID: If the project name or deleted page ID is incorrect or does not exist, the API call will fail. Verify these inputs carefully.
- Authentication Errors: Ensure that a valid API key credential is configured in n8n for accessing Cosense.
- Network Issues: Connectivity problems may cause request failures; check network access to the Cosense API endpoint.
- API Rate Limits: Excessive requests might be throttled by the Cosense API; consider adding delays or handling rate limit errors gracefully.
Common error messages:
"Page not found": The deleted page ID does not correspond to any deleted page in the specified project."Unauthorized": The API key credential is missing or invalid."Invalid project name": The project name does not match any existing project accessible by the API key.
Resolving these usually involves verifying credentials, input parameters, and network connectivity.
Links and References
- Cosense Official Website
- Scrapbox API Documentation (Cosense)
- n8n Documentation on Creating Custom Nodes