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

# Vercel

> Configure crawler log ingestion via Vercel Log Drains

<div style={{ display: "flex", alignItems: "center", justifyContent: "center", marginBottom: 0 }}>
  <img alt="Vercel" height="40" src="https://www.promptwatch.com/docs/integration-logos/card/vercel-icon.svg" width="40" />
</div>

<p style={{ textAlign: "center", color: "#6b7280", marginTop: 8, marginBottom: 24 }}>
  Stream logs from Vercel Log Drains
</p>

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](https://app.promptwatch.com) and create an API key.

## Step 2: Configure Log Drain

In your [Vercel Dashboard](https://vercel.com/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.

<Note>
  For a full list of API response codes, see [API Response Codes](/docs/crawler-logs/api-responses).
</Note>
