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 need | Details |
|---|---|
| Notion internal integration token | Create one at notion.so/my-integrations. The token starts with secret_ or ntn_. |
| Access granted to each page | Notion 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 resources | You 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:
| Path | Steps |
|---|---|
| Project Settings | Settings → Connections → Cloud Storage & Documentation → Notion |
| Knowledge Base Settings | Knowledge Base → Settings → Connectors → Notion |
The Notion tile shows a green status and a connection count when linked.
Connect Notion
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.
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.Open the Notion tile
In EKB go to Settings → Connections and click the Notion tile under Cloud Storage & Documentation.
Add the connection
Click + Add Notion Connection and fill in:
Field Required Description Connection name Yes A label you recognise in the connection list, e.g. Engineering wiki.Internal integration token Yes The token from step 1. Save
Click Connect. The Notion tile now shows the connection with its creation date.
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:
-
Go to Knowledge Base → KB Data.
-
Click + New → URL Upload.
-
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-2f1b3c4d5e6f7890abcdef1234567890https://www.notion.so/2f1b3c4d5e6f7890abcdef1234567890https://<workspace>.notion.site/My-Page-2f1b3c4d5e6f7890abcdef1234567890 -
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
| Symptom | What to check |
|---|---|
Could not find a Notion page id in that URL | Paste the URL Notion's Copy link gives you. Short links and notion:// app links are not supported. |
No Notion connection found for this project | Connect Notion under Connections, or ask the connection's owner to share it with the project. |
Notion returned 404 for that page | The integration was not given access. In Notion: ... → Connections → add the integration, then retry. |
Notion rejected the stored token | The token was revoked or the integration was deleted. Disconnect and reconnect with a fresh token. |
That Notion page has no readable text content | The page holds only a linked database or embedded files. Not supported yet. |
That Notion page is archived | Un-archive the page in Notion first. |