Notion
Search, read and update the Notion pages and databases you share with Jaah.
Connect it with: Sign in (OAuth), API key. Notion's own documentation: https://developers.notion.com/docs/authorization.
What agents can do
Connect Notion so the agents working your tasks can reach it. With it connected, they can:
- Search the pages and databases you shared with Jaah and read a spec, runbook or meeting note a task links to.
- Query a Notion database, such as a roadmap or bug tracker, for the entries a task needs.
- Write results back: update a page, add a section, or create a new database entry.
- Read the comments on a page for context.
Before you start
- A Notion account in the workspace agents should reach, with permission to add connections to its pages.
- For an internal integration secret: Workspace owner rights in Notion, which creating an integration requires.
- A Jaah account. Anyone can add a personal secret; an organization secret needs an Org Owner or Admin.
Connect with Notion
This is the quickest way in: you sign in to Notion and approve what Jaah asks for. You never copy a key.
- In Jaah, open Secrets and select New.
- Search for Notion and select its card.
- Give the secret a name you will recognize, such as the account or workspace it reaches, and choose who can use it (see Who can use it).
- Select Connect Notion. Notion's sign-in window opens.
- Sign in to Notion if asked, check the access listed, and approve it.
- You land back in Jaah on the new secret, which reads Connected once its test passes.
If the button reads Jaah app not configured, this Jaah has no app registered at Notion yet. Use an API key, or your own OAuth app, until it does.
Scopes Jaah requests
Jaah asks Notion for these scopes, and no others. A scope marked optional is a checkbox on the Connect screen: untick it and agents simply cannot do that part.
These scopes are set on the OAuth app itself, not chosen at sign-in, so every connection gets exactly these.
| Scope | Why Jaah asks for it |
|---|---|
Read content | Search and read the pages and databases the member shares with Jaah |
Update content | Edit those pages and database entries when a task asks |
Insert content | Add pages, blocks and database entries |
Read comments | Read discussion on a page for context |
Read user information including email addresses | Show whose workspace the connection reaches |
Connect with an API key
Prefer this when you cannot sign in with Notion — for example a service account, or a token your admin issued. On the Connect screen select Use an API key instead.
Find each value first:
- Integration secret or token: Notion > Settings > Connections > Develop or manage integrations (notion.so/profile/integrations) > New integration: choose the workspace, Type Internal, Save, then copy the Internal Integration Secret from the Configuration tab. Then share each page agents need with it: the page's ... menu > Connections > add the integration.
Then add it to Jaah:
- In Jaah, open Secrets, select New, and pick the Notion card.
- Name the secret and choose who can use it.
- Select Use an API key instead.
- Fill in Integration secret or token.
- Select Save. Jaah tests the secret straight away (see Test the connection).
Jaah encrypts what you type and never shows it again — not to you, and not to an admin.
Use your own OAuth app
Register your own OAuth app at Notion when your company requires apps it controls, or before this Jaah has an app registered there.
- Create an OAuth app in Notion's developer console, https://www.notion.so/profile/integrations (Notion's documentation).
- Set its redirect URI to
https://app.jaah.ai/api/credentials/connect/callback(on your own Jaah, its console address followed by/api/credentials/connect/callback). - Give it the scopes in Scopes Jaah requests.
- Copy its client ID and client secret.
- In Jaah, start a new Notion secret, select Use your own OAuth app, paste both values and select Connect Notion.
The client secret is stored with the connection, encrypted, like any other secret value.
Test the connection
Select Test on the secret. Jaah calls Notion's API once (GET https://api.notion.com/v1/users/me) with the stored values, and shows who it answered as, or which value Notion refused and the status it answered. Jaah also tests automatically when you save or reconnect.
The last result and its time stay on the secret's page, so you can see whether it still works without testing again.
Who can use it
Every secret has an owner, and the owner decides who can use it:
- Personal — only your own tasks can use it. This is the default.
- Organization — every task in the organization can use it. Only Org Owners and Admins can choose this.
- Attached to a project — every task on that project can use it, whoever started the task. See Attach a secret to a project.
More on owners and access: How secrets work.
Use it in an agent session
An agent asks for the secret with its credential_get tool, by the secret's path, when it needs it, and gets the values for that one call. The path is the owner's prefix and the secret's name:
org/<name>for an organization secret,projects/<project>/<name>for one attached to a project,me/<name>for your personal one.
A signed-in connection hands the agent a live access_token, with access_token_expires_at. Jaah refreshes it before it expires, so an agent never handles a refresh token.
A key connection hands the agent its fields: api_key.
Tell the agent in your task description which secret to use, for example “use the Notion secret org/notion”.
Manage, rotate or disconnect
Everything is on the secret's page under Secrets:
- Rotate a key: create a new key at the vendor first, then select Replace on the secret and paste it. Revoke the old key at Notion once the test passes. Steps: Replace or delete a secret.
- Reconnect: when Notion ends the grant (a password change, a revoked app, an expired refresh), the secret shows Needs reconnect. Select Reconnect and sign in again; agents get the new token on their next call.
- Disconnect: select Delete. The stored values are destroyed and agents lose access on their next call. To end access at Notion's side too, revoke Jaah in Notion's settings, or revoke or delete the key at Notion.
Limitations
- Notion's hosted MCP server needs its own sign-in or token, which this secret does not hold: to give agents its tools, add a Custom MCP server secret with the URL https://mcp.notion.com/mcp, connect it, and link it to the project.
- Agents see only the pages and databases shared with the connection: on sign-in, the pages you pick on Notion's consent screen; with a secret, the pages you add the integration to under the page's Connections menu. Sharing a page shares its sub-pages.
- One connection reaches one Notion workspace.
- Notion's API averages about three requests per second per connection; large exports are slow.
- Some block types (for example synced blocks from other pages, and some embeds) cannot be read or written through Notion's API.
- Agents can do only what the connected Notion account and its granted scopes allow.
Troubleshooting
Test says Notion rejected the integration secret or token (401)
The secret was regenerated, the integration deleted, or the value mistyped. Copy the current secret from the integration's Configuration tab and select Replace.
Test passes but agents say a page cannot be found (object_not_found)
The page is not shared with the connection. In Notion open the page's ... menu > Connections and add Jaah or your integration.
Test says Notion rejected the access token
The connection was removed in Notion (Settings > Connections). Select Reconnect and pick the pages again.
Notion shows Invalid redirect_uri on the sign-in screen
You are using your own public integration and its Redirect URIs do not include the one on this page. Add it under OAuth Domain & URIs.
Still stuck? Select Test and read the result: it names the value Notion refused and the status it answered.
FAQ
Why can agents not see my whole workspace?
Notion shares nothing with an integration by default: you choose the pages, which keeps agents to what they need. Add more pages any time from the page's Connections menu.
Sign-in or integration secret?
Sign in for a personal connection to the pages you pick. Use an internal integration secret for a team-wide connection owned by a workspace owner.
Which Notion API version does Jaah use?
The Test sends Notion-Version 2022-06-28. Agents may send a newer version on their own calls.
Can Jaah or an admin see the key or token?
No. Jaah stores it encrypted and never shows it again. Only the tasks allowed to use the secret receive it, at the moment they ask for it.
Can I connect more than one Notion account?
Yes. Add one secret per account, each with its own name, and tell the agent which one to use.