导出文档扁平 PDF
Body {topicid(必填,定标注层), selectedPageNos(真实 PDF 页,省略=全书,空数组拒), includeRelatedBlankPages?=true}。留白页由 native 隐式带上,不计数、不入 selectedPageNos(拒绝 66000+ 虚拟页)。输出到外部导出根 DocumentExports。只建文件不改数据。若已有导出在跑 429 EXPORT_BUSY。
Body {topicid(必填,定标注层), selectedPageNos(真实 PDF 页,省略=全书,空数组拒), includeRelatedBlankPages?=true}。留白页由 native 隐式带上,不计数、不入 selectedPageNos(拒绝 66000+ 虚拟页)。输出到外部导出根 DocumentExports。只建文件不改数据。若已有导出在跑 429 EXPORT_BUSY。
Authorization
bearerAuth 安装脚本写入 ~/.config/mn-bridge/token,或环境变量 MN_BRIDGE_TOKEN。不要带 Origin 头。
In: header
Path Parameters
文档 bookmd5
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/documents/string/export" \ -H "Content-Type: application/json" \ -d '{ "topicid": "string" }'AI 目录标题候选 GET
?start=&end=(≤60 页/次硬上限)。每页渲染+OCR+版面模型,扫描件约 3s/页;服务端 45s 预算,超限返回部分 + truncated:true/nextStart/hint,按 hint 从 nextStart 续扫。并发上限 2(与 pages 共享),超限 429 SCAN_BUSY。返回 {page,text,height,anchor}(anchor 原样回带;height 为字号代理)。
按原文找位置 POST
Body {text(逐字照抄), page(必填), navigate?}。返回 {found,page,matchedText,algorithm,score},须核对 matchedText。no_match 多为改写原文;page_unreadable 为页不可读。navigate:true 仅滚动(不高亮),跨文档不跳(navigated:false + different_document_open)。