Notion connector
Connect your BPMN process with Notion to create, update, find, and read pages and database items, and to add content and comments to pages.
About this connector
The Notion connector is an outbound protocol connector built on top of the REST connector. It calls the Notion API at https://api.notion.com for you, so you select an operation and fill in its parameters instead of building the HTTP request yourself.
For example, use this connector to:
- Add an item to a Notion database with Create page, for example a task for each new employee.
- Find database items with Query data source and set their status with Update page.
- Read a page with Get page as Markdown and pass its content to an AI agent.
- Leave a review or approval note on a page with Add comment.
Every request sends the Notion API version 2026-12-01 in the Notion-Version header.
Prerequisites
To use the Notion connector, you need:
| Prerequisite | Description |
|---|---|
| Camunda 8.11 or later | The connector template requires Camunda 8.11 or later. |
| Notion access token | A Notion personal access token, which acts as the user who created it, or the token of an internal connection. Store it as a connector secret or in a reusable credential. |
| Access to the pages | The token must have access to the pages and databases the process uses. An internal connection only sees the pages and databases that are shared with it. For a page the token can't access, Notion returns HTTP 404. |
Use secrets to avoid exposing your Notion access token as plain text. Refer to our documentation on managing secrets to learn more.
Use this connector
New to using an outbound connector? Learn how to add and use this type of connector, apply element templates, use connector secrets, handle results and errors, and more.
Configuration
Operation
Select the operation to run in the Operation dropdown. Each operation is described in operations.
| Property | Type | Required | Description | Example |
|---|---|---|---|---|
| Operation | Dropdown | Yes | One of Create page, Get page, Update page, Query data source, Search by title, Get page as Markdown, Append content, or Add comment. | Create page |
Authentication
Choose a reusable Notion credential, or enter an access token in the task. The connector sends the token as a bearer token.
| Property | Type | Required | Description | Example |
|---|---|---|---|---|
| Authentication credential | Configuration | No | A reusable Notion Authentication credential, which holds the access token. If you select a credential, the Access token property is hidden. See using credentials. | |
| Access token | String | Conditional | A Notion personal access token or internal connection token. Required if you don't select an Authentication credential. Use a secret to avoid exposing the token. | {{secrets.NOTION_TOKEN}} |
Timeouts
The template doesn't set timeouts, so the connector uses the REST connector defaults: 20 seconds to establish a connection and 20 seconds to read the response. See network communication timeouts.
Retries
Retries defaults to 0, because a retried Create page, Append content, or Add comment creates the page, content, or comment twice. Only increase the retries if a repeated request is acceptable for your use case.
Operations
All operations that take a page, database item, or data source ID accept a Notion ID: 32 hexadecimal digits, with or without dashes, or a FEEL expression. The ID of a page is the 32 characters at the end of its URL.
Fields you leave empty aren't sent to Notion.
Create page
Creates an item in a database, or a page under another page. Uses the Notion API operation Create a page.
Input parameters
| Property | Type | Required | Description | Example |
|---|---|---|---|---|
| Create in | Dropdown | Yes | Database (data source) to create an item in a database, or Page to create a page under another page. Defaults to Database (data source). | Database (data source) |
| Parent ID | String | Yes | The ID of the database's data source, or the ID of the parent page. See find a data source ID. | 1429989fe8ac4effbc8f57f56486db54 |
| Properties | Text | No | The page properties as a FEEL context, keyed by property name. In a database, set the title property and any others. Under a page, only the title can be set, as {title: {title: [{text: {content: "..."}}]}}. See the Notion property value formats. | See below. |
| Content | Text | No | The page content as Notion-flavored Markdown. | ## Checklist |
For example, where employeeName is a process variable:
={
"Name": {title: [{text: {content: "Onboard " + employeeName}}]},
"Status": {status: {name: "Not started"}}
}
Get page
Returns a page or database item with all its properties. Uses the Notion API operation Retrieve a page.
Input parameters
| Property | Type | Required | Description | Example |
|---|---|---|---|---|
| Page ID | String | Yes | The ID of the page or database item. | 1429989fe8ac4effbc8f57f56486db54 |
Update page
Changes properties of a page or database item, for example its status. Uses the Notion API operation Update page.
Input parameters
| Property | Type | Required | Description | Example |
|---|---|---|---|---|
| Page ID | String | Yes | The ID of the page or database item. | 1429989fe8ac4effbc8f57f56486db54 |
| Properties | Text | Yes | The properties to change as a FEEL context, keyed by property name. Properties you leave out keep their values. See the Notion property value formats. | ={"Status": {status: {name: "Done"}}} |
Query data source
Returns the items of a database that match a filter, up to 100 per request. Uses the Notion API operation Query a data source.
Databases are queried through their data source ID, not the database ID. See find a data source ID.
Input parameters
| Property | Type | Required | Description | Example |
|---|---|---|---|---|
| Data source ID | String | Yes | The ID of the database's data source. | 1429989fe8ac4effbc8f57f56486db54 |
| Filter | Text | No | A filter as a FEEL context. Leave empty to return all items. | ={property: "Status", status: {equals: "In progress"}} |
| Sorts | Text | No | A list of sorts as a FEEL list. | =[{property: "Due date", direction: "ascending"}] |
| Properties to return | Text | No | The names or IDs of the page properties to return, as a FEEL list. Include the title. If empty, Notion returns only the title of each item. Notion returns an error for a name or ID that isn't in the data source. | =["title", "Status", "Due date"] |
| Start cursor | String | No | Leave empty for the first page of results. For the next page, use the next_cursor of the previous response while has_more is true. |
Search by title
Searches the titles of the pages and data sources the token can access, and returns up to 100 results per request. Uses the Notion API operation Search by title.
Input parameters
| Property | Type | Required | Description | Example |
|---|---|---|---|---|
| Title | String | No | The text to search for in page and database titles. Leave empty to return everything the token can access. | Onboarding |
| Find | Dropdown | Yes | Pages and data sources, Pages, or Data sources. Defaults to Pages and data sources. A data source result holds the data source ID that Query data source and Create page need. | Data sources |
| Properties to return | Text | No | The names or IDs of the page properties to return, as a FEEL list. Include the title. If empty, Notion returns only the title of each page. Pages that don't have a property skip it, so one list can name the properties of several data sources. Data source results always hold their full schema. | =["title", "Status", "Due date"] |
| Start cursor | String | No | Leave empty for the first page of results. For the next page, use the next_cursor of the previous response while has_more is true. |
Get page as Markdown
Returns the content of a page as Notion-flavored Markdown, for example to pass to an AI agent. Uses the Notion API operation Retrieve a page as markdown.
The content is in response.body.markdown.
Input parameters
| Property | Type | Required | Description | Example |
|---|---|---|---|---|
| Page ID | String | Yes | The ID of the page or database item. | 1429989fe8ac4effbc8f57f56486db54 |
Append content
Adds content to the end of a page. Uses the Notion API operation Update a page's content as markdown.
The response holds the whole page as Markdown. Use a result expression to keep only what your process needs.
Input parameters
| Property | Type | Required | Description | Example |
|---|---|---|---|---|
| Page ID | String | Yes | The ID of the page or database item. | 1429989fe8ac4effbc8f57f56486db54 |
| Content | Text | Yes | The content to add at the end of the page, as Notion-flavored Markdown. | ## Review notes |
Add comment
Adds a comment to a page or database item. Uses the Notion API operation Create a comment.
Input parameters
| Property | Type | Required | Description | Example |
|---|---|---|---|---|
| Page ID | String | Yes | The ID of the page or database item. | 1429989fe8ac4effbc8f57f56486db54 |
| Comment | Text | Yes | The comment as Markdown. Comments support inline formatting only: bold, italic, strikethrough, code, and links. | **Approved** |
Find a data source ID
Query data source and Create page in a database need the ID of the database's data source, not the database ID. To find it, do one of the following:
- In Notion, open the database settings, select Manage data sources, and copy the data source ID.
- Run Search by title with Find set to Data sources, and read the
idof the result.
Output
The Notion connector is built on top of the REST connector, so the response is the HTTP response of the Notion API call. In the Result expression, you can use response.status, response.headers, and response.body. Read the REST connector response for details.
The results of Query data source and Search by title are in response.body.results. FEEL lists start at index 1.
The following result expressions show common mappings:
| Operation | Result expression |
|---|---|
| Create page | ={createdPageId: response.body.id} |
| Get page | ={status: response.body.properties.Status.status.name} |
| Query data source | ={itemIds: response.body.results.id} |
| Search by title | ={dataSourceId: response.body.results[1].id} |
| Get page as Markdown | ={content: response.body.markdown} |
| Add comment | ={commentId: response.body.id} |
Example: find and update database items
The following process finds the items of a database that are in progress and marks one as done:
- A Search by title task with Title
Onboarding, Find set to Data sources, and the result expression={dataSourceId: response.body.results[1].id}. - A Query data source task with Data source ID
=dataSourceId, the filter={property: "Status", status: {equals: "In progress"}}, and the result expression={itemIds: response.body.results.id}. - An Update page task with Page ID
=itemIds[1]and the properties={"Status": {status: {name: "Done"}}}. - An Add comment task with Page ID
=itemIds[1]and the comment**Approved**.
Troubleshooting
To learn about general error handling in Camunda, see BPMN errors and failing jobs.