2025-12-21 22:32:09 -08:00
|
|
|
# Get Cloudflare Email for API Key
|
|
|
|
|
|
2026-02-12 15:46:57 -08:00
|
|
|
**Last Updated:** 2026-01-31
|
|
|
|
|
**Document Version:** 1.0
|
|
|
|
|
**Status:** Active Documentation
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
2025-12-21 22:32:09 -08:00
|
|
|
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.
|