Skip to main content
Create an API key in Promptwatch to authenticate crawler log requests for a single project. Each project requires its own API key.

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:
https://logs.promptwatch.com/event/vercel
  • Encoding: JSON
  • Signature Verification Secret: Leave empty
  • Enable Custom Headers
  • Header: X-Api-Key: YOUR_API_KEY
You can press “Test” to verify the endpoint URL. It should succeed.

Step 4: Finish

Click “Create Drain” to finish. When AI crawlers visit your website, the stats will show in your Promptwatch dashboard.