notion
Skill4 starsChanged 3 months agoMITView on GitHub
Work with the Notion API using configured auth, databases, data sources, pages, search, querying, and updates.
109 other projects use a version of this.
Adopted by
Most recently taken up by
- openamer-max/max-scriptstheir own version, first seen Nov 29, 2026
- trac3r00/agent-skillstheir own version, first seen Nov 29, 2026
- zrtch/awesome-skillstheir own version, first seen Nov 29, 2026
- aayushsoam/clawbot-plustheir own version, first seen Nov 29, 2026
- Ghost7802/awesome-api-skillstheir own version, first seen Nov 29, 2026
- unisone/openclaw-configtheir own version, first seen Nov 29, 2026
Used with
Projects with it also use taskflow-inbox-triage, food-order and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AtomicBot-aiSkilltaskflow-inbox-triage
Also in 7 projects that use this
seedprodSkillfood-order
Reorder Foodora orders + track ETA/status with ordercli. Never confirm without explicit user approval. Triggers: order food, reorder, track ETA.
Also in 6 projects that use this
seedprodSkillvoice-call
Start voice calls via the OpenClaw voice-call plugin.
Also in 20 projects that use this
jiulingyunSkillBlueBubbles
为Clawdbot构建或更新BlueBubbles外部通道插件(扩展包,REST发送/探测,webhook入站)。
Also in 20 projects that use this
hkyutongSkillopenclaw-release-maintainer
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
Also in 4 projects that use this
AtomicBot-aiSkilltaskflow
Also in 7 projects that use this
- +5 more from seedprod
Other versions109 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 109
- molt-bot/clawdbot★ 395ksame name
- steipete/warelay★ 395ksame name
- steipete/clawdis★ 395ksame name
- moltbot/clawdbot★ 395ksame name
- openclaw/openclaw★ 395ksame name
- moltbot/moltbot★ 394ksame name
- clawdbot/clawdbot★ 394ksame name
- spinabot/brigade★ 11ksame name
- the-open-agent/openagent★ 5.7ksame name
- casibase/casibase★ 5.7ksame name
99 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- checkpoint-and-resumeSkill
- code-projectSkill
- githubSkill
- human-in-the-loopSkill
- skill-creatorSkill
- verify-workSkill
- web-researchSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
36 rules. 0 are common, 13 are distinctive, and 23 are very specific to this project.
0
Common
Most of the 104 edited versions we read keep these.
13
Distinctive
This author's own choices. Worth a look.
23
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Use this skill when a task requires interacting with Notion through its REST API: finding pages or data sources, creating or updating …
- Very specific: line 17
Use http_request with integration: "notion" for all Notion API calls.
- Very specific: line 21
Never set Authorization or other protected auth headers directly.
- Distinctive: line 23
Never ask the user to paste raw API tokens into task text.
- Very specific: line 24
Use base URL https://api.notion.com.
- Very specific: line 26
Prefer a host-side default header Notion-Version: 2026-03-11 in secrets.yaml.
- Very specific: line 29
If integration: "notion" is unavailable or the broker denies access, report inability with the broker reason.
- Very specific: line 35
If the user gives a database URL or ID and needs rows or schema, first call GET /v1/databases/{database_id} to discover child data_sources.
- Very specific: line 37
Use data_source_id for row-oriented work: querying rows, creating rows, retrieving schemas, updating schemas, listing templates, or moving …
- Very specific: line 46
If broker returns policy_denied, include requested_method, requested_url, and reason in your report and do not retry the same denied …
- Very specific: line 49
If broker returns rate_limited, wait and retry once, or report the limitation when waiting is not appropriate.
- Distinctive: line 67
Search for discovery and data source query for table rows.
- Distinctive: line 75
Use this argument shape for every Notion API call:
- Very specific: line 89
Do not add an "action" field.
- Very specific: line 93
Use body: null for GET requests.
- Very specific: line 94
Do not include Authorization.
- Distinctive: line 114
Use Search to discover pages and data sources shared with the integration.
- Distinctive: line 141
Use Query a data source, not Search, when the task is to search rows inside one known table.
- Distinctive: line 145
Use database endpoints for the database container and its child data source list, not for row queries.
- Very specific: line 170
Use this to inspect database metadata and discover child data_sources.
- Very specific: line 185
Use this for database metadata only: title, description, icon, cover, is_inline, in_trash, is_locked, or parent move.
- Distinctive: line 202
Use data source endpoints for table schemas, rows, templates, and row queries.
- Very specific: line 225
Use this before creating/updating pages when property names, IDs, or types are unknown.
- Very specific: line 263
Use this for schema or data source metadata updates: title, description, icon, properties, in_trash, or moving to another database with …
- Very specific: line 292
Use this when creating pages from templates or inspecting available templates.
- Very specific: line 306
Use page endpoints for page properties, icons/covers, moving/trashing/locking, templates, and content.
- Distinctive: line 319
Create a data source row:
- Distinctive: line 333
Create a child page with markdown content:
- Distinctive: line 353
Use this to inspect page properties, parent, URL, icon, cover, trash status, and lock status.
- Very specific: line 370
Use this when a page property has more than 25 references or when you need a specific property value.
- Very specific: line 387
Use this to update page properties, icon, cover, is_locked, template application, erase_content, or in_trash.
- Very specific: line 416
Use this to move an existing regular page under another page or into a data source.
- Very specific: line 435
Use this for agentic reading of page body content.
- Very specific: line 452
Prefer update_content for targeted search-and-replace or replace_content for a full replacement.
- Distinctive: line 484
Use exact property names or property IDs from the data source schema.
- Distinctive: line 524
When a request fails, inspect both HTTP status and JSON error body before deciding whether to retry, alter the request, ask the user for …
“Common” is measured: kept by at least 6 in 10 of the 104 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Notion API
When To Use
Use this skill when a task requires interacting with Notion through its REST API: finding pages or data sources, creating or updating databases, managing data source schemas, creating or updating pages, moving or trashing pages, reading or updating markdown page content, querying rows, or diagnosing Notion API errors.
Integration And Broker Rules
Use http_request with integration: "notion" for all Notion API calls.
- Integration names are an authorization boundary. Use only names listed in the
execution context under
Configured integrations. - Never set
Authorizationor other protected auth headers directly. Credentials are injected by the host-side broker. - Never ask the user to paste raw API tokens into task text.
- Use base URL
https://api.notion.com. - For JSON write requests, set
Content-Type: application/json. - Prefer a host-side default header
Notion-Version: 2026-03-11insecrets.yaml. If the configured version is older, moderndata_sourcesand markdown-content endpoints may fail or behave differently. - If
integration: "notion"is unavailable or the broker denies access, report inability with the broker reason.
Operating Model
- Identify whether the task is about discovery, a database container, a data source schema/table, page properties, page content, or search.
- If the user gives a database URL or ID and needs rows or schema, first call
GET /v1/databases/{database_id}to discover childdata_sources. - Use
data_source_idfor row-oriented work: querying rows, creating rows, retrieving schemas, updating schemas, listing templates, or moving pages into a table. - Retrieve schemas before writing page properties unless property names and types are already known.
- Inspect Notion error bodies and adjust request shape rather than repeating failed calls unchanged.
- For paginated responses, continue while
has_moreis true usingnext_cursorasstart_cursor. - If broker returns
policy_denied, includerequested_method,requested_url, andreasonin your report and do not retry the same denied request. - If broker returns
rate_limited, wait and retry once, or report the limitation when waiting is not appropriate. - Summarize created/updated object IDs, URLs, and any partial failures.
IDs, Permissions, And Versioning
A Notion integration must have the needed capabilities, and the target page, database, or data source must be shared with the integration. A 404 can mean the resource exists but is not shared with the integration.
Modern Notion APIs split databases and data sources:
- A database is a container that can have one or more child data sources.
- A data source is the table/schema whose children are pages.
- Pages inside a data source are rows. Page property values must match the data source property schema.
- Retrieve a database to find its
data_sources; retrieve a data source to find itsproperties. - Legacy database query/list APIs are deprecated for modern API versions. Prefer Search for discovery and data source query for table rows.
Request Template
The examples below show the args payload for the http_request tool. In
native tool-call mode, call http_request with these fields as function
arguments. In prompt-structured mode, wrap the same object under
{"tool":"http_request","args":...}.
Use this argument shape for every Notion API call:
{
"method": "GET",
"url": "https://api.notion.com/v1/...",
"integration": "notion",
"headers": {},
"body": null
}Important strangeClaw details:
- Do not add an
"action"field. Thehttp_requesttool adds"action": "http_request"internally when it calls the broker. bodymust be eithernullor a JSON-encoded string. Do not pass a nested object asbody.- Use
body: nullforGETrequests. - Do not include
Authorization; the broker injects it fromcredentials.notion. - The broker should usually add
Notion-Versionfromcredentials.notion.default_headers, so examples omit it.
For write requests:
{
"method": "POST",
"url": "https://api.notion.com/v1/...",
"integration": "notion",
"headers": {
"Content-Type": "application/json"
},
"body": "{\"key\":\"value\"}"
}Search Endpoints
Use Search to discover pages and data sources shared with the integration.
Search by title
POST /v1/search
Body fields:
query: optional title text. If omitted, returns shared pages/data sources.filter: optional object filter. Use{"property":"object","value":"page"}or{"property":"object","value":"data_source"}.sort: optional, commonly bylast_edited_time.start_cursor,page_size: pagination controls.
Example: find data sources with a title:
{
"method": "POST",
"url": "https://api.notion.com/v1/search",
"integration": "notion",
"headers": {
"Content-Type": "application/json"
},
"body": "{\"query\":\"Tasks\",\"filter\":{\"property\":\"object\",\"value\":\"data_source\"},\"sort\":{\"direction\":\"descending\",\"timestamp\":\"last_edited_time\"},\"page_size\":10}"
}Use Query a data source, not Search, when the task is to search rows inside one known table.
Database Endpoints
Use database endpoints for the database container and its child data source list, not for row queries.
Create a database and initial data source
POST /v1/databases
Creates a database under a parent page or workspace and creates its initial data
source. Include initial_data_source.properties when defining the initial
schema.
{
"method": "POST",
"url": "https://api.notion.com/v1/databases",
"integration": "notion",
"headers": {
"Content-Type": "application/json"
},
"body": "{\"parent\":{\"type\":\"page_id\",\"page_id\":\"<parent_page_id>\"},\"title\":[{\"text\":{\"content\":\"Tasks\"}}],\"initial_data_source\":{\"title\":[{\"text\":{\"content\":\"Tasks\"}}],\"properties\":{\"Name\":{\"title\":{}},\"Status\":{\"status\":{}},\"Due\":{\"date\":{}}}}}"
}Retrieve a database
GET /v1/databases/{database_id}
Use this to inspect database metadata and discover child data_sources.
{
"method": "GET",
"url": "https://api.notion.com/v1/databases/<database_id>",
"integration": "notion",
"headers": {},
"body": null
}Update a database
PATCH /v1/databases/{database_id}
Use this for database metadata only: title, description, icon, cover,
is_inline, in_trash, is_locked, or parent move. To update schema columns,
use PATCH /v1/data_sources/{data_source_id}.
{
"method": "PATCH",
"url": "https://api.notion.com/v1/databases/<database_id>",
"integration": "notion",
"headers": {
"Content-Type": "application/json"
},
"body": "{\"title\":[{\"text\":{\"content\":\"Updated Tasks\"}}]}"
}Data Source Endpoints
Use data source endpoints for table schemas, rows, templates, and row queries.
Create a data source
POST /v1/data_sources
Adds another data source to an existing database. The parent.database_id is
required. A standard table view is created automatically.
{
"method": "POST",
"url": "https://api.notion.com/v1/data_sources",
"integration": "notion",
"headers": {
"Content-Type": "application/json"
},
"body": "{\"parent\":{\"database_id\":\"<database_id>\"},\"title\":[{\"text\":{\"content\":\"Bugs\"}}],\"properties\":{\"Name\":{\"title\":{}},\"Priority\":{\"select\":{\"options\":[{\"name\":\"High\",\"color\":\"red\"},{\"name\":\"Low\",\"color\":\"blue\"}]}}}}"
}Retrieve a data source
GET /v1/data_sources/{data_source_id}
Use this before creating/updating pages when property names, IDs, or types are
unknown. The response contains the properties schema.
{
"method": "GET",
"url": "https://api.notion.com/v1/data_sources/<data_source_id>",
"integration": "notion",
"headers": {},
"body": null
}Query a data source
POST /v1/data_sources/{data_source_id}/query
Returns pages contained in the data source. Use filter, sorts,
start_cursor, page_size, and filter_properties as needed. Add
filter_properties[] query parameters to reduce large responses.
{
"method": "POST",
"url": "https://api.notion.com/v1/data_sources/<data_source_id>/query?filter_properties[]=Name&filter_properties[]=Status",
"integration": "notion",
"headers": {
"Content-Type": "application/json"
},
"body": "{\"filter\":{\"property\":\"Status\",\"status\":{\"equals\":\"Done\"}},\"sorts\":[{\"property\":\"Due\",\"direction\":\"ascending\"}],\"page_size\":50}"
}For wikis, query results can include pages or data sources. Use a result_type
filter such as "page" or "data_source" when only one type is wanted.
Update a data source
PATCH /v1/data_sources/{data_source_id}
Use this for schema or data source metadata updates: title, description,
icon, properties, in_trash, or moving to another database with parent.
Set a property key to null to remove it. This endpoint does not update row
values; use Update page for row/page properties.
{
"method": "PATCH",
"url": "https://api.notion.com/v1/data_sources/<data_source_id>",
"integration": "notion",
"headers": {
"Content-Type": "application/json"
},
"body": "{\"properties\":{\"Priority\":{\"select\":{\"options\":[{\"name\":\"High\",\"color\":\"red\"},{\"name\":\"Low\",\"color\":\"blue\"}]}},\"Obsolete\":null}}"
}Schema caveats:
- API schema updates cannot update
formula,status, synced content, orplaceproperties. - Data source schema updates that are too large can be rejected. Prefer keeping schemas small and removing unused properties.
- Relation properties require the related database to be shared with the integration.
List data source templates
GET /v1/data_sources/{data_source_id}/templates
Use this when creating pages from templates or inspecting available templates.
Supports name, start_cursor, and page_size.
{
"method": "GET",
"url": "https://api.notion.com/v1/data_sources/<data_source_id>/templates?page_size=100",
"integration": "notion",
"headers": {},
"body": null
}Page Endpoints
Use page endpoints for page properties, icons/covers, moving/trashing/locking, templates, and content.
Create a page
POST /v1/pages
For a page inside a data source, use parent.data_source_id and provide
properties matching the data source schema. For a child page under another
page, use parent.page_id; in that case title is the only valid property.
You can provide page content either as children blocks or as markdown.
markdown is mutually exclusive with children and content.
Create a data source row:
{
"method": "POST",
"url": "https://api.notion.com/v1/pages",
"integration": "notion",
"headers": {
"Content-Type": "application/json"
},
"body": "{\"parent\":{\"data_source_id\":\"<data_source_id>\"},\"properties\":{\"Name\":{\"title\":[{\"text\":{\"content\":\"Write release notes\"}}]},\"Status\":{\"status\":{\"name\":\"Not started\"}}}}"
}Create a child page with markdown content:
{
"method": "POST",
"url": "https://api.notion.com/v1/pages",
"integration": "notion",
"headers": {
"Content-Type": "application/json"
},
"body": "{\"parent\":{\"page_id\":\"<parent_page_id>\"},\"markdown\":\"# Meeting Notes\\n\\nDiscussed roadmap priorities.\"}"
}Generated properties such as rollups, created time, last edited time, created by, and last edited by cannot be set directly.
Retrieve a page
GET /v1/pages/{page_id}
Use this to inspect page properties, parent, URL, icon, cover, trash status, and lock status. This does not return full page body content; use markdown content or block children endpoints for content.
{
"method": "GET",
"url": "https://api.notion.com/v1/pages/<page_id>",
"integration": "notion",
"headers": {},
"body": null
}Retrieve a page property item
GET /v1/pages/{page_id}/properties/{property_id}
Use this when a page property has more than 25 references or when you need a
specific property value. Supports start_cursor and page_size for paginated
property types such as title, rich_text, relation, and people.
{
"method": "GET",
"url": "https://api.notion.com/v1/pages/<page_id>/properties/<property_id>?page_size=100",
"integration": "notion",
"headers": {},
"body": null
}Update a page
PATCH /v1/pages/{page_id}
Use this to update page properties, icon, cover, is_locked, template
application, erase_content, or in_trash. Use in_trash: true to trash a
page and in_trash: false to restore it. The API does not permanently delete
pages.
{
"method": "PATCH",
"url": "https://api.notion.com/v1/pages/<page_id>",
"integration": "notion",
"headers": {
"Content-Type": "application/json"
},
"body": "{\"properties\":{\"Status\":{\"status\":{\"name\":\"Done\"}}},\"is_locked\":false}"
}Limitations:
propertiesupdates only work for pages in a data source, except for title updates on pages outside a data source.- A page's
parentcannot be changed with this endpoint. Use Move page. - Updating rollup property values is not supported.
- To add block content with the block API, use Append block children with the
page ID as
block_id.
Move a page
POST /v1/pages/{page_id}/move
Use this to move an existing regular page under another page or into a data
source. Moving databases or non-page blocks is not supported. Use
data_source_id, not database_id, when moving a page into a table.
{
"method": "POST",
"url": "https://api.notion.com/v1/pages/<page_id>/move",
"integration": "notion",
"headers": {
"Content-Type": "application/json"
},
"body": "{\"parent\":{\"type\":\"data_source_id\",\"data_source_id\":\"<data_source_id>\"}}"
}Retrieve page content as markdown
GET /v1/pages/{page_id}/markdown
Use this for agentic reading of page body content. The response contains
markdown, truncated, and unknown_block_ids. If truncated, pass an unknown
block ID to this endpoint to fetch that subtree separately.
{
"method": "GET",
"url": "https://api.notion.com/v1/pages/<page_id>/markdown?include_transcript=false",
"integration": "notion",
"headers": {},
"body": null
}Update page content as markdown
PATCH /v1/pages/{page_id}/markdown
Prefer update_content for targeted search-and-replace or replace_content
for a full replacement. insert_content and replace_content_range are legacy
options and should be used only when specifically needed. Use
allow_deleting_content: true only when deletion of child content is intended.
{
"method": "PATCH",
"url": "https://api.notion.com/v1/pages/<page_id>/markdown",
"integration": "notion",
"headers": {
"Content-Type": "application/json"
},
"body": "{\"type\":\"update_content\",\"update_content\":{\"content_updates\":[{\"old_str\":\"existing text\",\"new_str\":\"replacement text\"}]}}"
}Full replacement example:
{
"method": "PATCH",
"url": "https://api.notion.com/v1/pages/<page_id>/markdown",
"integration": "notion",
"headers": {
"Content-Type": "application/json"
},
"body": "{\"type\":\"replace_content\",\"replace_content\":{\"new_str\":\"# New content\\n\\nBody text.\"}}"
}Common Property Shapes
Use exact property names or property IDs from the data source schema.
{
"Name": {"title": [{"text": {"content": "Title"}}]},
"Description": {"rich_text": [{"text": {"content": "Details"}}]},
"Done": {"checkbox": true},
"Due": {"date": {"start": "2026-06-01"}},
"Status": {"status": {"name": "Done"}},
"Priority": {"select": {"name": "High"}},
"Tags": {"multi_select": [{"name": "API"}, {"name": "Docs"}]},
"URL": {"url": "https://example.com"},
"Email": {"email": "user@example.com"},
"Phone": {"phone_number": "+1 555 0100"},
"Number": {"number": 42},
"Relation": {"relation": [{"id": "<page_id>"}]},
"People": {"people": [{"id": "<user_id>"}]}
}Pagination
For list responses, repeat the same endpoint with start_cursor set to the
previous next_cursor while has_more is true. Keep page_size reasonable
(often 50 or 100). For data source queries, put pagination fields in the JSON
body. For page property items and data source templates, use query parameters.
Error Handling
Notion error bodies usually include object, status, code, and message.
Report these fields when present.
- 400: malformed request, wrong property shape, invalid filter, old API version, unsupported markdown operation, or schema too large.
- 401: integration credential is invalid or missing.
- 403: integration lacks required capabilities such as read content, insert content, update content, or insert/update property.
- 404: wrong ID or resource not shared with the integration.
- 409: conflict; retry only if the operation is safe and idempotent.
- 429: rate limited; retry once with wait or report limitation.
- 503/504: transient backend issue; retry with backoff or narrow the query.
When a request fails, inspect both HTTP status and JSON error body before deciding whether to retry, alter the request, ask the user for missing IDs, or report a permission/configuration issue.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

