Pages
Retrieve content as Markdown
Read a document’s or block’s content as Markdown.
GET
Reads content as Markdown. Pass a document ID for all its content, or a block ID to start from that block. Writing isn’t available.
A block that can’t be written appears as
string
Optional. Only
2026-03-11 is accepted. Without it, the current version is used. A different value returns 400.string
required
A document ID or block ID.
string
default:"v2"
Only
v2 is accepted. v1 returns 400.boolean
Accepts
true or false but doesn’t affect the result. Bottari notes appear as unknown.string
Always
page_markdown.string
The ID you requested.
string
The content.
boolean
true if at least one block couldn’t be written as Markdown.string[]
IDs of those blocks, up to 100. They match block API IDs.
<unknown url="..." alt="..." />. A block with no Markdown form can be read again by its ID. A block hidden by permissions returns 404.
An uploaded file block appears with its signed URL. Trashed documents can also be read. Trashed inline databases are left out of the content.
Errors
See Common rules for shared errors.