Skip to main content

Notion configuration

Package: sanvex/notion · Driver id: notion

Auth modes

What to register (Notion)

API key

  1. Notion integrationsNew integration.
  2. Copy the Internal Integration Secret (secret_...).
  3. Share pages/databases with the integration in Notion.
  4. Store with sanvex:setup notion --api-key="secret_...".

OAuth2 (public integration)

  1. Same integrations UI → configure as Public integration where applicable.
  2. Set OAuth domain & redirect URI to match NOTION_REDIRECT_URI.
  3. Copy OAuth client ID and OAuth client secret for .env.

Environment variables

config/sanvex.php (optional)

Set the variables in .env above — that is enough for most apps. To override defaults in published config:

Stored credential keys (sv_accounts)

Built-in Sanvex OAuth routes

Yes — registered when NOTION_AUTH_TYPE=oauth_2 or NOTION_CLIENT_ID is set (via OAuthRoutes::registerIfConfigured). Default callback uses global owner scope unless you customize the flow. Example OAuth .env:

CLI

What the driver reads at runtime

Next: Setup · Resources