Account ID & Zone ID
Cloudflare uses two identifiers you’ll provide to the integration.
Account ID
Section titled “Account ID”Your Account ID identifies your Cloudflare account. It’s required for all provisioning (R2 buckets, Workers/Containers, Pages).
From the dashboard:
- Go to the Cloudflare dashboard.
- On the Account Home page, select the menu (•••) next to your account name and choose Copy account ID.
- Alternatively, open Workers & Pages — the Account details panel on the right shows the Account ID with a Click to copy link.
It also appears in the dashboard URL: https://dash.cloudflare.com/<ACCOUNT_ID>.
The integration reads it from the CLOUDFLARE_ACCOUNT_ID environment variable (see Quickstart).
Zone ID
Section titled “Zone ID”A Zone ID identifies a single domain in your account. You only need it for custom domains — attaching a hostname to a Container or Pages app with WithCustomDomain(zoneId, hostname).
From the dashboard:
- Go to the Cloudflare dashboard and select the domain you want to use.
- On the domain’s Overview tab, find the API section (lower-right).
- Under Zone ID, select Click to copy.
Where these are used
Section titled “Where these are used”// Account id: from CLOUDFLARE_ACCOUNT_ID (or a parameter you pass to AddCloudflareEnvironment).builder.AddCloudflareEnvironment();
// Zone id (and hostname): supply them as parameters and attach per custom domain.var zone = builder.AddDeploymentParameter("zone-id");var host = builder.AddDeploymentParameter("api-hostname");api.WithCustomDomain(host, zone);await builder.addCloudflareEnvironment();const zone = await builder.addDeploymentParameter('zone-id');const host = await builder.addDeploymentParameter('api-hostname');await api.withCustomDomainParameters(host, zone);