Symptoms
On a Plesk server, connecting to Cloudflare in the extension "DNS Integration for Cloudflare®" fails:
The Token is invalid. Provide a valid CloudFlare API token.
The token with which such error occurs is created in Cloudflare as follows: in Cloudflare account, create the API Token in My Profile > Manage Account > Account API Tokens > Create Token > Create Custom Token with the following parameters:
- Token name: test_token.
- Permissions:
Zone:Zone:Edit
,Zone:DNS:Edit
. - Zone Resources: "Include:All zones from account:[email protected]'s Account".
Cause
Different verification method of API keys on the Cloudflare side depending on the account type (regular and delegated).
Resolution
Create the API token in Cloudflare using these steps:
-
Log in to your account on Cloudflare.
-
Go to My Profile > API Tokens.
-
Click Create Token, and then click Create Custom Token.
-
Specify parameters of the token:
- Permissions
Zone:Zone:Edit
andZone:DNS:Edit
. - Zone Resources: Include:All zones from an account:[email protected] (Specify the account that was delegated).
- Permissions