C

Cloudflare API

REST discovered

Details
URL
https://api.cloudflare.com/client/v4
Docs
https://developers.cloudflare.com/api/
Authentication
Cloudflare API token bearer discovered Get token ↗
Authorization: Bearer <credential>

Create a token in the Cloudflare dashboard API Tokens page. Choose Create Token, pick a template or custom permissions, scope it to the needed account/zone resources, then copy the token secret when shown. Cloudflare recommends API tokens over the legacy global key. For durable service-principal style integrations, you can instead create an account-owned token from Manage AccountAccount API Tokens as documented in Account API tokens.

Cloudflare Global API key + account email X-Auth-Key: <credential> + Cloudflare Global API key + account email X-Auth-Email: <credential> discovered
Cloudflare Global API key + account email compound Get key ↗

In the Cloudflare dashboard, go to My ProfileAPI Tokens and in API Keys view the Global API Key. This legacy credential is only available after verifying your account email address, and Cloudflare recommends using API tokens instead. When using this auth method against the API, you send the global key together with the account email address.