INTEGRITY Cloudflare Docs

Get Global API key (legacy)

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.

Limitations

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

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 and select User Profile > API Tokens.

    Go to Account 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.