is-a.dev • Cloudflare Pages
You need a scoped token before you can add a domain to a Pages project. This takes about a minute and only needs to be done once — you can reuse the same token for future domains.
Log in to the Cloudflare dashboard, then go to your profile icon (top right) → My Profile → API Tokens.
Or go straight there: dash.cloudflare.com/profile/api-tokens
Click Create Token, scroll to the bottom, and choose Create Custom Token rather than one of the pre-built templates.
Give the token a name you'll recognize later, like pages-domain-tool. Under
Permissions, add:
This is the minimum scope needed to attach domains to a Pages project. No other permissions are required.
Under Account Resources, select the specific account the Pages project lives in (rather than "All accounts") to keep the token as narrow as possible.
Click Continue to summary, review the permissions, then Create Token. Copy the token immediately — Cloudflare only shows it once.
You'll also need the Account ID for the form. It's shown on the right-hand sidebar of any domain's
Overview page in the dashboard, or in the URL:
dash.cloudflare.com/<account-id>/...