Skip to main content
Cloudflare

Deploy a Worker to analyze your traffic

Create an access token so Promptwatch can deploy the crawler log Worker for you

We’ll automatically discover your Cloudflare zone, upload the script, and configure the route.

The token is only used for this deployment and is never stored.

Step 1: Create an API token on Cloudflare

Go to dash.cloudflare.com → My Profile → API Tokens and create a new Custom Token.

Enable the following permissions:

  • Account / Workers Scripts / Edit — Upload the crawler-log Worker script
  • Zone / Zone / Read — Locate your Cloudflare zone by domain name
  • Zone / Workers Routes / Edit — Attach the script to your domain route

Step 2: Paste the token and deploy

We’ll take it from here — the rest is automatic.

Auto-deploy is only available inside the Promptwatch app. Open Crawler Logs → Settings, select Cloudflare Workers, switch to the Auto Deploy tab, paste your Cloudflare API token, and click Deploy Worker.
For a full list of API response codes, see API Response Codes.