Skip to main content

Cloudflare API Token and Account ID

· One min read
Mahmudur Rahman
Founder of EpicLabs23

To get your Cloudflare API Token and Account ID, follow these steps:


🔹 Getting the Cloudflare API Token​

  1. Log in to Cloudflare
    Go to Cloudflare Dashboard and log in.

  2. Go to API Tokens

    • Click on your profile icon (top-right corner).
    • Select My Profile.
    • Navigate to the API Tokens tab.
  1. Create a Custom API Token

    • Click Create Token.
    • Click Get Started In the bottom "Custom Token" section.
    • Name the token.
    • Make Cloudflare setup like follows:
    • Setup Cloudflare API Token
      • Save & Generate Token.
  2. Copy and Store the Token

    • Once generated, copy and save it securely, as it won’t be shown again.

🔹 Getting the Cloudflare Account ID​

  1. Go to Cloudflare Dashboard

  2. Select Your Site

    • Click on the domain you want to manage.
  3. Find the Account ID

    • Scroll down in the Overview tab.
    • You will see the Account ID under the "API" section.

Setup Cloudflare API Token