Skip to main content
Connect your Notion workspace to Ana to search and analyze pages, databases, and notes across your team’s knowledge base. Ana can query structured database entries, read page content, and surface information from across your workspace.
Create an integration in Notion, share the relevant pages and databases with it, and store the token as an API Connector in TextQL.

Prerequisites

You’ll need:
  • A Notion account with access to the pages or databases you want Ana to query
  • Admin access to your Notion workspace if you are setting up an Org-level integration
  • A TextQL account with permission to add API connectors

Which connection type should I use?

Personal access tokenOrg-level integrationPer-member integration
Best forPersonal scripts and individual useTeam automations within a single workspaceApps serving multiple workspaces or Notion users
ScopeOne user in one workspaceOne workspaceAny workspace
AuthenticationStatic bearer tokenStatic API tokenOAuth 2.0
If you’re setting this up for your team, use an Org-level integration. A personal access token limits Ana to your individual permissions only, which may cause incomplete results for shared workflows. Per-member integrations are only necessary when connecting multiple Notion workspaces.

Ana’s Capabilities

Once configured, Ana can:
  • Fetch and search pages, databases, and documents across your Notion workspace
  • Query structured database entries and filter by properties, tags, dates, or status
  • Summarize content from pages, meeting notes, and project docs
  • Surface linked pages and related content across your workspace
  • Generate reports from database views, such as project trackers, CRMs, or task lists
  • Answer questions grounded in your Notion content, like “What’s the status of X project?” or “Who owns Y task?”
The integration uses read-only access by default — Ana can query and summarize your Notion content but cannot create, edit, or delete pages.

Step 1: Generate Your Notion Credentials

Before configuring TextQL, you’ll need credentials from Notion. Which type you generate depends on your use case — see Which connection type should I use? above for guidance.
Notion Developer Portal listing Org-level, Per-member, and Personal Access connections

Personal access token

  1. Go to notion.com/developers and sign in.
  2. In the left sidebar, click Personal access tokens.
  3. Click New token.
  4. Enter a name and choose the workspace you want to connect.
  5. Click Create token, then copy the value immediately.
Personal access tokens expire one year after creation. Store the expiry date somewhere you’ll remember so you can rotate it before it lapses.

Org-level & Per-member integration

  1. Go to notion.com/developers and sign in.
  2. Navigate to Connections on the left sidebar and click New connection.
  3. Enter a name and choose OAuth for the authentication method.
  4. Choose the development workspace and where the workspace will be installed.
  5. Under Installable in, configure based on your connection type:
    • Org-level: uncheck Any workspace and select only your specific workspace
    • Per-member: ensure Any workspace is selected
  6. For Redirect URL, enter https://app.textql.com/auth/api-oauth/callback.
  7. Click Save.
  8. Open the Configuration tab and copy your OAuth client ID and OAuth client secret.
You must be a Workspace Owner to create an Org-level integration. If you don’t have this role, ask your Notion admin to set it up and share the credentials with you securely.

Step 2: Add Notion as an API Connector in TextQL

TextQL Add More API Connectors panel with Notion highlighted
  1. Go to app.textql.com and sign in.
  2. In the bottom-left sidebar, click Connectors.
  3. Select the APIs tab, then click Notion.
  4. In the configuration panel, choose your Authentication Type and fill in the matching fields.

Personal access token (PAT)

TextQL Notion connector form with the API Token authentication type selected
  • Name — a label for this connection (e.g. Notion PAT)
  • Authentication type — select API Token
  • Integration token — paste the access token from Step 1

Org-level integration

TextQL Notion connector form with the OAuth (Org-level) authentication type selected
  • Name — a label for this connection (e.g. Notion Org-level)
  • Authentication type — select OAuth (Org-level)
  • Client ID and Client Secret — paste the values copied in Step 1
  • OAuth Authentication — click Authenticate and select which docs you want Ana to see

Per-member integration

TextQL Notion connector form with the OAuth (Per-member) authentication type selected
  • Name — a label for this connection (e.g. Notion Per-member)
  • Authentication type — select OAuth (Per-member)
  • Client ID and Client Secret — paste the values copied in Step 1
  • OAuth Authentication — click Authenticate and select which docs you want Ana to see
Click Save to finish.

Step 3: Verify the Connection

Once saved, confirm the connector is active:
  1. In Connectors > APIs, check that Notion appears in your list of active connectors.
  2. Open a new Ana chat and ask a simple query, such as: “List my most recent Notion pages.”
If Ana returns results, the connection is working. If you see an error, refer to the Troubleshooting section below.
If Ana returns no results rather than an error, your integration may not have access to any pages yet. In Notion, make sure the relevant pages have been shared with your connection under Share > Connections.

Usage Examples

Once your Notion connector is live, try asking Ana:
  • “What tasks are currently marked as in progress in my project tracker?”
  • “Find all pages related to [project name].”
  • “What decisions were made in Q1 planning docs?”
  • “Pull everything in my Notion CRM where the status is ‘Active’.”
  • “Which pages haven’t been updated in the last 30 days?”

Troubleshooting

SymptomLikely CauseFix
OAuth Authentication: Something went wrongIncorrect redirect URLIn your Notion integration settings, make sure https://app.textql.com/auth/api-oauth/callback is listed exactly as a redirect URL.
Ana returns no results (no error)Pages not shared with the integrationIn Notion, share the relevant pages and databases with your connection under Share > Connections.

Security Notes

  • Personal access tokens expire one year after creation. Regenerate and update your TextQL connector before the token lapses to avoid interruptions.
  • OAuth credentials (Org-level and Per-member integrations) do not expire but should be rotated periodically as a best practice.
  • The integration uses read-only access by default — Ana can query and summarize your Notion content but cannot create, edit, or delete pages.
  • To revoke access, go to your Notion Developer Portal, find your connection, and delete it. Then remove the connector from Connectors > APIs in TextQL.
For more details on how Notion handles API authentication and permissions, refer to Notion’s official API documentation.

Setup Checklist

Before moving on, confirm you’ve completed each step:
  • Generated credentials from Notion (PAT, or OAuth client ID + secret)
  • Added Notion as an API connector in TextQL under Connectors > APIs
  • Selected the matching authentication type and saved the connector
  • Shared the relevant pages and databases with your integration in Notion
  • Verified the connection by running a test query in Ana

Need Help?

Contact support@textql.com.