Skip to main content

Notion

Notion is a workspace for documents and databases. The Notion connector syncs the workspace's users and the pages, data sources and databases its token can reach. It syncs them with relationships that record who created or last edited a page or data source and where each one sits. It also offers ten content operations, such as creating, moving and trashing a page. It does not create or remove Notion users, and it does not read or change who a page is shared with.

Capabilities​

CapabilitySupportedDetails
SyncYesUsers, pages, data sources and databases, plus six authorship and containment relationships.
Incremental syncNoEvery run is a full sync.
Account provisioningNoThe connector has no user create, disable or delete.
Grant writesNoAll six Grant kinds are read-only.
NotificationsNo
Custom operationsYesTen content operations on pages and data sources.

Authentication​

OptionChoose it whenWho owns the Notion integration
API TokenYou can create an internal integration in the workspace, or want to act as one person with a personal access token.You
Public OAuthYou have a Notion public integration and want an administrator to authorize it from Owlie instead of pasting a token.You

With either option, Owlie sees only what the token can see: the pages and databases shared with the integration, or the content the authorizing person can reach.

Get credentials from Notion​

API Token​

  1. In Notion, create an internal integration in the workspace you want to connect. Notion's guide is Authorization.
  2. Give it the Read content capability. Add Update content and Insert content if you plan to run the content operations that write.
  3. Share each page or database you want Owlie to see with the integration.
  4. Copy the integration's token.

A personal access token works too. It acts with the permissions of the person who created it.

Public OAuth​

  1. In Notion, create a public integration and add the redirect URL that Owlie displays for the connection.
  2. Copy its OAuth Client ID and Client Secret.
FeatureNotion capability
Sync, connection test and the read operationsRead content, and user information
Create, update, move, trash and restore contentUpdate content and Insert content

Connect Notion in Owlie​

Auth optionFieldRequiredWhat to enter
API TokenAPI TokenYesThe internal integration token or personal access token.
Public OAuthClient IDYesThe public integration's OAuth client ID.
Public OAuthClient SecretYesThe public integration's OAuth client secret.

Owlie stores the token and the client secret as secrets. For Public OAuth, save the configuration, then select Connect on the integration's Connection tab and authorize the integration in Notion, choosing the pages it may access.

The connection test asks Notion who the token belongs to.

Entities​

EntityIn NotionIdentifierKey attributesSyncCreateUpdateDeleteGrants (as target)
UserA workspace person or bot. This is the account entity.idname, type, person.email, avatar_urlYesNoNoNoNo
PageA page the token can reach.idurl, parent, created_by, last_edited_by, in_trashYesNoNoNoNo
Data SourceA data source the token can reach.idtitle, url, parent, created_by, last_edited_by, in_trashYesNoNoNoNo
DatabaseA database that contains one or more of the synced data sources.idtitle, url, data_sources, parentYesNoNoNoNo

Sync finds pages and data sources through Notion's search, and finds databases from the data sources that search returns. Notion does not guarantee that search returns every accessible document, and newly shared content can take time to appear. Treat the result as the content Owlie could see on that run, not as a complete inventory of the workspace.

By default, Sync matches a Notion user to an identity by the person's email against the identity's email. See account matching to change it.

Grant kinds​

Grant kindIn NotionPrincipal → targetWritableQualifiersPasses access through
page_created_byThe user who created a page.User → PageNoNoneNo
page_last_edited_byThe user who last edited a page.User → PageNoNoneNo
data_source_created_byThe user who created a data source.User → Data SourceNoNoneNo
data_source_last_edited_byThe user who last edited a data source.User → Data SourceNoNoneNo
page_in_data_sourceA page that is a row of a data source.Page → Data SourceNoNoneNo
data_source_in_databaseA data source inside a database.Data Source → DatabaseNoNoneNo

These record authorship and structure. They are not sharing permissions: the connector does not sync who a page is shared with, so that access does not appear in Owlie.

Provisioning behaviour and limits​

Owlie doesn't provision Notion users. The custom operations act on content the token can reach:

OperationWhat it does
Create PageCreates a page.
Update PageUpdates a page's properties, icon, cover, archive or trash state.
Move PageMoves a page to a new parent.
Trash PageMoves a page to trash.
Restore PageRestores a page from trash.
Get Page MarkdownReads a page's content as Markdown.
Update Page MarkdownChanges a page's content with Markdown commands.
Query Data SourceLists the pages in a data source.
Create Data SourceCreates a data source.
Update Data SourceUpdates a data source.

Moving a page can change who can see it, because a Notion page takes its permissions from its parent. Check the destination's sharing before you move a page.

Limits:

  • Notion answers "not found" both for a page that doesn't exist and for one the token can't reach. A failed lookup therefore doesn't show that a page is gone.
  • The operations that write need the matching Notion capability and need the page shared with the integration.

Troubleshooting​

The connection test fails with "Notion could not verify the API token." The token is wrong or revoked, or the OAuth authorization was removed in Notion. Paste a current token, or connect again.

A page or database is missing after Sync. Share it with the integration in Notion, then run Sync again. Newly shared content can take a while to appear in Notion's search.

A content operation is refused by Notion. Check that the integration has Update content or Insert content, and that the page is shared with it.

Changelog​

The Notion connector is at version 1. Owlie shows each connector's changelog with the connector in the catalog.