mnapis

AI 目录标题候选

?start=&end=(≤60 页/次硬上限)。每页渲染+OCR+版面模型,扫描件约 3s/页;服务端 45s 预算,超限返回部分 + truncated:true/nextStart/hint,按 hint 从 nextStart 续扫。并发上限 2(与 pages 共享),超限 429 SCAN_BUSY。返回 {page,text,height,anchor}(anchor 原样回带;height 为字号代理)。

GET
/documents/{id}/toc-candidates

?start=&end=(≤60 页/次硬上限)。每页渲染+OCR+版面模型,扫描件约 3s/页;服务端 45s 预算,超限返回部分 + truncated:true/nextStart/hint,按 hint 从 nextStart 续扫。并发上限 2(与 pages 共享),超限 429 SCAN_BUSY。返回 {page,text,height,anchor}(anchor 原样回带;height 为字号代理)。

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Path Parameters

id*string

文档 bookmd5

Query Parameters

start?integer

起始页

end?integer

结束页,单次 ≤60 页硬上限

Response Body

curl -X GET "https://example.com/documents/string/toc-candidates"
Empty