Cloudflare API Token and Account ID
· One min read
To get your Cloudflare API Token and Account ID, follow these steps:
🔹 Getting the Cloudflare API Token​
-
Log in to Cloudflare
Go to Cloudflare Dashboard and log in. -
Go to API Tokens
- Click on your profile icon (top-right corner).
- Select My Profile.
- Navigate to the API Tokens tab.
-
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:
- Save & Generate Token.
-
Copy and Store the Token
- Once generated, copy and save it securely, as it won’t be shown again.
🔹 Getting the Cloudflare Account ID​
-
Go to Cloudflare Dashboard
- Log in at dash.cloudflare.com.
-
Select Your Site
- Click on the domain you want to manage.
-
Find the Account ID
- Scroll down in the Overview tab.
- You will see the Account ID under the "API" section.
