Notion configuration
Package:sanvex/notion · Driver id: notion
Auth modes
What to register (Notion)
API key
- Notion integrations → New integration.
- Copy the Internal Integration Secret (
secret_...). - Share pages/databases with the integration in Notion.
- Store with
sanvex:setup notion --api-key="secret_...".
OAuth2 (public integration)
- Same integrations UI → configure as Public integration where applicable.
- Set OAuth domain & redirect URI to match
NOTION_REDIRECT_URI. - 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 whenNOTION_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
