Skip to content

pageMarkdownSchema

const pageMarkdownSchema: ZodObject<{ id: ZodUUID; markdown: ZodString; object: ZodLiteral<"page_markdown">; truncated: ZodBoolean; unknown_block_ids: ZodArray<ZodUUID>; }, $strip>

Defined in: src/schemas/pageMarkdown.schema.ts:16

Page markdown content schemas.

GET/PATCH /v1/pages/{page_id}/markdown read and write a page’s content as markdown directly, as an alternative to the block-tree children representation.

Notion API reference: https://developers.notion.com/guides/data-apis/working-with-markdown-content