跳转到内容

笔记与笔记本 API

前置:已拿到 $TOKEN。基址 $BASE=https://notenow.cn/note。

方法 路径 说明
GET /api/notebooks 列表
POST /api/notebooks 创建
PUT /api/notebooks/{notebook_id} 更新
DELETE /api/notebooks/{notebook_id} 删除
POST /api/notebooks/{notebook_id}/move 移动
终端窗口
# 列表
curl -sS "$BASE/api/notebooks" -H "Authorization: $TOKEN"
# 创建(字段以 /docs Schema 为准)
curl -sS "$BASE/api/notebooks" \
-H "Authorization: $TOKEN" \
-H 'Content-Type: application/json' \
-d '{"title":"产品调研"}'
方法 路径 说明
GET /api/notes 列表
GET /api/notes/list 摘要列表
POST /api/notes 创建
POST /api/notes/save 保存(转写/大纲等)
GET /api/notes/{note_id} 详情
PUT /api/notes/{note_id} 更新
DELETE /api/notes/{note_id} 删除
POST /api/notes/{note_id}/regenerate-outline 重生成大纲

POST /api/notes/save 是写入笔记正文与 AI 产物的主入口。

字段 说明
title 标题
video_url / video_path 视频来源
transcript 转写文本
summary 摘要
outline 大纲
detailed_notes 详细笔记
screenshots 截图数组
knowledge_links 知识链接对象数组
{
"success": true,
"note_id": "note_xxx",
"note": {}
}
终端窗口
curl -sS "$BASE/api/notes/save" \
-H "Authorization: $TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"title": "WWDC Keynote 笔记",
"video_url": "https://example.com/video.mp4",
"transcript": "欢迎来到发布会……",
"summary": "本次发布会重点是……",
"outline": "1. 开场\n2. 产品发布",
"detailed_notes": "## 开场\n……",
"screenshots": [],
"knowledge_links": []
}'
方法 路径 输出
GET /api/notes/{note_id}/export/markdown Markdown
GET /api/notes/{note_id}/export/markdown-zip Zip
GET /api/notes/{note_id}/export/pdf PDF
终端窗口
curl -sSL "$BASE/api/notes/$NOTE_ID/export/markdown" \
-H "Authorization: $TOKEN" \
-o note.md
curl -sSL "$BASE/api/notes/$NOTE_ID/export/pdf" \
-H "Authorization: $TOKEN" \
-o note.pdf