# Notion integration

Notion pins the 2026-03-11 data-source API, uses in_trash and separates database from data-source identities. Read-only POST query/search retains start_cursor in the body during continuation.

Canonical URL: https://opennodeflow.dev/wiki/integration-notion/
JSON reference: https://opennodeflow.dev/wiki/integration-notion/index.json
Source snapshot: 2026-10-23

Notion contributes **14 operations** in the current source catalog. Its implementation family belongs to the **Notion** pack. Add that pack to the chosen workspace before authoring with its definitions.

## Capabilities and boundaries

Notion pins the 2026-03-11 data-source API, uses in_trash and separates database from data-source identities. Read-only POST query/search retains start_cursor in the body during continuation.

Grant the integration capabilities and explicitly share the target content. A database ID is not interchangeable with a data-source ID. The simple append operation emits one paragraph with text bounded to 2,000 characters; unknown block subtypes remain extensions.

## Configure the connection

Use an authorized bearer credential stored under the secret name `NOTION_TOKEN` or a deliberate override.

The source default base origin is `https://api.notion.com`. Domains under example.com/example.net are placeholders for your own API, not running public services. Use the exact provider API origin and trusted certificate chain. A connection profile can supply credentials and repeated target defaults; profile credentials take precedence over node secret-name overrides. These developer nodes do not obtain tokens or refresh grants.

Required account permissions depend on the operation: Integration connection capabilities (read/insert/update content and read user information) plus explicit page/data-source sharing. Database and data-source identities are distinct.

## First bounded read

Start with **Notion Get Page**, which is declared as a read. Its synthetic argument fixture is:

```json
{
  "pageId": "11111111-1111-4111-8111-111111111111"
}
```

Replace the synthetic resource identifiers with an explicitly authorized target before any real read. An example is not an installed workflow and contains no credential values.

Set `maxPages:1` initially and inspect the result, `status`, selected direct fields and any `request_id`. Lists return `count`, `has_more` and optional `continuation`; not every provider resource is paginated. Keep the same resource/query scope when resuming. Optional outputs remain absent when the provider does not supply them. Wire only the fields present on the selected branch.

## Available operations

| Operation | Effect | API route |
| --- | --- | --- |
| [Notion Get Page](/wiki/reference-dev-notion-get-page/) | read | `GET /v1/pages/{pageId}` |
| [Notion Search Pages](/wiki/reference-dev-notion-search-pages/) | read | `POST /v1/search` |
| [Notion Query Data Source](/wiki/reference-dev-notion-query-data-source/) | read | `POST /v1/data_sources/{dataSourceId}/query` |
| [Notion Create Page](/wiki/reference-dev-notion-create-page/) | write | `POST /v1/pages` |
| [Notion Update Page Properties](/wiki/reference-dev-notion-update-page-properties/) | write | `PATCH /v1/pages/{pageId}` |
| [Notion Move Page to Trash](/wiki/reference-dev-notion-archive-page/) | write | `PATCH /v1/pages/{pageId}` |
| [Notion Get Block](/wiki/reference-dev-notion-get-block/) | read | `GET /v1/blocks/{blockId}` |
| [Notion List Block Children](/wiki/reference-dev-notion-list-block-children/) | read | `GET /v1/blocks/{blockId}/children` |
| [Notion Append Paragraph Block](/wiki/reference-dev-notion-append-paragraph/) | write | `PATCH /v1/blocks/{blockId}/children` |
| [Notion Move Block to Trash](/wiki/reference-dev-notion-delete-block/) | write | `DELETE /v1/blocks/{blockId}` |
| [Notion List Users](/wiki/reference-dev-notion-list-users/) | read | `GET /v1/users` |
| [Notion Get User](/wiki/reference-dev-notion-get-user/) | read | `GET /v1/users/{userId}` |
| [Notion Get Data Source](/wiki/reference-dev-notion-get-data-source/) | read | `GET /v1/data_sources/{dataSourceId}` |
| [Notion Search Data Sources](/wiki/reference-dev-notion-search-data-sources/) | read | `POST /v1/search` |

Each linked reference contains exact source arguments, named socket contracts, configuration schema, response shape and synthetic data. Source keys must be resolved to the installation's actual definition/version before graph editing.

## Bounds, changes and recovery

The shared developer adapter defaults to a 15-second request timeout, a 1 MiB response bound, one page and 1,000 accumulated items. Configurable maxima are 120 seconds, 3,000,000 response bytes, 20 pages and 5,000 items. Choose smaller limits where appropriate; an excessive response fails rather than becoming a silently complete list.

Read HTTP status and provider-specific success markers. Rejected authentication, permission failures and invalid requests need configuration correction. Rate limiting needs deliberate later scheduling. Same-origin/API-root continuation checks prevent sending credentials to an unrelated next link.

Write/delete operations require `confirmWrites:true` and ONF runtime `$retries:0`. Inspect the target and body before running. A timeout or lost response can follow a successful external action; reconcile the provider resource before repeating. HTTP 202 records acceptance, not completed work.

The reference is source-derived. Synthetic fixtures and isolated worker proof do not establish your account permissions, API availability or live delivery. See [shared setup](/wiki/integration-setup/) and [pack behavior](/wiki/library-packs/).

## Provider contract references

- [Provider reference 1](https://developers.notion.com/reference/intro)
- [Provider reference 2](https://developers.notion.com/reference/query-a-data-source)
- [Provider reference 3](https://developers.notion.com/guides/get-started/upgrade-guide-2026-03-11)

---

## Documentation provenance

- `../OpenNodeFlow-Library/docs/DEVELOPER-PACKS.md`
- `../OpenNodeFlow-Library/work/developer-packs-20261022/CONTRACT.md`
- `../OpenNodeFlow-Library/work/developer-packs-20261022/collaboration-research.md`

This page describes maintained source, not a live inventory or an authorization to perform actions.
