Quickstart
Create a project and virtual environemnt¶
You'll only need to do this once.
Activate the virtual environment¶
Do this every time you start a new terminal session.
Install Notionary¶
Setup Your Notion Integration¶
Before using Notionary, you need to create a Notion integration and get your API token.
Step 1: Create a Notion Integration¶
- Go to notion.so/profile/integrations
- Click "+ New integration"
- Give your integration a name (e.g., "My Notionary App")
- Select the workspace you want to use
- Click "Submit"
Step 2: Get Your Integration Token¶
After creating the integration, you'll see an "Internal Integration Token". Copy this token - you'll need it next.
Step 3: Set Environment Variable¶
Create a .env file in your project directory:
Or set it directly in your environment:
Step 4: Share Pages with Your Integration¶
Your integration needs access to the pages/databases you want to work with:
- Open the Notion page or database you want to use
- Click "Share" in the top-right corner
- Click "Invite" and search for your integration name
- Select your integration and click "Invite"