C
Cloudflare API
Details
- URL
-
https://api.cloudflare.com/client/v4 - Spec
- https://cloudflare.com/openapi.json
- Docs
- https://developers.cloudflare.com/api/
Authentication
Authorization: Bearer <credential> In the Cloudflare dashboard API Tokens page, create an API token or use one of Cloudflare's templates, then grant the minimum required permissions for the account or zone resources you need. Cloudflare's fundamentals docs link to the dashboard token creation flow from Create API token. For non-interactive use with Wrangler, you can also export it as CLOUDFLARE_API_TOKEN.
Cloudflare Global API key + account email
X-Auth-Key: <credential> + Cloudflare Global API key + account email X-Auth-Email: <credential> discovered In the Cloudflare dashboard API Tokens / API Keys page, view or create your Global API Key, and pair it with the email address of the Cloudflare user that owns the key when making requests. Cloudflare fundamentals documents the API credential setup under Create API token and adjacent API credential pages.