Skip to content

Cloudflare connects with a custom API token scoped to one account.

Install the Cloudflare integration

Install Cloudflare from Available integrations in each environment you connect accounts from.

Create an API token

  1. Sign in to your Cloudflare account.
  2. Open API Tokens and click Create Token. Click Create Token
  3. Under Custom token, click Get started. Click Get started under Custom token
  4. Enter a Name for the token. Enter the token name
  5. Give the permissions exactly as shown below. Permission Account, Account Settings, Read
  6. After the permissions, select the account to include. Select an account
    Warning

    Don't leave it as Include: All accounts. If no account is selected, the API might not work properly.

  7. Click Continue to summary, create the token and copy it. Copy the token

Connect a Cloudflare account

  1. In Integrated Accounts, click Connect Account. Click Connect Account
  2. Enter a Tenant ID (your customer's ID; Truto creates the tenant if it is new), or pick one under Existing tenant (optional). Check the Environment and the Region (where Truto places the account; Western North America by default). To open the link straight on Cloudflare, pick it under Advanced settings → Integration (optional). Click Get connection link. Get connection link
  3. Click the open-in-new-tab button, or click Copy and send the link to your customer so they connect their own Cloudflare account. The link works for 7 days, until an account is connected with it. Share connection link
  4. Click Get Started if it shows, then select Cloudflare. Select Cloudflare
  5. Enter the token as API Key and click Connect. Cloudflare API Key field
  6. Close the tab when you see Connection successful. The new account appears under Integrated Accounts. Click its Account ID to see its details and make API calls. Cloudflare integrated account

Uninstall the Cloudflare integration

To remove Cloudflare, see Uninstalling an integration. Uninstalling deletes every Cloudflare integrated account in that environment.