Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
IntegrationsNovember 22, 20265 min read

Use Notion as a CMS for your site

Notion is a pleasant place to write. With a database, an integration and a sync, it can feed a blog, a changelog or a help center on your own domain.

Startbase Team
Editorial ink illustration of handwritten notebooks feeding a small letterpress machine, the printed sheet in ember orange

Key takeaways

  • Write in a Notion database with explicit Status, Slug and Publish date properties, and only ever publish rows marked Published.
  • An internal Notion integration token goes in Backend → Secrets, and the integration must be connected to the database you share.
  • Copy images out of Notion during the sync: Notion-hosted file links expire after about an hour.

Using Notion as a CMS means your team writes posts in a Notion database, and your site pulls the published ones through the Notion API and renders them with your own design. The setup is a database with a few required properties, an internal integration with read access to it, a token stored as a backend secret, and a sync that turns Notion pages into rows your site can read fast. Writers never touch the site; the site never shows a draft.

When Notion is a good CMS, and when it is not

It fits blogs, changelogs, help centers, job listings and team pages: text-heavy content written by a handful of people who already live in Notion. It fits poorly when you need structured product data with strict validation, per-locale content with translation workflow, or hundreds of edits an hour. Notion's API is also rate-limited to an average of three requests per second per integration, which rules out fetching on every page view.

Set up the Notion side

  1. 01Create a database called `Posts` with these properties: `Title` (title), `Slug` (text), `Status` (select: Draft, In review, Published), `Publish date` (date), `Excerpt` (text), `Cover` (files), `Tags` (multi-select), `Author` (person or text).
  2. 02Create an internal integration in Notion's integrations settings, with read content capability only. Notion shows an internal integration secret; that is the token.
  3. 03Connect the integration to the database from the database's menu, under Connections. Skipping this step is the most common reason the API returns 'object not found'.
  4. 04Store the token in Backend → Secrets as `NOTION_TOKEN`, and the database ID (the 32-character id in its URL) as `NOTION_POSTS_DB`.

Tip

Startbase also offers Notion as an MCP connector, which lets the agent read your Notion pages while it builds, for example to look at your database properties or a spec. That is a tool for the agent, not a live feed for your site: the published site still needs the integration token and sync described here.

Two ways to get content onto the site

Sync into your database (recommended)

