Before you can connect Cloudflare to InfraNest, you need to create an API token in your Cloudflare account with the right permissions. This article is for anyone setting up a Cloudflare connection for the first time.
Overview
- InfraNest uses this token to read your DNS zones and manage records on your behalf.
- You create the token directly in Cloudflare, then paste it into InfraNest when you connect the provider.
- The exact permissions you choose determine what InfraNest is allowed to do β DNS management, domain renewal, or both.
Create the token
Sign in to the Cloudflare dashboard.
Go to My Profile β API Tokens.
Select Create Token, then Create Custom Token.
Give the token these permissions:
- Zone β DNS β Edit
- Zone β Zone β Read
- Also add Account β Domain Registrar β Edit if you want to manage your Cloudflare-registered domains.
Select Continue to summary, then Create Token.
Copy the token now β Cloudflare shows it only once.
WarningCloudflare only displays the token once. If you navigate away without copying it, you'll need to create a new token.
What the permissions are for
- Zone:Read + DNS:Edit let InfraNest see your zones and manage records.
- Domain Registrar:Edit lets InfraNest renew and manage domains registered at Cloudflare. Leave it out if you only use Cloudflare for DNS.
TipIf you're not sure whether you need the Domain Registrar permission, skip it for now β you can always create a new token later if you decide to manage domain renewals through InfraNest.
Next step
Go back to InfraNest and follow Connect Cloudflare to paste the token.
Was this article helpful?