How to create a Cloudflare API Token / Key for CloudMare
CloudMare uses the official Cloudflare API which requires authentication per request. There are two ways you can authenticate with Cloudflare:
- API Tokens (safer recommended option) read Cloudflare's post about it
- API Keys (easier)
CloudMare supports both methods. Steps for both are described below.
(1) Authentication with an API token
- Go to the Cloudflare website and login to the API Tokens page.
- Click on 'Create Token'
- Fill in form giving permissions for:
- Zone.Analytics:Read
- Zone.Cache Purge.Edit
- Zone.DNS.Edit
- Zone.Page Rules.Edit
- Zone.Zone.Edit
- Zone.Zone Settings.Edit
- Click on 'Continue to Summary' to get to the page below
- Then 'Create Token'
- It should redirect you to the page below
- Copy and paste the token you generated inside CloudMare.
- Finally click 'save'
(2) Authentication with a Global API Key
- Go to the Cloudflare website and login to the API Tokens page.
- Scroll to the bottom, you should see something similar to the image below
- Click on 'View' for 'Global API Key'
- Copy and pasting the Global API Key into the CloudMare app will reveal another input for email
- Type in the email for your Cloudflare account.
- Finally click 'save'
Need more help? Contact me here