Skip to main content

Notion API

Manage Notion databases, pages, and folders through the File Storage Unified API.

Base Path

/notion

Endpoints

Databases

GET /notion/databases

List all databases.

Pages

GET /notion/databases/:databaseId/pages

List pages in a database.

POST /notion/databases/:databaseId/pages

Create a page.

Request:

curl -X POST http://localhost:3007/notion/databases/db-123/pages \
-H "Content-Type: application/json" \
-H "X-API-KEY: your-internal-key" \
-H "X-Tenant-Id: my-tenant" \
-d '{
"name": "New Meeting Notes",
"description": "Notes from team meeting"
}'

GET /notion/databases/:databaseId/pages/:pageId

Get page details.

PUT /notion/databases/:databaseId/pages/:pageId

Update a page.

Folders

GET /notion/folders

List all folders.

POST /notion/folders

Create a folder.

Comments

GET /notion/databases/:databaseId/pages/:pageId/comments

Get page comments.

POST /notion/databases/:databaseId/pages/:pageId/comments

Add comment to page.