This guide explains how to connect your purely.website hosting account to Cloudflare using an API token. It covers creating a new token with the required Zone:Zone:Edit permissions, editing an existing token to grant these permissions, adding the token to your hosting account, and assigning it to a domain for automatic DNS synchronisation.
Setting up your Cloudflare token
- Log in to your Cloudflare account.
- Navigate to API Tokens and click Create Token.
- Click Use Template next to Edit Zone DNS.
Required Permissions
In the permission rows, ensure the following is included:
- First dropdown: Zone
- Second dropdown: Zone
- Third dropdown: Edit
- Under Zone Resources, choose a specific zone, or allow access to all domains in your account.
- (Optional) Set a TTL if required.
- Click Continue to Summary, then Create Token.
- Copy the token when it is shown, it will not be displayed again.
Editing an existing API token – granting Edit permission under Zone
Should you wish to modify an existing API token to include the correct permissions:
- Go to the API Tokens page: https://dash.cloudflare.com/profile/api-tokens
- Locate the token you wish to modify. Click the three dots (⋯) next to the API token.
- Select Edit.
- Required Permissions
Under Permissions, click Add More, then set:
- First dropdown: Zone
- Second dropdown: Zone
- Third dropdown: Edit
Click Continue to Summary, then Update Token to save your changes.
Adding or updating the Cloudflare token in your hosting account
- Log in to your cp.purely.website hosting control panel.
- Navigate to Integrations, then click Cloudflare.
- Under Cloudflare API Tokens, select Add (or locate an existing token entry if updating).
- Provide a Friendly name, paste the API token, and click Save.
Assigning a token to your domain
- Still within the control panel, go to Websites, then select the relevant website.
- Click on Domains from the top menu.
- Locate your domain and click the Cloudflare icon, then choose Select API Token.
- From the drop-down list, select the token you named earlier.
- Confirm if you wish to replace the existing Zone in Cloudflare by clicking Continue.
- If successful, you should see a green Connected message.