Logseq

Export Markdown

Render a Logseq-friendly Markdown export.

Read-only: any authenticated user can generate the Markdown.

Notes:

  • If memory_ids is provided, we fetch those memories (and optionally STM).
  • If memory_ids is empty, we export up to limit LTM memories visible to the caller.
post/api/v1/logseq/export/markdown

Request

  • The document declares no server URL.
  • Auth: HTTP bearer

Headers

X-API-Keystring nullable

Request body

memory_idsstring[]

If provided, export only these memory IDs

include_short_termboolean

Include STM entries (Redis) when memory_ids are provided

scopestring nullable

Optional scope filter for LTM listing

limitinteger
export_mode'single_file' | 'vault_pages' nullable

Export mode for write-to-disk exports. single_file writes one .md file. vault_pages writes a Logseq vault structure with one page per memory. If omitted, server defaults apply.

Response

Successful Response

markdownstring required
item_countinteger required

Changes

No recorded changes to this operation across all 2 revisions of this API.