๐Ÿ’ปBlog CMS - Notion

Notion as a Headless Blog CMS

Notion Setup

Using Notion as a headless CMS for your blog enables a seamless content creation and publishing process, all from a single Notion database.

To set up Notion as a blog CMS, create an account on Notion.

Get Your API Key

Create an integration here and retrieve your integration token (API key). Add this value to the .env file:

NOTION_API_KEY=

Notion Database ID

Now, duplicate a copy of the PySaaS Blog Template. You should have a URL that looks something like:

https://www.notion.so/388657f17d6e4b52877e10926ff77cfd

The string after the domain is your Notion Database ID. Update that value in .env:

NOTION_DB_ID=

Finally, grant the integration you created access to your Notion database. You can do this by clicking the three dots button on your Notion database page, clicking "Add connections" and "Search for connections". You should see your integration to connect to your database.

Last updated