跳转到内容

API 概览

环境 Base URL
生产 https://notenow.cn/note
本机 http://127.0.0.1:8000

当前声明:NoteNow API · 0.1.0

多数接口接受:

Authorization: <token>

token 来自登录/注册响应中的 token 字段。

  1. 准备变量

    终端窗口
    export BASE=https://notenow.cn/note
    export IDENTIFIER='you@example.com'
    export PASSWORD='your-password'
  2. 登录拿 token

    终端窗口
    curl -sS "$BASE/api/auth/login/password" \
    -H 'Content-Type: application/json' \
    -d "{\"identifier\":\"$IDENTIFIER\",\"password\":\"$PASSWORD\"}"
  3. 导出 token 并校验会话

    终端窗口
    export TOKEN='<粘贴响应里的 token>'
    curl -sS "$BASE/api/auth/me" -H "Authorization: $TOKEN"
  4. 拉笔记列表

    终端窗口
    curl -sS "$BASE/api/notes" -H "Authorization: $TOKEN"
文档 覆盖
鉴权 注册、登录、资料
笔记与笔记本 CRUD、保存、导出
AI 与视频 chat、转写、分析任务
支付与配额 会员、订单、quota
HTTP 含义
200 成功
401 / 403 未登录或无权限(以线上实现为准)
404 资源不存在
422 请求体/参数校验失败(FastAPI)
{
"detail": [
{
"loc": ["body", "password"],
"msg": "Field required",
"type": "missing"
}
]
}