Notion

From intentic/intentic · View interactive version

Notion is an AI agent skill from the GitHub repository intentic/intentic. Search, read, create and update pages and databases in your Notion workspace via the Notion API. Use when the user asks to find, read, or write Notion pages, notes, docs, or database rows.

How to use this skill

Skill file

Notion (connected)

Token in $NOTION_TOKEN. Base is $NOTION_API_URL/v1 (it stands in for https://api.notion.com/v1), and every call

carries three headers, so define this helper once per shell: notion <METHOD> <path> [-d '<json>']:

notion() { local m="$1" p="$2"; shift 2; curl -s -X "$m" -H "Authorization: Bearer $NOTION_TOKEN" \
  -H "Notion-Version: 2022-06-28" -H "Content-Type: application/json" \
  "$NOTION_API_URL/v1/$p" "$@"; }

A personal access token sees what the person who made it sees. An internal connection's token sees only the pages

and databases someone shared with it (page ••• → Connections); sub-pages inherit. **A 404 (object_not_found)

therefore usually means "not shared" (or, for a personal token, not visible to its owner), not "does not exist"**:

report it that way and ask the user to share the page rather than concluding it is gone.

Notes: an id is the 32 hex chars at the end of any Notion URL, hyphenated or not, both accepted, so users can

paste links. Search matches titles only; to find something by body text, read the likely pages. Paginate

with has_more/next_cursor → start_cursor (query param on GETs, body field on POSTs). One append call takes

at most 100 blocks and one rich-text item at most 2000 characters: chunk long writes. Rate limit averages 3

requests/second; on 429 honour Retry-After. Errors come as JSON {code, message}: quote message when

reporting, and remember object_not_found most often means unshared.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.