Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • API tokens

  • API keys

Authentication Methodmethod

Details

Configuration properties

Link

API Tokens

Cloudflare recommends API Tokens as the preferred way to interact with Cloudflare APIs. You can configure the scope of tokens to limit access to account and zone resources, and you can define the Cloudflare APIs to which the token authorizes access.

The following credentials properties are needed:

Code Block
credentials:
  api_token: <API_TOKEN>

Create API token · Cloudflare API docs

API Keys

Unique to each Cloudflare user and used only for authentication. API keys do not authorize access to accounts or zones.

Use the Global API Key for authentication. Only use the Origin CA Key when you create origin certificates through the API.

The following credentials properties are needed:

Code Block
credentials:
  api_key: <API_KEY>
  user_email: <USER_EMAIL>

Get API keys (legacy) · Cloudflare API docs

...