
Notion UpdateTrigger
CertifiedReact to Notion page updates
Notion UpdateTrigger
React to Notion page updates
Polls the Notion Search API at the configured interval.
On each evaluation it collects all pages whose last_edited_time is strictly greater than
the watermark (taken from TriggerContext.date, which is the last evaluation timestamp).
When at least one updated page is found, a flow execution is fired; otherwise the trigger
is silent and waits for the next interval.
Optional query narrows the search server-side using Notion full-text search.
Optional parentPageId retains only pages that are direct children of that parent page
(client-side filter, because the Notion Search API does not expose a server-side parent filter).
type: io.kestra.plugin.notion.page.UpdateTriggerExamples
Trigger on any Notion page update every 5 minutes
id: notion_page_updated
namespace: company.team
tasks:
- id: log_updated_pages
type: io.kestra.plugin.core.log.Log
message: "Updated pages: {{ trigger.updatedPages }}"
triggers:
- id: watch_pages
type: io.kestra.plugin.notion.page.UpdateTrigger
apiToken: "{{ secret('NOTION_API_TOKEN') }}"
interval: PT5M
Trigger only for pages matching a keyword search
id: notion_keyword_page_updated
namespace: company.team
tasks:
- id: process_pages
type: io.kestra.plugin.core.log.Log
message: "Sprint pages updated: {{ trigger.updatedPages }}"
triggers:
- id: watch_sprint_pages
type: io.kestra.plugin.notion.page.UpdateTrigger
apiToken: "{{ secret('NOTION_API_TOKEN') }}"
query: "Sprint"
interval: PT10M
Trigger only for pages under a specific parent page
id: notion_child_page_updated
namespace: company.team
tasks:
- id: handle_update
type: io.kestra.plugin.core.log.Log
message: "Child page updated: {{ trigger.updatedPages }}"
triggers:
- id: watch_child_pages
type: io.kestra.plugin.notion.page.UpdateTrigger
apiToken: "{{ secret('NOTION_API_TOKEN') }}"
parentPageId: "12345678-1234-1234-1234-123456789abc"
interval: PT15M
Properties
apiToken *string
Notion API token
The Notion internal integration token used to authenticate API requests.
allowConcurrent boolean
falseSpecifies whether a trigger is allowed to start a new execution even if a previous run is still in progress.
interval string
PT5MdurationInterval between polls
ISO 8601 duration. A minimum of PT30S is recommended to avoid overloading the Notion API.
options
HTTP client configuration
io.kestra.core.http.client.configurations.HttpConfiguration
falseIf true, allow a failed response code (response code >= 400)
List of response code allowed for this request
The authentication to use.
io.kestra.core.http.client.configurations.BasicAuthConfiguration
The password for HTTP basic authentication.
The username for HTTP basic authentication.
io.kestra.core.http.client.configurations.BearerAuthConfiguration
The token for bearer token authentication.
io.kestra.core.http.client.configurations.DigestAuthConfiguration
The password for HTTP Digest authentication.
The username for HTTP Digest authentication.
UTF-8The default charset for the request.
java.nio.charset.Charset
trueWhether to enable TCP Keep-Alive extended socket options (TCP_KEEPIDLE, TCP_KEEPINTERVAL, TCP_KEEPCOUNT).
Set to false when running on Windows workers, as these extended socket options are not supported by the Windows JDK and will cause connection failures.
trueWhether redirects should be followed automatically.
REQUEST_HEADERSREQUEST_BODYRESPONSE_HEADERSRESPONSE_BODYThe enabled log.
The proxy configuration.
io.kestra.core.http.client.configurations.ProxyConfiguration
The address of the proxy server.
The password for proxy authentication.
The port of the proxy server.
DIRECTDIRECTHTTPSOCKSThe type of proxy to use.
The username for proxy authentication.
The SSL request options
io.kestra.core.http.client.configurations.SslOptions
Whether to disable checking of the remote SSL certificate.
Only applies if no trust store is configured. Note: This makes the SSL connection insecure and should only be used for testing. If you are using a self-signed certificate, set up a trust store instead.
The timeout configuration.
io.kestra.core.http.client.configurations.TimeoutConfiguration
The time allowed to establish a connection to the server before failing.
PT5MThe time allowed for a read connection to remain idle before closing it.
parentPageId string
Parent page ID filter
Optional Notion page UUID. When set, only pages whose direct parent is this page are reported. This is a client-side filter applied after the API response because the Notion Search API does not expose a server-side parent filter.
query string
Full-text search query
Optional text passed as the query field of the Notion Search API request. Narrows results server-side to pages whose title or content matches the search terms.
stopAfter array
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTEDList of execution states after which a trigger should be stopped (a.k.a. disabled).
when string
trueA condition that determines whether the trigger should run.
A Pebble expression evaluated at trigger time. The trigger fires only when the expression evaluates to a truthy value (true, a non-empty string, a non-zero number). Use this to gate trigger execution on dynamic runtime values such as execution labels, flow variables, or environment conditions.
Outputs
updatedPages array
Updated pages
The list of Notion pages that were updated since the last trigger evaluation.
io.kestra.plugin.notion.page.UpdateTrigger-PageInfo
date-timeLast edited time
The timestamp when the page was last edited.
Page ID
The unique identifier of the updated Notion page.
Page title
The title of the updated page, or null if the title could not be extracted.
Page URL
The URL of the updated page in Notion.