Skip to main content

Connect Notion to the Knowledge Base

Connect Notion to this project with an internal integration token, then add individual Notion page URLs as knowledge sources. Shared pages are indexed into the Knowledge Base; the originals stay in Notion.

This page is about the Knowledge Base connector (auth / connection). Separately, agents and workflows can call Notion live via the agent Notion toolkit and workflow Notion toolkit.

Prerequisites​

You needDetails
Notion internal integration tokenCreate one at notion.so/my-integrations. The token starts with secret_ or ntn_.
Access granted to each pageNotion integrations only see pages explicitly shared with them. In Notion open the page (or a parent page) → ... → Connections → add your integration. Without this, every fetch returns 404.
Permission to manage Knowledge Base resourcesYou must be a member of the project with KB write access.

Adding the integration to a parent page covers every page nested under it — that is the usual way to grant a whole section of a workspace.

Where to connect​

You can reach the same connector from either place:

PathSteps
Project SettingsSettings → Connections → Cloud Storage & Documentation → Notion
Knowledge Base SettingsKnowledge Base → Settings → Connectors → Notion

The Notion tile shows a green status and a connection count when linked.

Connect Notion​

  1. Create the integration in Notion

    Go to notion.so/my-integrations, create an internal integration, and copy its token. The integration needs Read content capability.

  2. Share the pages with the integration

    In Notion, open the page or database you want indexed, click ... → Connections, and add the integration. Repeat for every top-level page you plan to add.

  3. Open the Notion tile

    In EKB go to Settings → Connections and click the Notion tile under Cloud Storage & Documentation.

  4. Add the connection

    Click + Add Notion Connection and fill in:

    FieldRequiredDescription
    Connection nameYesA label you recognise in the connection list, e.g. Engineering wiki.
    Internal integration tokenYesThe token from step 1.
  5. Save

    Click Connect. The Notion tile now shows the connection with its creation date.

✓You're now ready to add Notion pages to the Knowledge Base!

The connector supplies the token used for the first fetch, sync, and scheduled refreshes. Disconnect from the Notion modal when a connection should be removed.

Next: add a page​

With the connection established, ingest individual pages:

  1. Go to Knowledge Base → KB Data.

  2. Click + New → URL Upload.

  3. Paste the Notion page URL — this is the URL Copy link gives you, in any of these shapes:

    https://www.notion.so/Workspace/My-Page-Title-2f1b3c4d5e6f7890abcdef1234567890
    https://www.notion.so/2f1b3c4d5e6f7890abcdef1234567890
    https://<workspace>.notion.site/My-Page-2f1b3c4d5e6f7890abcdef1234567890
  4. Click Add URL.

The page id in the URL is what identifies the page — the title in the URL is ignored, so a renamed page still resolves. The page's blocks are rendered to markdown-style text (headings, lists, to-dos, quotes, code, tables, callouts, embeds) and indexed like any other document.

What gets indexed​

  • The page itself, including everything nested inside it — child blocks are walked recursively, so a page's sub-content is part of the same document.
  • Child pages are not fetched separately. Nested pages appear only as their heading, in place. Add each child page's own URL if you want its body indexed too.
  • Linked databases and embedded files are not supported yet. A page whose only content is a linked database has no readable text and is rejected.

Already synced / force re-sync​

Adding the same page URL twice is idempotent — the existing document is returned instead of queuing a second vectorisation job. Use force re-sync to re-fetch the page and refresh its content.

Troubleshooting​

SymptomWhat to check
Could not find a Notion page id in that URLPaste the URL Notion's Copy link gives you. Short links and notion:// app links are not supported.
No Notion connection found for this projectConnect Notion under Connections, or ask the connection's owner to share it with the project.
Notion returned 404 for that pageThe integration was not given access. In Notion: ... → Connections → add the integration, then retry.
Notion rejected the stored tokenThe token was revoked or the integration was deleted. Disconnect and reconnect with a fresh token.
That Notion page has no readable text contentThe page holds only a linked database or embedded files. Not supported yet.
That Notion page is archivedUn-archive the page in Notion first.