Cloudflare — API token for Workers and DNS
cloudflare/api · version 1
envs add cloudflare/api
This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.
| Key | Needed | Kind | Notes |
|---|---|---|---|
CLOUDFLARE_API_TOKEN |
required | secret | Scoped token, read by Wrangler. No shape is declared: the documented cfut_ and cfat_ prefixes are recent, and tokens issued before them are still valid.. where to get it |
CLOUDFLARE_ACCOUNT_ID |
optional | config | An identifier, not a credential. Needed when the account cannot be inferred.. Shape ^[0-9a-f]{32}$. where to get it |
CLOUDFLARE_API_KEY |
optional | secret | Legacy Global API Key, paired with CLOUDFLARE_EMAIL. Broader access than a token; prefer the token.. where to get it |
CLOUDFLARE_EMAIL |
optional | secret | Only with the legacy key, and half of that pair. Do not set both auth methods.. where to get it |