Cosense icon

Cosense

Read and write pages in Cosense (formerly Scrapbox)

Overview

This node integrates with Cosense (formerly Scrapbox) to retrieve and manipulate pages within a Cosense project. Specifically, the "Get Page" operation fetches the content and metadata of a single page by its title from a specified project.

Typical use cases include:

  • Automating retrieval of page data for further processing or analysis.
  • Integrating Cosense page content into other workflows or systems.
  • Monitoring or backing up specific pages programmatically.

For example, you might use this node to fetch a meeting notes page titled "Sprint Planning" from your project "my-project" and then process or export that content elsewhere.

Properties

Name Meaning
Project Name The name of your Cosense/Scrapbox project from which to get the page.
Page Title The exact title of the page to retrieve within the specified project.

Output

The output is a JSON object representing the retrieved page's data. This typically includes the page's content lines, metadata such as creation date, last modified date, and possibly other page-specific information depending on the API response.

No binary data is output by this operation.

Example output structure (simplified):

{
  "title": "My Page Title",
  "lines": [
    "First line of content",
    "Second line of content",
    "... more lines ..."
  ],
  "created": "2023-01-01T12:00:00Z",
  "updated": "2023-01-02T15:30:00Z",
  "id": "page-id-string"
}

Dependencies

  • Requires an API key credential for authenticating with the Cosense API.
  • The node depends on the external Cosense API service being available.
  • No additional environment variables are required beyond the API credential configuration in n8n.

Troubleshooting

  • Common issues:

    • Incorrect project name or page title will result in errors or empty results.
    • Missing or invalid API credentials will cause authentication failures.
    • Network connectivity issues can prevent successful API calls.
  • Error messages:

    • "Page not found": Verify the page title and project name are correct.
    • "Unauthorized" or authentication errors: Check that the API key credential is valid and properly configured.
    • Timeout or network errors: Ensure stable internet connection and that Cosense API endpoints are reachable.

Links and References

Discussion