RealComposer

Notion Safe & Unsafe Practices

Direct Answer

Notion internal integration secrets and OAuth tokens are server-only. An integration can only see pages explicitly shared with it, so share the minimum set, call Notion from a server or edge proxy, and cache responses because the API averages about 3 requests per second.

Credentials & Where They Belong

Server only
Internal integration secret

Access to every page and database shared with the integration.

Server only
Public integration OAuth token

Per-workspace access granted by another user.

Safe Practices

  • Share only the databases the integration needs

    Integrations inherit access to child pages, so connect them at the narrowest level.

  • Use read-only capabilities for public content

    Disable insert and update capabilities for integrations that only power websites.

  • Cache and flatten responses

    Notion blocks are deeply nested. Flatten and cache them at the edge for fast pages.

Unsafe Practices

  • Exposing the integration secret in a frontend

    Visitors could read every shared page or write to your databases.

  • Connecting the integration at the workspace root

    Private docs nested below become readable through the API.

The RealComposer Pattern

Store NOTION_TOKEN in the vault, query a single database through a cached pipeline, and map rich text properties into flat strings before returning them.

START BUILDING FREE

Frequently Asked Questions

Q:Why does my Notion integration return object not found?

The page or database has not been shared with the integration. Add it from the page Connections menu.

Multi-API Aggregation

Merge linear issues with notion database tasks

Linear issues and Notion database rows returned as one timeline JSON. For "merge linear issues with notion database tasks", store LINEAR_API_KEY, NOTION_API_KEY in Secret Vault, call https://api.linear.app/graphql from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/merge-linear-with-notion-tasks with an rc_live_ client token. POST upstream calls are not stored in caches.default; clients must send JSON bodies and headers forward unchanged.

Sub-10ms edgeView Recipe

Related Concepts