mnapis

批量读卡

Body {noteIds:[…]} ≤200/次。返回 texts[](对象数组 {index,text,excerpt,noteid,kind},index 0=卡正文,1..N=子笔记;稀疏,空留白 kind:blank 也返回)、parts[](视觉顺序全量,含 contentPath/mimeType/ocrText;0.42 起图片遮挡项带 occlusion 与 occlusionBaseContentPath)、metadata{colorIndex,fillIndex}、hashtags/hashtagPaths。texts 为空先看 parts。

POST
/notes/batch-get

Body {noteIds:[…]} ≤200/次。返回 texts[](对象数组 {index,text,excerpt,noteid,kind},index 0=卡正文,1..N=子笔记;稀疏,空留白 kind:blank 也返回)、parts[](视觉顺序全量,含 contentPath/mimeType/ocrText;0.42 起图片遮挡项带 occlusion 与 occlusionBaseContentPath)、metadata{colorIndex,fillIndex}、hashtags/hashtagPaths。texts 为空先看 parts。

Authorization

bearerAuth
AuthorizationBearer <token>

安装脚本写入 ~/.config/mn-bridge/token,或环境变量 MN_BRIDGE_TOKEN。不要带 Origin 头。

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/notes/batch-get" \  -H "Content-Type: application/json" \  -d '{    "noteIds": [      "string"    ]  }'
Empty