Notion is a popular back end for small AI-built sites: a blog, a changelog, a waitlist, a directory. The AI often wires the page straight to the Notion API, and that tends to put an integration token somewhere it should not be.

What the token is

A Notion integration token acts as a bot user. It can read and write any page or database you shared with that integration. If the token is in browser code, any visitor can copy it and call the API with the same reach.

Things that go wrong:

  • The token sits in a front-end file or in a variable the build tool exposes to the browser.
  • The integration is shared with a whole workspace section, so the token can reach pages that have nothing to do with the site.
  • The integration has write access when the site only reads.
  • A database used for form entries also holds private columns, like emails or notes, that the page never needs to show.

What to check

  1. Search your built JavaScript. Open the live site, find the bundle files, and search for the word "secret_" or for "ntn_", which is how Notion tokens begin, plus the word "Bearer".
  2. Call Notion from a server. The browser asks your backend. The backend holds the token and returns only the fields the page needs.
  3. Share narrowly. Connect the integration to the one page or database it needs, not a parent page with everything under it.
  4. Use read-only capability when the site only displays content.
  5. Separate private data. Keep emails and internal notes in a different database from anything shown on a public page.
  6. Rotate after a leak. Removing the token from the code does not help once it was served. Regenerate it in the integration settings and update the server.

What an outside scan can tell you

I work on ProofForge. The free scan checks the public side of a URL you own or have permission to test: browser bundle, public files, headers and supported backend signals. It never signs in. It looks for private keys and tokens sitting in your JavaScript. It cannot see which pages you shared with your integration, so that review is yours. A clean result means nothing was found in the public assets checked, not that the app is secure.