Developers
You don't have any API keys yet.
Configure CLI
Store your API token in ~/.collected-notes
echo "your-api-token" > ~/.collected-notes
API Usage
Use your API key with the Authorization header
curl -H "Authorization: Bearer YOUR_API_TOKEN" \ https://collectednotes.com/sites
Official CLI Tools
Public API
The public read-only API for accessing published content on Collected Notes.
These endpoints are designed for integrations, embeds, static site generators, and any tool that needs to read public note content. No authentication required for public/unlisted content.
Who this is for
- Static site generators fetching content from CN
- Embeds and widgets showing note content
- Third-party readers and aggregators
- Anyone building on top of published CN content
For CLI, MCP, and agent integrations
If you need to create, update, delete, search, or sync notes, see the
Integration API spec at /api-integration.yaml. That API requires
authentication and is used by the cn CLI, MCP clients, and AI agents.
Note Visibility
- public — visible to everyone, listed on site
- unlisted — accessible via direct link, not listed
- private — only accessible to the owner (requires Integration API)
- public_unlisted — public but not listed on site
Sites
/{site_path}.jsonParameters
site_pathThe site's URL slug
Responses
Site data with note summaries
Example Response
{
"id": 42,
"user_id": 7,
"site_path": "my-blog",
"name": "My Blog",
"headline": "Thoughts on technology",
"about": "Welcome to my blog",
"domain": null,
"created_at": "2024-01-15T10:30:00.000Z",
"updated_at": "2024-06-20T14:45:00.000Z",
"notes": [
{
"id": 101,
"site_id": 42,
"user_id": 7,
"title": "Getting Started",
"path": "getting-started",
"headline": "A beginner's guide",
"visibility": "public",
"ordering": 1,
"tags": [
"guide",
"intro"
],
"source": "web",
"created_at": "2024-03-10T09:00:00.000Z",
"updated_at": "2024-03-10T09:00:00.000Z"
}
]
}Notes
/{site_path}/{note_path}.jsonParameters
site_pathThe site's URL slug
note_pathThe note's URL slug
Responses
Note with body
/{site_path}/{note_path}.mdParameters
site_pathThe site's URL slug
note_pathThe note's URL slug
Responses
Markdown with frontmatter
Example Response
--- title: "Getting Started" path: "getting-started" visibility: "public" created_at: "2024-03-10T09:00:00.000Z" updated_at: "2024-03-10T09:00:00.000Z" --- # Getting Started Content here...
/{site_path}/{note_path}.txtParameters
site_pathThe site's URL slug
note_pathThe note's URL slug
Responses
Plain text body
/{site_path}/{note_path}/bodyParameters
site_pathThe site's URL slug
note_pathThe note's URL slug
Responses
HTML body with metadata
Schemas
iduser_idsite_pathnameheadlineaboutdomaincreated_atupdated_atidsite_iduser_idtitlepathheadlinevisibilityorderingtagsTags applied to the note
sourceWhere the note was last created/modified (web, ios, cli, api, mcp)
created_atupdated_atbodyHTML-rendered content
noteEnum Values
error