今日Notion

2026年12月3日 星期四

摘要

1重点:Notion API版本2026-12-01发布,为开发者带来七项破坏性变更。

2搜索和查询现在只返回页面标题,除非你指定需要更多属性。

3提示:内部连接现在可以在到期前自动轮换API令牌。

今日焦点
Notion新版API带来七项破坏性变更和令牌轮换Notion更新
7
Breaking changes in Notion API version 2026-12-01
★ 今日焦点

Notion新版API带来七项破坏性变更和令牌轮换

Notion发布API Application programming interface: a door that lets one piece of software ask another for data or actions.版本2026-12-01,包含七项面向开发者的破坏性变更,并新增让内部连接按计划更换API令牌的方式(Notion Developers更新日志)。

我们了解到

  1. 响应更精简:搜索和数据源查询现在只返回每个页面的标题,除非你用filter_Page properties The labelled fields at the top of a Notion database page, such as Status, Owner or Due date. They hold the page's details so you can sort, filter and report on them.指定其他属性(Notion Developers更新日志)。
  2. 其他破坏性变更:状态筛选只匹配选项名称,Markdown A simple way of formatting text with symbols, such as # for headings and - for bullet points, that apps turn into styled text. v2成为默认而v1会被拒绝,replace_content_range改由update_content取代,没有名字的人现在返回null(Notion Developers更新日志)。
  3. 逐步升级:你可以先在2026-03-11版本上逐项采用这些变更,再切换API version A dated edition of a service's programming interface. Apps say which edition they use, so a new one can change how things work without breaking older apps that stay on the old edition.标头。JavaScript SDK A ready-made toolbox of code that a company gives developers so they can build things on top of its product, like custom blocks in Notion.的默认版本仍是2025-09-03,所以需要自己指定新版本(Notion Developers更新日志)。
  4. 令牌轮换:内部连接现在可以用签名密钥按计划更换API令牌,或开启自动轮换,由Notion在旧令牌到期前7天生成新令牌(Notion Developers更新日志)。

为何重要: 如果你在Notion API上运行脚本或自动化,在更改版本标头前不会出问题,但请先测试:搜索突然只返回标题,可能会悄悄破坏工作流程。令牌轮换让泄露的令牌更快失效。

分享这篇报道

来源(1)
  • Changelog: December 1, 2026 · Notion DevelopersRead ↗