# Get Cloudflare Email for API Key **Last Updated:** 2026-01-31 **Document Version:** 1.0 **Status:** Active Documentation --- Since you're using CLOUDFLARE_API_KEY, you need to add your Cloudflare account email. ## Option 1: Add Email to .env Add this line to your .env file: ``` CLOUDFLARE_EMAIL="your-email@example.com" ``` ## Option 2: Create API Token (Recommended) 1. Go to: https://dash.cloudflare.com/profile/api-tokens 2. Click **Create Token** 3. Use **Edit zone DNS** template OR create custom with: - **Zone** → **DNS** → **Edit** - **Account** → **Cloudflare Tunnel** → **Edit** 4. Copy the token 5. Add to .env: ``` CLOUDFLARE_API_TOKEN="your-token-here" ``` 6. Remove or comment out CLOUDFLARE_API_KEY ## Option 3: Get Email from Cloudflare Dashboard Your email is the one you use to log into Cloudflare Dashboard.