notion.onDataSourceDeleted start an automation when Notion deletes a data source.
Example
automations/notion-on-data-source-deleted.automation.ts
Configuration
The trigger takes no event filters. Its optional staticaccount selects a named OAuth binding and defaults to the project’s Notion binding. Personal access tokens cannot own webhook subscriptions.
Event
Returns the typeddata_source.deleted payload with the deleted entity and parent.
The event is narrowed to data_source.deleted; consumers do not need to inspect the raw type.
Automate.ax verifies the Notion signature, routes only to an eligible workspace principal, and deduplicates provider retries by event ID.