---
title: "Notion"
description: "Connect a Notion ticket database so Baz reviews each pull request against its ticket page."
canonical: "https://baz.ai/docs/integrations/ticketing/notion"
---

# Notion

Connect a Notion ticket database so Baz reviews each pull request against its ticket page.

If your team tracks work in a Notion database, connect it to give Baz the intent behind a change. Baz finds the ticket page by its ID property and passes its content, type and files to the review agents and the Verification Agent.

<figure><img src="/docs/docs-assets/screenshot-2026-02-25-at-16-08-55.png" alt="Notion integration page in Baz" width="731" height="365" /><figcaption>The Notion integration page</figcaption></figure>

## Create a Notion integration

<Steps>
  <Step title="Create an internal integration">
    Open Notion's [internal integrations page](https://www.notion.so/profile/integrations/internal), select **New integration**, and choose the workspace that holds your ticket database.
  </Step>
  <Step title="Grant read capabilities">
    Enable **Read content**, **Read comments**, and read user information without email addresses.
  </Step>
  <Step title="Copy the secret">
    Copy the **Internal Integration Secret**. This is the API token you give Baz.
  </Step>
  <Step title="Share the database">
    In the integration's **Content access** tab, select the ticket database. You can also open the database, select **Share**, and add the integration.
  </Step>
</Steps>

<figure><img src="/docs/docs-assets/image-4.png" alt="Notion integration capabilities" width="1109" height="620" /><figcaption>Read capabilities in the Notion integration settings</figcaption></figure>

## Connect Notion in Baz

<Steps>
  <Step title="Open the Notion integration">
    Go to **Settings → Integrations**, select **Ticketing System**, then **Notion**, and select **Configure**.
  </Step>
  <Step title="Fill in the fields">
    Complete **Add Notion Integration** and select **Add Integration**.
  </Step>
</Steps>

Enter the **API Token** (your Internal Integration Secret), the **Database URL** of your ticket database, and the **ID Property Name** that holds the ticket ID, such as `ID`. The type and files property names are optional.

<span id="how-baz-uses-shortcut-story-data"></span>

## Link a pull request to a ticket

Put the ticket ID in the pull request title or source branch in the form `ABC-123`: an uppercase prefix, a hyphen and a number. Baz looks up the page whose ID property matches.

## Related

<CardGroup cols={2}>
  <Card title="Verification Agent" href="/docs/agents/deploy/verification-agent" icon="check-check">
    Checks each change against the ticket's requirements.
  </Card>
  <Card title="Google Docs" href="/docs/integrations/design-and-docs/google-docs" icon="file-text">
    Add specs linked from your tickets.
  </Card>
</CardGroup>
