Get Global API key (legacy)

Last updated Oct 13, 2026 Global API key is the previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API key.

New and rolled Global API Keys use the cfk_ prefixed scannable format, which allows credential scanning tools to detect leaked keys.

Note

Global API key is only available after the account email address is verified.

Limitations

Global API key has multiple limitations when compared to API tokens:

  • Access to all Cloudflare resources - Global API key has access to all of a user's resources. This makes it impossible to safely use Global API key to access non-production resources when a user also has access to production resources.
  • Full permissions - Similarly, Global API key has the exact same permissions as the user, which means if the user can delete zones or change DNS records, so can the Global API key.
  • Limited to one per user - Only one Global API key can be provisioned per user. This complicates using Cloudflare's API in production systems where maintaining two secrets for accessing the API is important in the case one needs to be rolled.
  • Lack of advanced limits on usage - API tokens can be limited to specific time windows and expire or be limited to use from specific IP ranges.

For these reasons, Global API key is not recommended for new customers. Current customers using Global API key are encouraged to migrate and use API tokens instead.

View your Global API key

To retrieve your Global API key:

  1. In the Cloudflare dashboard, go to My Profile > API Tokens. Go to API Tokens ↗
  2. In the API Keys section, click View button of Global API Key.

Change your Global API key

If your API key might be compromised, change your API key:

  1. Log in to the Cloudflare dashboard. Go to Account home ↗
  2. Go to My Profile > API Tokens.
  3. In the API Keys section, find your key.
  4. Select Change.

Was this helpful?

YesNo

On this page

Get Global API key (legacy) - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/fundamentals/api/get-started/keys/#page","headline":"Get Global API key (legacy)","description":"Retrieve or change your Cloudflare Global API key, a legacy authentication method with full account access.","url":"https://developers.cloudflare.com/fundamentals/api/get-started/keys/","inLanguage":"en","image":"https://developers.cloudflare.com/fundamentals/api/get-started/keys/og.png?v=0417b6e6cc593c53","dateModified":"2026-10-13","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Scannable API credential formats and leaked token detection. title: Token formats image: https://developers.cloudflare.com/fundamentals/api/get-started/token-formats/og.png?v=e87695f5d7a06bab


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/fundamentals/llms.txt
Use this file to discover all available pages before exploring further.