Notion
Connect Notion to TaskForce with an internal connection token, link a Notion database and let its pages flow in as tasks through webhooks. Learn what is imported and what is not.
The Notion integration links Notion databases to TaskForce projects. Once a database is linked and the Notion webhook is in place, pages created or changed in that database appear as tasks in TaskForce.
Notion splits a database into one or more data sources. TaskForce lists every data source your connection can see and calls each one a database. Most databases have exactly one.
Who can use it
- Connecting, syncing and changing settings needs the Manage integrations permission. Viewing the connection needs View integrations.
- The Project Manager role template has both. Account Owner and Administrator have every permission.
- No server setup is needed: an internal connection token is enough. One-click sign-in is optional (see One-click sign-in).
- Notion must be able to reach your TaskForce address over the internet over HTTPS.
Connect with a personal token
- You must be a Notion Workspace Owner. In the Notion developer portal, under Build, select Internal connections, click Create a new connection, name it TaskForce and choose your workspace.
- In the Configuration tab copy the API token and enable these capabilities: Read content, Insert content, Read comments, and User information with email addresses (so that assignees and comment authors match TaskForce users).
- Open the Content access tab, click Edit access and select the databases (or their parent pages) TaskForce may use. Only databases shared with the connection appear in TaskForce.
- In TaskForce open Settings > Integrations > Notion, paste the token into API token and click Save Connection. The page shows Connected with a token.
- For live updates complete Webhook setup (see Webhooks below).
The token is encrypted and never shown again. To replace it later, open the integration page, paste the new value and click Update Connection. Remove Connection unlinks all synchronized databases after you confirm. It does not revoke the credential at Notion: delete it there if you want to cut access completely.
One-click sign-in (if available)
If your TaskForce operator has registered a Notion public connection, the page also shows Connect with Notion. Notion asks you to sign in and choose which pages and databases TaskForce may use. To share more databases later, open the database in Notion, choose … > Connections and add the TaskForce connection, then sync again. When no public connection is registered the button is not shown and the token form is all you need.
Sync and select databases
- Click Sync Projects to load the databases shared with TaskForce. Use the search box to filter the list.
- Click Sync next to a database to make it available to TaskForce. The button changes to Synced. Click it again to stop syncing that database.
- Click Configure Sync to open the settings of a synced database.
Link a TaskForce project
Synced Notion databases can be linked to a TaskForce project in two ways:
- Existing project: open the project settings, go to Integrations and pick the database in Linked project. You can link one external project per integration.
- New project: click to create a project, choose the Import tab, pick Notion as the Source, select the database, give the project a name and click Import & create.
Webhooks
Notion does not let applications create webhooks through its API. With one-click sign-in, one webhook subscription per TaskForce server delivers the events of every connected workspace, and your TaskForce operator sets it up once (see Operator setup). With a personal token, you set up your own subscription (see below). There is nothing to reconcile per database: Configure Sync shows the callback URL and instructions instead of the Reconcile Webhooks button, and the webhook secret is managed by TaskForce, so there is no Generate Secret button.
TaskForce handles these Notion events: page created, page properties updated, page content updated, page moved, page deleted, page restored and comment created.
Webhook setup (personal token)
Notion does not let applications create webhooks, so with a token you create the subscription yourself, once per connection:
- In TaskForce, on the Notion integration page, find Webhook setup and click Start setup. TaskForce shows the callback URL for your connection.
- Within 15 minutes, open your connection’s Webhooks tab in Notion and click Create a subscription. Paste the URL TaskForce shows, select the page and comment events and create it.
- Notion sends a verification token when the subscription is created. TaskForce only accepts it after Start setup (otherwise it is refused) and then displays it under Webhook setup. Copy it into Notion’s Verify step.
If Verify fails, click Start setup again and recreate the subscription.
Your connection has its own signed callback URL and verification token, and Reconcile Webhooks only explains these steps. If the connection is removed and created again, Notion locks the URL after verification, so you must create a new subscription for the new callback URL.
Secure the webhooks
Every Notion event carries an X-Notion-Signature header, an HMAC-SHA256 of the body signed with the subscription’s verification token. With a personal token, TaskForce verifies events with the verification token it captured during Webhook setup, so no server setting is needed. NOTION_WEBHOOK_SECRET applies only to one-click sign-in: there TaskForce rejects any event whose signature does not match it, and rejects all events while that variable is empty.
What flows from Notion to TaskForce
Notion events only say that something changed. For each event TaskForce reads the page (and, for comments, the comment and its author) through the Notion API.
| Notion event | Result in TaskForce |
|---|---|
| Page created | A task is created, including the page content as the description. |
| Page properties updated, page moved | The task is created or updated from the page properties. The description is kept. |
| Page content updated | The task is updated, including the new description. |
| Comment created | The comment is added to the matching task, attributed to its author by email. When TaskForce cannot see the author’s email address, the TaskForce bot posts the comment and puts the author’s name in front, for example Ana Silva (via Notion): … |
| Page deleted (moved to trash) | The matching task is deleted. |
| Page restored from trash | The task is created again from the page’s current state. |
Fields that are copied on create and update:
| Notion property | TaskForce |
|---|---|
| Title property | Task title |
| Page content | Description, as Markdown |
| Status property (or a select named Status, or a checkbox named Done) | Status: New, Active, Resolved, Closed or Abandoned, matched by keywords in the option name such as “Not started”, “In progress”, “Done” or “Cancelled”. Unknown names keep the current status. |
| Select named Type, or a multi-select named Type, Tags or Labels | Type: Bug, User Story, Feature or Epic when an option name matches. Otherwise Task. |
| Select named Priority | Priority: Urgent/Critical/P1, High, Medium, Low |
| First People property with an email | Assignee, matched by email address |
| Date property whose name contains “due” or “deadline” | End date |
| Relation named “Parent …” | Parent task, when the parent page was already imported |
What flows from TaskForce to Notion
- Tasks created through the AI task creation flow in a project that is linked to Notion also create a page in the linked database, with the task title in the title property and the description as page content. Priority and type are not written.
- The Outbound Sync and Inbound Sync checkboxes are saved with the project settings. In the current release the webhook handling described above does not consult them, and edits, comments and time logged in TaskForce are not sent to Notion.
Import existing work
To bring all existing pages into TaskForce in one pass, use the Import tab when creating a new project or the Import from an external project option in an existing project’s settings. See Import projects and tasks for details.
Notion comment authors usually have no email address, so comments arrive from the bot with the author’s name.
Limitations
- There is no initial import of existing pages. Tasks appear when Notion sends an event for them.
- Emails of assignees and comment authors are only visible when the connection has the “Read user information including email addresses” capability. Without it, assignees are not set and comments are posted by the TaskForce bot with the author’s name in front (or “External user” when the connection cannot read user information at all). Comments written by Notion bots are posted the same way.
- Notion aggregates rapid edits and may deliver events up to a few minutes late or out of order. Each event reads the current page, so the task ends up in the latest state.
- One-click sign-in only: events for pages outside a synced and linked database are answered with “not found”. Notion retries them a few times and then stops; this is harmless.
- One-click sign-in only: Notion’s webhook subscription is shared by every workspace connected to the same TaskForce server.
- Personal tokens do not refresh. If the token is revoked, TaskForce shows that it was rejected: copy the token again from the Configuration tab and replace it.
- Only a Notion Workspace Owner can create the internal connection, and only databases shared in Content access appear in TaskForce.
- Webhooks cannot be created by TaskForce: complete Webhook setup or events will not arrive.
Optional: enable one-click sign-in (operators)
These steps are for whoever runs the TaskForce server, once per deployment.
-
Open your Notion connection settings (https://app.notion.com/developers/connections) and create a new public connection. Fill in the company name, website, privacy policy and terms URLs Notion asks for.
-
Under Capabilities enable Read content, Update content, Insert content, Read comments and Read user information including email addresses.
-
Add the redirect (callback) URL:
<WEBHOOK_PUBLIC_URL or APP_URL>/api/integrations/notion/oauth/callback, for examplehttps://app.example.com/api/integrations/notion/oauth/callback. -
Copy the OAuth client ID and client secret into the server environment:
NOTION_CLIENT_ID=... NOTION_CLIENT_SECRET=... -
Open the connection’s Webhooks tab, click + Create a subscription, enter
<WEBHOOK_PUBLIC_URL or APP_URL>/api/webhooks/notion, choose API version 2025-09-03 or later (TaskForce uses2026-03-11) and select the eventspage.created,page.properties_updated,page.content_updated,page.moved,page.deleted,page.undeletedandcomment.created. -
Notion posts a one-time
verification_tokento that URL. TaskForce answers 200 and writes it to the application log asnotion.webhook.verification_token. Paste it into Notion’s Verify dialog (use Resend token if needed), and set the same value on the server:NOTION_WEBHOOK_SECRET=secret_... -
Restart the app so the new environment is loaded.
TaskForce sends OAuth token requests with HTTP Basic client authentication and a JSON body, as Notion requires. Notion documents no expiry for access tokens: when the API answers 401, TaskForce exchanges the stored refresh token once and retries. If you recreate the webhook subscription, update NOTION_WEBHOOK_SECRET with the new verification token.