A scheduled job runs a `sync-notion` function every 10 minutes. It queries the Posts database filtered to `Status = Published` and `Publish date <= today`, pages through results 100 at a time, and for each changed page (compare Notion's `last_edited_time` with what you stored) fetches its blocks, converts them to HTML or a block JSON your renderer understands, and upserts a `posts` row: `notion_id`, `slug`, `title`, `excerpt`, `body_html`, `cover_url`, `tags`, `published_at`, `notion_edited_at`. Your site reads `posts` like any other table. Edits show up within minutes, with no republish.

Bake content in at publish time

The alternative is to fetch everything once when you publish and write it into the site as static pages. Search engines get fully rendered HTML with no loading step, which is good for SEO, but every new post or typo fix needs a fresh publish. Small blogs that post weekly often prefer this; anything with frequent edits prefers the sync.

Turning Notion blocks into pages

A Notion page is a tree of blocks: paragraphs, headings, bulleted and numbered list items, to-dos, quotes, callouts, code, images, toggles, tables and embeds. A few details decide whether your pages look right:

  • Children need extra requests. A toggle or nested list has child blocks you must fetch separately, and each page of blocks returns at most 100. Recurse with a depth limit.
  • List items are not grouped. Notion returns consecutive list items as separate blocks; your renderer wraps runs of them in one list.
  • Rich text carries annotations (bold, italic, code, links, colors). Map the ones your design supports and drop the rest, especially colors that clash with your theme.
  • Unsupported blocks exist. Some block types come back as `unsupported`. Skip them and log the page so a writer can fix it.
  • Headings make anchors. Generate ids from heading text so a table of contents and shareable section links work.

Images: copy them, always

Images uploaded into Notion are served from signed URLs that expire about an hour after the API returns them. Save those URLs in your database and every image on your blog breaks an hour later. During the sync, download each image, upload it to your own storage under a path like `posts/<notion_id>/<block_id>.webp`, and rewrite the HTML to point there. Skip images whose block id you have already copied. Images embedded from an external URL do not expire, but copying them too protects you from the source disappearing.

A workflow writers will actually follow

The CMS is only as good as the habits around it. A board view grouped by Status gives writers a simple pipeline: Draft, In review, Published. Add a `Preview` checkbox that the sync also honors, publishing those pages to a hidden `/preview/:slug` route that is excluded from your sitemap, so a reviewer can see the real design before the post goes live. Schedule posts by setting a future Publish date with Status Published: the sync picks them up on the first run after that date. And show 'Last synced 4 minutes ago' on the admin page, because the first question every writer asks is why their edit is not live yet.

Paste-ready brief

Use my Notion Posts database as the CMS for this site's blog. The integration token is in Secrets as NOTION_TOKEN and the database id as NOTION_POSTS_DB. Properties: Title, Slug, Status (Draft, In review, Published), Publish date, Excerpt, Cover, Tags, Author. Write an edge function sync-notion that queries only Published rows with a publish date up to today, skips pages whose last_edited_time has not changed, fetches blocks recursively (max depth 3), renders headings, paragraphs, lists, quotes, callouts, code, images and dividers to HTML, copies every image and cover into storage, and upserts a posts table by notion_id. Unpublish posts that disappear from the query. Respect Notion's 3 requests per second limit with retries on 429. Run every 10 minutes, add a Sync now button for admins, and build /blog and /blog/:slug pages from the posts table with a table of contents from the headings.

Pitfalls

  • Publishing drafts. Filter on an explicit Status in the query itself, not in the page code, so a draft never reaches your database.
  • Slug changes. A writer edits the slug and every shared link breaks. Store old slugs and redirect them to the current one.
  • Token in the browser. The Notion token can read everything the integration is connected to. Keep it in Secrets; connect the integration only to the Posts database, not a whole workspace.
  • Rate limits during a full resync. Five hundred posts with nested blocks can mean thousands of requests. Throttle to stay under three per second and spread a full resync over several runs.
  • Writers' formatting. Notion lets people paste anything. Publish a one-page style guide (one H1 from the title, H2s for sections, images under a size limit) and reject what your renderer cannot show.

Frequently asked questions

Is Notion good enough as a headless CMS?

For blogs, changelogs, help articles and job posts written by a small team, yes. For strict structured data, heavy localization or very frequent edits, a database-backed admin screen or a dedicated CMS fits better.

Why does the Notion API say my database cannot be found?

The integration is not connected to it. Open the database menu, go to Connections, and add your integration. The token alone grants nothing until you share content with it.

Why do images from Notion break on my site?

Notion-hosted file URLs are signed and expire after about an hour. Copy images into your own storage during the sync and serve them from there.

How quickly do Notion edits appear on the site?

With a sync every 10 minutes, within about 10 minutes, or immediately with a manual Sync now button. Baking content in at publish time instead needs a republish for each change.

On this page

  • When Notion is a good CMS, and when it is not
  • Set up the Notion side
  • Two ways to get content onto the site
  • Turning Notion blocks into pages
  • Images: copy them, always
  • A workflow writers will actually follow
  • Paste-ready brief
  • Pitfalls

Keep reading

More in Integrations
Editorial ink illustration of a folded paper street map with a brass compass and pushpins, the center pushpin in ember orange
IntegrationsNovember 22, 2026

How to add a map to your app

A map is two jobs: drawing tiles in the browser and turning addresses into coordinates. One key can be public, the other never should be.

6 min read
Editorial ink illustration of a carrier pigeon on a windowsill with a rolled note tied to its leg, the note in ember orange
IntegrationsNovember 22, 2026

How to send SMS from your app

Sending one text is ten lines of code. Sending texts people agreed to, that arrive, and that nobody can abuse, is the real work.

5 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.