SiYuan icon

SiYuan

Manage SiYuan notebooks, documents, blocks, attributes, and more. Designed for AI agent workflows.

Document → Export Markdown

AI-generated

Summary

Export a SiYuan document’s full Markdown content and human-readable path using its document ID.

Inputs

  • Document ID (required) — The unique ID of the document to export.

Output shape

A single record containing the document ID (id), Markdown text (content), and human-readable path (hPath).

If the API response omits content or hPath, the operation returns an empty string for that field.

Links

Discussion