Overview
OneCLI connects AI agents to Notion through Notion’s OAuth flow. Agents can search your workspace, read page content, create and update pages, and query databases. The gateway injects OAuth credentials into requests to the Notion API automatically. This is useful for agents that need to look up internal documentation, create tasks or notes, or sync data with Notion databases.What you will set up
- A Notion connection through OAuth, limited to the pages and databases you select
- Automatic token injection on Notion API requests
- Per-agent, per-tool access to your workspace
Setup
Go to Connections
Authorize

The Notion connect window on OneCLI Cloud.
Self-hosted: use your own Notion integration
NOTION_CLIENT_ID and NOTION_CLIENT_SECRET set, or if you want your own company name on Notion’s consent screen.1. Create the Notion integration
1. Create the Notion integration
OneCLI, pick your workspace, set Type to Public, and save.2. Set the capabilities
2. Set the capabilities
3. Add the redirect URI
3. Add the redirect URI

Copy the Redirect URI from Custom credentials in OneCLI.

Notion's OAuth domains & URIs section with the OneCLI Redirect URI.
4. Connect with your integration
4. Connect with your integration

Your integration's Configuration tab in Notion: the OAuth Client ID and Client Secret.
What agents can do
- Search across all accessible pages and databases by keyword
- Read the full content of a page (text, headings, lists, tables, callouts)
- Create new pages in a specified parent page or database
- Update existing page content (append blocks, modify properties)
- Query databases with filters and sorts (e.g., all tasks with status “In Progress”)
- Create new entries in a database with specified property values
- Update database entry properties (status, assignee, dates, tags)
- Read database schema (property names, types, select options)
- Archive and restore pages
- Read and add comments on a page
Controlling access
Access is per agent: grant the connection to each agent that needs it, choosing per tool what runs freely, what needs human approval, and what stays blocked — a read-only agent is a single grant. Organization rules add guardrails on top, like rate limits and blanket blocks. Everything is checked before credential injection, so a blocked request never reaches Notion.FAQ
Which Notion pages can the agent see?
Which Notion pages can the agent see?
Does the agent see my Notion token?
Does the agent see my Notion token?
Can an agent read Notion without writing?
Can an agent read Notion without writing?