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

# Notion: Retrieve Page Markdown

> Retrieve a page as markdown. Includes SDK V2 and CLI requests, input constraints, response fields, and Deepline credit cost.

Retrieve a page as markdown.

<Info>
  Tool ID: `notion_retrieve_page_markdown`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'notion_retrieve_page_markdown',
  {
    "page_id": "page_123"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={null}
deepline tools execute notion_retrieve_page_markdown --input '{
  "page_id": "page_123"
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "object": "page_markdown",
    "id": "123e4567-e89b-42d3-a456-426614174000",
    "markdown": "example",
    "truncated": true,
    "unknown_block_ids": [
      "123e4567-e89b-42d3-a456-426614174000"
    ]
  }
}
```

Use `deepline tools get notion_retrieve_page_markdown --json` for the latest machine-readable contract.

## Input reference

Retrieve a page as markdown

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.page_id` | `string` | Yes | — | — |
| `payload.include_transcript` | `boolean` | No | — | Whether to include meeting note transcripts. Defaults to false. When true, full transcripts are included; when false, a placeholder with the meeting note URL is shown instead. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Retrieve a page as markdown",
    "properties": {
      "page_id": {
        "type": "string"
      },
      "include_transcript": {
        "type": "boolean",
        "description": "Whether to include meeting note transcripts. Defaults to false. When true, full transcripts are included; when false, a placeholder with the meeting note URL is shown instead."
      }
    },
    "required": [
      "page_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.object` | `"page_markdown"` | Yes | — | The type of object, always 'page\_markdown'. |
| `result.data.id` | `string` | Yes | — | Format: `uuid`. |
| `result.data.markdown` | `string` | Yes | — | The page content rendered as enhanced Markdown. |
| `result.data.truncated` | `boolean` | Yes | — | Whether the content was truncated due to exceeding the record count limit. |
| `result.data.unknown_block_ids` | `array` | Yes | — | Block IDs that could not be loaded (appeared as tags in the markdown). Pass these IDs back to this endpoint to fetch their content separately. Maximum items: 100. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "object": {
            "type": "string",
            "description": "The type of object, always 'page_markdown'.",
            "const": "page_markdown"
          },
          "id": {
            "$ref": "#/$defs/idResponse"
          },
          "markdown": {
            "type": "string",
            "description": "The page content rendered as enhanced Markdown."
          },
          "truncated": {
            "type": "boolean",
            "description": "Whether the content was truncated due to exceeding the record count limit."
          },
          "unknown_block_ids": {
            "type": "array",
            "description": "Block IDs that could not be loaded (appeared as tags in the markdown). Pass these IDs back to this endpoint to fetch their content separately.",
            "maxItems": 100,
            "items": {
              "$ref": "#/$defs/idResponse"
            }
          }
        },
        "required": [
          "object",
          "id",
          "markdown",
          "truncated",
          "unknown_block_ids"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false,
    "$defs": {
      "idResponse": {
        "type": "string",
        "format": "uuid"
      }
    }
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Notion provider guide](/docs/providers/notion/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.