How to get a Cloudflare API key
Checked by hand 2026-10-30
- Open API Tokens under My Profile in the Cloudflare dashboard and click Create Token.
- Click Use template next to the template that fits your app, such as Edit zone DNS, or Get started under Custom token to pick permissions yourself.
- Give the token a name, check the permissions and which accounts or zones it covers, then click Continue to summary.
- Click Create Token on the summary page. Cloudflare shows the token only once, on the next page; Footgun reads it from there.
What you end up with
- CLOUDFLARE_API_TOKEN