Public REST API
Notes API
Create, list, update, and export notes via the Public REST API with example payloads.
Notes API
Base: https://<APP_HOST>/api/public/v1/notes
All routes require Authorization: Bearer wn_… and X-Workspace-Id.
| Method | Path | Scopes |
|---|---|---|
GET | / | notes:read |
GET | /stats | notes:read |
POST | / | notes:write |
GET | /:id | notes:read |
PUT / PATCH | /:id | notes:write |
DELETE | /:id | notes:delete |
GET | /:noteId/content | notes:read |
PUT / POST | /:noteId/content | notes:write |
GET | /:noteId/export | notes:read |
GET / POST | /:noteId/comments | notes:read / notes:write |
GET / POST | /:noteId/collaborators | notes:read / notes:write |
List notes
curl "https://<APP_HOST>/api/public/v1/notes?limit=25&search=sprint&deleted=false" \
-H "Authorization: Bearer wn_live_..." \
-H "X-Workspace-Id: <WORKSPACE_ID>"Query params: cursor, limit, offset, page, search, sort / sort_by, sort_order, tags, deleted.
Create note
curl -X POST "https://<APP_HOST>/api/public/v1/notes" \
-H "Authorization: Bearer wn_live_..." \
-H "X-Workspace-Id: <WORKSPACE_ID>" \
-H "Content-Type: application/json" \
-d '{
"title": "Sprint planning",
"markdown": "## Agenda\n\n- Scope\n- Risks",
"project_id": null,
"status": "active",
"tags": ["planning"]
}'| Field | Type | Required |
|---|---|---|
title | string | no |
markdown | string | no |
project_id | string | null | no |
status | string | no |
tags | string | string[] | no |
Success (201):
{
"success": true,
"data": {
"id": "note_01...",
"title": "Sprint planning",
"status": "active",
"createdAt": "2026-11-22T12:00:00.000Z"
}
}Get note
curl "https://<APP_HOST>/api/public/v1/notes/note_01..." \
-H "Authorization: Bearer wn_live_..." \
-H "X-Workspace-Id: <WORKSPACE_ID>"Update note
curl -X PATCH "https://<APP_HOST>/api/public/v1/notes/note_01..." \
-H "Authorization: Bearer wn_live_..." \
-H "X-Workspace-Id: <WORKSPACE_ID>" \
-H "Content-Type: application/json" \
-d '{
"title": "Sprint planning (updated)",
"tags": ["planning", "q4"],
"deleted": false
}'Replace / append content
# Replace markdown body
curl -X PUT "https://<APP_HOST>/api/public/v1/notes/note_01.../content" \
-H "Authorization: Bearer wn_live_..." \
-H "X-Workspace-Id: <WORKSPACE_ID>" \
-H "Content-Type: application/json" \
-d '{ "markdown": "# New body\n\nFull replacement." }'
# Append markdown
curl -X POST "https://<APP_HOST>/api/public/v1/notes/note_01.../content" \
-H "Authorization: Bearer wn_live_..." \
-H "X-Workspace-Id: <WORKSPACE_ID>" \
-H "Content-Type: application/json" \
-d '{ "markdown": "\n\n## Follow-up\n- Ship docs" }'markdown is required. Optional: baseRevision / base_revision for optimistic concurrency.
Export
curl "https://<APP_HOST>/api/public/v1/notes/note_01.../export?format=md" \
-H "Authorization: Bearer wn_live_..." \
-H "X-Workspace-Id: <WORKSPACE_ID>"format: pdf | md | csv.
Comments
curl -X POST "https://<APP_HOST>/api/public/v1/notes/note_01.../comments" \
-H "Authorization: Bearer wn_live_..." \
-H "X-Workspace-Id: <WORKSPACE_ID>" \
-H "Content-Type: application/json" \
-d '{ "content": "Looks good — ship it.", "parent_id": null }'Collaborators
curl -X POST "https://<APP_HOST>/api/public/v1/notes/note_01.../collaborators" \
-H "Authorization: Bearer wn_live_..." \
-H "X-Workspace-Id: <WORKSPACE_ID>" \
-H "Content-Type: application/json" \
-d '{ "userId": "usr_..." }'Soft delete
curl -X DELETE "https://<APP_HOST>/api/public/v1/notes/note_01..." \
-H "Authorization: Bearer wn_live_..." \
-H "X-Workspace-Id: <WORKSPACE_ID>"Or set "deleted": true on PATCH /:id.