/notion-api
Source: notion-api-docs Category: Development & API
Generate Notion API code and debug integrations.
What It Does
- Generates working Notion API code from your description
- References the actual endpoint docs, property types, block types from the site
- Debugs your Notion API errors using the documented error codes
- Creates database schemas with correct property configurations
- Handles the weird stuff (rate limits, pagination, webhooks) using the SOPs
Example Usage
Input: "Create a database for tracking leads with status, company, and last contact date"
Skill Response:
- Generates the exact API call
- Uses correct property types
- Handles all the Notion-specific quirks
- Includes error handling
Capabilities
| Action | Description |
|---|---|
| Database Creation | Create databases with proper property types |
| Page Operations | Create, read, update, delete pages |
| Block Manipulation | Work with content blocks |
| Error Debugging | Diagnose and fix Notion API errors |
| Pagination | Handle large result sets correctly |
Property Types
The skill knows all Notion property types:
- Title, Rich Text, Number, Select, Multi-select
- Date, People, Files, Checkbox, URL, Email, Phone
- Formula, Relation, Rollup, Created time, Last edited
Code Examples
Create Database
javascript
const response = await notion.databases.create({
parent: { page_id: "..." },
title: [{ text: { content: "Leads" } }],
properties: {
"Name": { title: {} },
"Status": { select: { options: [...] } },
"Company": { rich_text: {} },
"Last Contact": { date: {} }
}
});Quick Start
/notion-apiSkill will ask what you want to do with Notion, then generate the code.