← Back to Skills Marketplace
ivangdavila

Notion API Integration

by Iván · GitHub ↗ · v1.0.2
linuxdarwinwin32 ✓ Security Clean
662
Downloads
0
Stars
5
Active Installs
3
Versions
Install in OpenClaw
/install notion-api-integration
Description
Complete Notion API for databases, pages, blocks, users, search, comments, and property types with pagination and error handling.
README (SKILL.md)

Notion API Integration

Complete Notion API reference. See auxiliary files for detailed operations.

Quick Start

curl 'https://api.notion.com/v1/users/me' \
  -H "Authorization: Bearer $NOTION_API_KEY" \
  -H "Notion-Version: 2022-06-28"

Setup

On first use, read setup.md. Preferences stored in ~/notion-api-integration/memory.md.

When to Use

Any Notion operation: databases, pages, blocks, users, search, comments, properties.

Architecture

~/notion-api-integration/
├── memory.md      # Workspace context
└── databases.md   # Tracked database IDs

Quick Reference

Topic File
Setup and memory setup.md, memory-template.md
Databases: query, create, update databases.md
Pages: CRUD, properties pages.md
Blocks: content, children blocks.md
Property types reference properties.md
Filters and sorts filters.md
Search and users search.md
Pagination patterns pagination.md
Error handling errors.md

Core Rules

  1. API version header required - Always include Notion-Version: 2022-06-28 (or newer)
  2. Bearer token auth - Authorization: Bearer $NOTION_API_KEY
  3. Page IDs without dashes - Remove dashes from URLs: abc123def456 not abc-123-def-456
  4. Property names are case-sensitive - Match exactly as defined in database
  5. Pagination mandatory - Use start_cursor for results over 100 items
  6. Rate limits - 3 requests/second average, burst allowed
  7. Integration access - Pages must be shared with integration to access

Authentication

Required environment variable:

  • NOTION_API_KEY - Internal integration token (starts with ntn_ or secret_)
# All requests require these headers
curl 'https://api.notion.com/v1/...' \
  -H "Authorization: Bearer $NOTION_API_KEY" \
  -H "Notion-Version: 2022-06-28" \
  -H "Content-Type: application/json"

Common Traps

  • Missing Notion-Version header - 400 error
  • Page ID with dashes - 404 not found
  • Property name mismatch - Silent failure or error
  • Skipping pagination - Miss data beyond first 100
  • No integration access - 404 even if page exists

External Endpoints

Endpoint Purpose
https://api.notion.com/v1/* All Notion API operations

No other endpoints are accessed.

Security & Privacy

Environment variable used:

  • NOTION_API_KEY - for API authentication

Sent to Notion: Database queries, page content, block updates via api.notion.com Stays local: API key (in environment variable only), ~/notion-api-integration/ preferences Never: Store API keys in files, access pages not shared with integration

Scope

This skill ONLY:

  • Makes requests to api.notion.com endpoints
  • Stores preferences in ~/notion-api-integration/
  • Provides curl and code examples

This skill NEVER:

  • Accesses files outside ~/notion-api-integration/
  • Makes requests to other endpoints
  • Stores API keys in files

Trust

By using this skill, data is sent to Notion (notion.com). Only install if you trust Notion with your workspace data.

Related Skills

Install with clawhub install \x3Cslug> if user confirms:

  • api — REST API patterns
  • pkm — Personal knowledge management
  • productivity — Task and productivity workflows

Feedback

  • If useful: clawhub star notion-api-integration
  • Stay updated: clawhub sync
Usage Guidance
This skill is coherent with its Notion-focused description, but review a few points before installing: (1) Provide a Notion internal integration token (ntn_ or secret_) scoped with the minimum permissions needed for your use case rather than a full admin token. (2) The skill will create/update ~/notion-api-integration/memory.md; check that file for any workspace names, database IDs, or other metadata you don't want stored. (3) Do not put your token into files — the skill itself reiterates this. (4) When granting the integration in Notion, share only the pages/databases the integration needs. (5) If you ever suspect misuse, revoke the integration token in Notion and create a new one. Overall this appears to be a straightforward Notion API reference/integration guide rather than something that accesses unrelated data or endpoints.
Capability Analysis
Type: OpenClaw Skill Name: notion-api-integration Version: 1.0.2 The skill bundle provides a comprehensive integration with the Notion API, clearly defining its scope, required environment variables (`NOTION_API_KEY`), and local storage (`~/notion-api-integration/`). All network calls are exclusively directed to `https://api.notion.com/v1/*`. The documentation explicitly states that API keys are not stored in files and that the skill does not access files outside its designated local directory or make requests to other endpoints. Instructions for the AI agent in `SKILL.md` and `memory-template.md` focus on proper API interaction, context management, and privacy adherence, showing no evidence of malicious prompt injection or intent to exfiltrate data or execute unauthorized commands. The provided `curl` and code examples are standard for Notion API interaction and do not contain any malicious payloads or obfuscation.
Capability Assessment
Purpose & Capability
Name/description (Notion API integration) match the declared requirements: a single NOTION_API_KEY and a config directory for preferences. No unrelated binaries, services, or credentials are requested.
Instruction Scope
Runtime instructions are limited to calling api.notion.com and managing a local preferences file under ~/notion-api-integration/. The memory template instructs the agent to create and update memory.md (workspace context, database IDs, preferences). This is within the declared scope, but the memory file may contain workspace names and database IDs (moderately sensitive) so users should review what the agent writes there.
Install Mechanism
No install spec and no code files — instruction-only skill (lowest install risk). Nothing is downloaded or written by an installer beyond the agent's normal behavior and the declared config path.
Credentials
Only NOTION_API_KEY is required (declared as primaryEnv). No unrelated secrets or multiple credentials are requested. The skill explicitly warns not to store API keys in files while using a local preferences directory for non-secret data.
Persistence & Privilege
always:false and normal autonomous invocation settings. The only persistent artifact is the declared ~/notion-api-integration/ preference file — no modifications to other skills or system-wide settings are instructed.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install notion-api-integration
  3. After installation, invoke the skill by name or use /notion-api-integration
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
Fixed memory template to use standard status values and natural language context.
v1.0.1
Use ~/notion-api-integration/ as config path (matching slug).
v1.0.0
Initial release with comprehensive Notion API coverage.
Metadata
Slug notion-api-integration
Version 1.0.2
License
All-time Installs 5
Active Installs 5
Total Versions 3
Frequently Asked Questions

What is Notion API Integration?

Complete Notion API for databases, pages, blocks, users, search, comments, and property types with pagination and error handling. It is an AI Agent Skill for Claude Code / OpenClaw, with 662 downloads so far.

How do I install Notion API Integration?

Run "/install notion-api-integration" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Notion API Integration free?

Yes, Notion API Integration is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Notion API Integration support?

Notion API Integration is cross-platform and runs anywhere OpenClaw / Claude Code is available (linux, darwin, win32).

Who created Notion API Integration?

It is built and maintained by Iván (@ivangdavila); the current version is v1.0.2.

💬 Comments