> ## Documentation Index
> Fetch the complete documentation index at: https://sanvex.narayan-dhakal.com.np/llms.txt
> Use this file to discover all available pages before exploring further.

# Setup

# Notion setup

```bash theme={null}
composer require sanvex/core sanvex/cli sanvex/notion
php artisan migrate
```

Env vars and provider registration: [Notion configuration](./configuration).\
Full checklist: [Integration guide](../../getting-started/integration).

## API key (integration token)

```bash theme={null}
php artisan sanvex:setup notion --api-key="secret_..."
```

## OAuth (public integration)

1. Set `NOTION_*` env vars from [configuration](./configuration).
2. Visit **`/sanvex/notion/login`** in a browser.
3. Callback stores `access_token` (default: global owner scope).

## Verify

```php theme={null}
app(\Sanvex\Core\SanvexManager::class)
    ->resolveDriver('notion')
    ->isConfigured();
```

[Resources](./resources)
