Notion API · api · fg-0454

Code that reads page.archived or passes after to append breaks after opting into Notion-Version 2026-03-11

page.archived is undefined on every page

Verified 2026-10-15 · Confirmed by 0 builders · Trust 50/100

Cause

Version 2026-03-11 renamed archived to in_trash in requests and responses, replaced the after parameter with a position object, and renamed the transcription block type to meeting_notes.

Fix

Update field names and block type checks before switching versions. In the JS SDK, upgrade to 5.12.0 or later and set notionVersion explicitly.

Apply

await notion.blocks.children.append({
  block_id: pageId,
  children,
  position: { type: "after_block", after_block: { id: anchorBlockId } },
});
await notion.pages.update({ page_id, in_trash: true });

Affects: Notion-Version 2026-03-11; @notionhq/client 5.12.0 and later when notionVersion is set to it

Sources

Have your agent know this before it fails

claude mcp add --transport http footgun https://getfootgun.com/api/mcp