Move a Notion page to the trash
Automatically move a Notion page to the trash on app.notion.com. Move a Notion page or database row to the trash, where it can be restored from for 30 days, or restore it from the trash with restore. Its sub-pages go with it. Returns whether the page is now in the trash, read back from Notion. Get page ids from search_pages or query_database.
Input
page requiredLink to the Notion page or database row, or its id.
restore optionalTrue to bring the page back from the trash instead.
Default: falseOutput
id requiredtitle requiredchanged requiredFalse when the page was already where it was asked to be.
inTrash requiredWhether the page is in the trash now, read back from Notion.
FAQ
Invite workspace member (Notion)
Invite someone to a Notion workspace by email, with a chosen role and built-in verification. Records the People page before and after, returning invited / verified — proof the invite actually landed. dryRun (default true) fills the invite form and cancels without sending; set it to false to actually send the invite. Role defaults to "Restricted member" (available on all plans); "Workspace owner" is also supported. The "Member" role requires a paid Notion Plus plan and is rejected up front rather than silently opening a billing/upgrade dialog. Acts on the workspace currently active in the browser, so there is no workspace name to pass. Requires being signed into Notion with permission to invite members.
Remove workspace member (Notion)
Remove a member from a Notion workspace by email, with built-in verification. It records the member list before and after, returning removed / verified / collateralLoss — proof the right person disappeared and nobody else moved. Notion serves one of two different confirmation steps depending on the case, and both are handled. dryRun (default true) dismisses the confirmation without removing; set it to false to go through with it. Acts on the workspace currently active in the browser, so there is no workspace name to pass. Requires being signed into Notion as a workspace owner. Cannot remove the currently signed-in account itself — Notion routes that through a separate "Leave workspace" flow this script doesn't support, and it fails fast with a clear error rather than attempting it.
Create Notion page integration
Create an internal Notion integration scoped to a specific page and connect it to that page. Returns token, integrationId, pageId, integrationName. The token is shown only at creation, so capture it immediately.
