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.
Input
email requiredEmail of the workspace member or guest to remove
dryRun optionalIf true (default), walk to the destructive gate then dismiss it without removing. Set false to actually remove.
Output
email requiredfound requireddryRun requiredremoved requiredgate optionalrole optionalafter optionalbefore optionalverified optionalfoundInTab optionalLabel of the tab the target was found in, for traceability.
collateralLoss optionalFAQ
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.
Get Notion Marketplace custom agent
Fetch one Notion Marketplace custom agent by its URL slug: title, icon, brief and full description, advertised features, gallery images, categories, the integrations it requires (Notion, Slack, …), creator, install count, rating, price, published locales and last update. Read-only.
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.
