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:

  1. API Tokens (safer recommended option) read Cloudflare's post about it
  2. API Keys (easier)

CloudMare supports both methods. Steps for both are described below.

(1) Authentication with an API token
  1. Go to the Cloudflare website and login to the API Tokens page.
  2. Click on 'Create Token'
  3. Fill in form giving permissions for:
    1. Zone.Analytics:Read
    2. Zone.Cache Purge.Edit
    3. Zone.DNS.Edit
    4. Zone.Page Rules.Edit
    5. Zone.Zone.Edit
    6. Zone.Zone Settings.Edit Unable to load .webp image, try loading this page in Chrome
  4. Click on 'Continue to Summary' to get to the page below Unable to load .webp image, try loading this page in Chrome
  5. Then 'Create Token'
  6. It should redirect you to the page below Unable to load .webp image, try loading this page in Chrome
  7. Copy and paste the token you generated inside CloudMare.
  8. Finally click 'save'
(2) Authentication with a Global API Key
  1. Go to the Cloudflare website and login to the API Tokens page.
  2. Scroll to the bottom, you should see something similar to the image below Unable to load .webp image, try loading this page in Chrome
  3. Click on 'View' for 'Global API Key'
  4. Copy and pasting the Global API Key into the CloudMare app will reveal another input for email
  5. Type in the email for your Cloudflare account.
  6. Finally click 'save'

Need more help? Contact me here