Graphlit Platform
Developer PortalChangelogPlatform StatusMore InformationJoin Discord
  • Graphlit Platform
    • What is Graphlit?
    • Key Concepts
  • Getting Started
    • Sign up for Graphlit
    • Create Graphlit Project
    • For Python Developers
    • For Node.js Developers
    • For .NET Developers
  • 🚀Quickstart
    • Next.js applications
      • GitHub Code
    • Python applications
      • GitHub Code
  • Graphlit Data API
    • API Usage
      • API Endpoints
      • API Authentication
      • API Explorer
      • GraphQL 101
    • API Reference
      • Content
        • Ingest With Workflow
        • Ingest File
        • Ingest Encoded File
        • Ingest Web Page
        • Ingest Text
        • Semantic Search
          • Query All Content
          • Query Facets
          • Query By Name
          • Filter By Contents
        • Metadata Filtering
          • Filter By Observations
          • Filter By Feeds
          • Filter By Collections
          • Filter By Content Type
          • Filter By File Type
          • Filter By File Size Range
          • Filter By Date Range
        • Summarize Contents
        • Extract Contents
        • Publish Contents
      • Knowledge Graph
        • Labels
        • Categories
        • Persons
        • Organizations
        • Places
        • Events
        • Products
        • Repos
        • Software
      • Collections
      • Feeds
        • Create Feed With Workflow
        • Create RSS Feed
        • Create Podcast Feed
        • Create Web Feed
        • Create Web Search Feed
        • Create Reddit Feed
        • Create Notion Feed
        • Create YouTube Feed
        • User Storage Feeds
          • Create OneDrive Feed
          • Create Google Drive Feed
          • Create SharePoint Feed
        • Cloud Storage Feeds
          • Create Amazon S3 Feed
          • Create Azure Blob Feed
          • Create Azure File Feed
          • Create Google Blob Feed
        • Messaging Feeds
          • Create Slack Feed
          • Create Microsoft Teams Feed
          • Create Discord Feed
        • Email Feeds
          • Create Google Mail Feed
          • Create Microsoft Outlook Feed
        • Issue Feeds
          • Create Linear Feed
          • Create Jira Feed
          • Create GitHub Issues Feed
        • Configuration Options
      • Workflows
        • Ingestion
        • Indexing
        • Preparation
        • Extraction
        • Enrichment
        • Actions
      • Conversations
      • Specifications
        • Azure OpenAI
        • OpenAI
        • Anthropic
        • Mistral
        • Groq
        • Deepseek
        • Replicate
        • Configuration Options
      • Alerts
        • Create Slack Audio Alert
        • Create Slack Text Alert
      • Projects
    • API Changelog
    • Multi-tenant Applications
  • JSON Mode
    • Overview
    • Document JSON
    • Transcript JSON
  • Content Types
    • Files
      • Documents
      • Audio
      • Video
      • Images
      • Animations
      • Data
      • Emails
      • Code
      • Packages
      • Other
    • Web Pages
    • Text
    • Posts
    • Messages
    • Emails
    • Issues
  • Data Sources
    • Feeds
  • Platform
    • Developer Portal
      • Projects
    • Cloud Platform
      • Security
      • Subprocessors
  • Resources
    • Community
Powered by GitBook
On this page
  • Create your own Notion internal integration
  • Add Connection to Notion page or database

Was this helpful?

  1. Graphlit Data API
  2. API Reference
  3. Feeds

Create Notion Feed

Create Notion feed to ingest Notion pages and databases.

Last updated 1 year ago

Was this helpful?

Graphlit supports ingesting pages from Notion pages and databases (i.e. wikis).

The createFeed mutation enables the creation of a feed by accepting the feed name, type and notion feed parameters and it returns essential details, including the ID, name, state, and type of the newly generated feed.

Depending on the specified type parameter, Graphlit requires the specific feed parameters including the Notion identifiers, type and token.

Optionally, you can enable the reading of child pages and databases with the isRecursive flag in the Notion feed parameters.

Notion pages

When ingesting one or more Notion pages, assign the type property to PAGE, and assign the identifiers array to the list of Notion page identifiers.

For example, if you have a Notion page URL like: https://www.notion.so/workspace/My-Page-02e9a74857394304894c7d087d14cc93

The page identifier is the last segment of the page URI (after the last hyphen): 02e9a74857394304894c7d087d14cc93

Notion databases

When ingesting one or more Notion databases, assign the type property to DATABASE, and assign the identifiers array to the list of Notion database identifiers.

For example, if you have a Notion database or wiki URL like:

https://www.notion.so/workspace/2220500c1ad64ec7b5ca23d43bd2819b

The database identifier is the last segment of the URI: 2220500c1ad64ec7b5ca23d43bd2819b

Notion support requires the creation of an internal integration via the .

Create your own Notion internal integration

  • Visit the , and signin with your Notion workspace account.

  • Click Create New Integration

  • Select your Associated workspace

  • Enter your integration name, such as Graphlit Platform

  • Click Submit

  • Click on Capabilities, and uncheck Update content and Insert content, only allowing Read content. Click Save changes.

  • Click on Secrets, and click to show your Internal Integration Secret and copy the secret value to use as the token property when creating a Notion feed.

Add Connection to Notion page or database

Once you have your integration created, you can share any pages or databases in your Notion workspace with Graphlit, by adding your integration, as shown in this video.

Graphlit can only ingest pages or databases which have had the integration added, with the matching token used in the Notion feed.

Mutation:

mutation CreateFeed($feed: FeedInput!) {
  createFeed(feed: $feed) {
    id
    name
    state
    type
  }
}

Variables:

{
  "feed": {
    "type": "NOTION",
    "notion": {
      "token": "redacted",
      "identifiers": [
        "2220500c1ad64ec7b5ca23d43bd2819b"
      ],
      "type": "DATABASE"
    },
    "schedulePolicy": {
      "recurrenceType": "ONCE"
    },
    "name": "Notion Feed"
  }
}

Response:

{
  "type": "NOTION",
  "id": "37625012-429a-46d6-b5da-5cf928392a6c",
  "name": "Notion Feed",
  "state": "ENABLED"
}

Notion pages are internally converted to Markdown format and stored as TEXT content type.

Notion developer portal
Notion developer portal
Cover

Queries

Cover

Mutations

Cover

Objects