The notion-api skill provides comprehensive instructions for developers and automation users to interact with Notion workspaces through REST API calls, covering authentication, all available endpoints, pagination, error handling, and best practices. It solves the problem of programmatically reading, creating, updating, and deleting Notion content by offering detailed guidance on proper API key handling, request formatting, rate limiting, and confirmation protocols for destructive operations. The skill is designed for developers building integrations, agents, or scripts that need reliable, secure access to Notion data.

skills.sh installs
102.5K
GitHub stars
301
last updated
Aug 21, 2026

Install

$ npx -y skills add intellectronica/agent-skills --skill notion-api --agent claude-code

Installs into .claude/skills of the current project.

Files

Notion API Skill

This skill enables interaction with Notion workspaces through the Notion REST API. Use curl and jq for direct REST calls, or write ad-hoc scripts as appropriate for the task.

Authentication

API Key Handling

  1. Environment Variable: Check if NOTION_API_TOKEN is available in the environment
  2. User-Provided Key: If the user provides an API key in context, use that instead
  3. No Key Available: If neither is available, use AskUserQuestion (or equivalent) to request the API key from the user

IMPORTANT: Never display, log, or send NOTION_API_TOKEN anywhere except in the Authorization header. Confirm its existence, ask if missing, use it in requests—but never echo or expose it.

Request Headers

All requests require these headers:

-H "Authorization: Bearer $NOTION_API_TOKEN" \
-H "Notion-Version: 2025-09-03" \
-H "Content-Type: application/json"

Verifying Authentication

Test the API key by retrieving the bot user:

curl -s "https://api.notion.com/v1/users/me" \
  -H "Authorization: Bearer $NOTION_API_TOKEN" \
  -H "Notion-Version: 2025-09-03" | jq

Base URL and Conventions

Sponsors

Details

Repository
github.com/intellectronica/agent-skills
Categories
Backend & APIs, Security, AI & Agent Building, Debugging, Office & Documents

More from intellectronica/agent-skills

All 22
1addyosmani avatarapi-and-interface-designaddyosmani/agent-skillsGuides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defini72.4Kskills.sh installs
2wshobson avatarnodejs-backend-patternswshobson/agentsBuild production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, an49.8Kskills.sh installs
3samber avatargolang-databasesamber/cc-skills-golangComprehensive guide for Go database access — parameterized queries, struct scanning, NULLable columns, transactions, isolation levels, SELECT FOR UPDATE, connec42.5Kskills.sh installs
4neondatabase avatarneon-ai-gatewayneondatabase/agent-skillsOne API and one credential for frontier and open-source LLMs and embedding models, built into your Neon branch and powered by Databricks. Use when a user wants 39.8Kskills.sh installs
5better-auth avatartwo-factor-authentication-best-practicesbetter-auth/skillsMulti-factor authentication with TOTP, OTP, backup codes, and trusted device management for Better Auth.36.5Kskills.sh installs
6wshobson avatarapi-design-principleswshobson/agentsMaster REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewin31.3Kskills.sh installs