How to Set Up Your Cloudflare API Token
This guide will walk you through the process of creating and configuring a Cloudflare API token with the necessary permissions for analytics access.
📋 Required Permissions
⚠️ Important: Your token must include the following permissions:
- Account Settings: Read
- Account Analytics: Read
- Zone Logs: Read
- Zone Analytics: Read
🚀 Step-by-Step Setup
1. Access Token Management
Navigate to the Cloudflare API Tokens page in your Cloudflare dashboard.
2. Create New Token
Click the "Create Token" button to start the token creation process.
3. Select Template
Choose the "Read analytics and logs" template as your starting point.
4. Add Additional Permissions
Ensure you add the "Account Settings:Read" permission to the template (if not already included).
5. Generate and Save
- Review your token configuration
- Click "Continue to summary"
- Click "Create Token"
- Copy and securely store your token immediately
💡 Security Tip: Store your API token securely and never share it publicly. Treat it like a password!