Step 1: Create an API Key
Go to Settings → API Keys in your Promptwatch dashboard and create an API key.Step 2: Configure Log Drain
In your Vercel Dashboard, select the project you want to use and navigate to Settings → Log Drains → Add Log Drain.- For “Choose data to drain”, select Logs, then click “Next”
- Drain Name:
Promptwatch Crawler Logs - Projects: Select only the project that matches your website in Promptwatch
- Sources: Select Functions, Edge Functions, Static Files, Rewrites, Redirects
- Environment: Select Production, then click “Next”
Step 3: Configure Destination
URL:- Encoding: JSON
- Signature Verification Secret: Leave empty
- Enable Custom Headers
- Header:
X-Api-Key: YOUR_API_KEY