mnapis

单文档同步对账

[?verifyHash=1](默认不算 hash;verifyHash 会全文件扫描,大 PDF 慢)。以 state 为准:database_reference_without_document_mapping/waiting_for_icloud_download 且 hasLearningData判学习数据先行;library_record_only 勿称笔记已到;available_local_only 先看 expectedByCurrentSettings;verified_mismatch/icloud_error/mapped_but_not_materialized 才列异常。databaseQueryErrors 存在时为部分证据;全失败回 SYNC_DIAGNOSTIC_QUERY_FAILED。

GET
/documents/{id}/sync-status

[?verifyHash=1](默认不算 hash;verifyHash 会全文件扫描,大 PDF 慢)。以 state 为准:database_reference_without_document_mapping/waiting_for_icloud_download 且 hasLearningData判学习数据先行;library_record_only 勿称笔记已到;available_local_only 先看 expectedByCurrentSettings;verified_mismatch/icloud_error/mapped_but_not_materialized 才列异常。databaseQueryErrors 存在时为部分证据;全失败回 SYNC_DIAGNOSTIC_QUERY_FAILED。

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Path Parameters

id*string

文档 bookmd5

Query Parameters

verifyHash?integer

=1 计算内容 hash(全文件扫描,大 PDF 慢)

Response Body

curl -X GET "https://example.com/documents/string/sync-status"
Empty