How do I create a Cloudflare API token for use with Home Assistant?

Responsive Ad Header

Question

Grade: Education Subject: Support
How do I create a Cloudflare API token for use with Home Assistant?
Asked by:
67 Viewed 67 Answers

Answer (67)

Best Answer
(451)
To create a Cloudflare API token, log into your Cloudflare account, navigate to 'My Profile' then 'API Tokens'. Click 'Create Token'. You can use a template, like the 'Edit zone DNS' template, or create a custom token with specific permissions (e.g., Zone:DNS:Edit). Ensure the token has access to the correct zone(s) associated with your Home Assistant domain. Store the token securely, as it grants significant control over your Cloudflare account.