思源智引

原名:siyuan

Query and edit a SiYuan knowledge base via its API.

分类
开发提效
版本
v1.0.0
作者
弈韬(@ra1nzzz)
下载
2
收藏
0
发布
2026-08-25
更新
2026-09-17
TRACE 评分
2.8 / 5

内容概览

Use the SiYuan kernel API via curl to search, read, create, update, and delete blocks and documents in a self-hosted knowledge base. No extra tools needed -- just curl and an API token. 1. Install and run SiYuan (desktop or Docker) 2. Get your API token: Settings About API token 3. Store it in ${HERMES HOME:- /.hermes}/.env: SIYUAN URL defaults to http://127.0.0.1:6806 if not set. All SiYuan API calls are POST with JSON body . Every request follows this pattern: Responses are JSON with this structure: code: 0 means success. Any other value is an error -- check msg for details. ID format: SiYuan IDs look like 20210808180117-6v0mkxr (14-digit timestamp + 7 alphanumeric chars). Operation Endpoint ----------- ---------- Full-text search /api/search/fullTextSearchBlock SQL query /api/query/sql Read block /api/block/getBlockKramdown Read children /api/block/getChildBlocks Get path /api/filetre…

查看 SKILL 详情