> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Get Notion page markdown

> Retrieve a Notion page as markdown.

`notion.getPageMarkdown` retrieve a Notion page as markdown.

## Example

```ts automations/notion-get-page-markdown.automation.ts theme={null}
import { automation, onSchedule } from "automate.ax"
import { notion } from "automate.ax/notion"

export default automation("Get Notion page markdown", () => {
  onSchedule({ schedule: "0 9 * * *" })

  notion.getPageMarkdown({ page_id: "page-id", include_transcript: true })
})
```

## Inputs

Provide `page_id`. Set `include_transcript` to include supported meeting transcript text. Every input accepts a compatible signal, and an optional second argument can select a named account.

## Output

Returns `id`, `markdown`, `truncated`, and `unknown_block_ids`. Inspect unknown IDs before assuming the markdown is complete.
