{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-agen-for-work/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["Notification","LightboxImage"]},"type":"markdown"},"seo":{"title":"Cloudflare integration","siteUrl":"https://developers.frontegg.com/","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"cloudflare-integration","__idx":0},"children":["Cloudflare integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Cloudflare is a global cloud platform that provides CDN, DNS, DDoS protection, and security services for websites and applications. The Cloudflare integration allows your application to connect to Cloudflare through Frontegg, enabling users to manage zones, DNS records, firewall rules, caching, analytics, and Workers — all through a secure API token connection."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Notification","attributes":{"title":"Prerequisites","type":"attention"},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A Cloudflare account (free or paid plan)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["At least one zone (domain) added to your Cloudflare account, if you need zone-level access"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"connect-cloudflare","__idx":1},"children":["Connect Cloudflare"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"step-1-log-in-to-the-cloudflare-dashboard","__idx":2},"children":["Step 1: Log in to the Cloudflare dashboard"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Navigate to ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://dash.cloudflare.com/"},"children":["dash.cloudflare.com"]}," and log in with your Cloudflare account credentials."]},{"$$mdtype":"Tag","name":"LightboxImage","attributes":{"isLightbox":true},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/cloudflare-1.7536528f43a3ed6e54f84a6e6f823901ad79a1361347142e33797f8db1b84202.1ce25488.png","alt":"Cloudflare dashboard home page"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"step-2-open-the-api-tokens-page","__idx":3},"children":["Step 2: Open the API tokens page"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click on the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["user icon"]}," in the top-right corner and select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["My Profile"]},", then click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["API Tokens"]}," in the left sidebar. Alternatively, navigate directly to ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://dash.cloudflare.com/profile/api-tokens"},"children":["dash.cloudflare.com/profile/api-tokens"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Token"]}," to begin creating a new API token."]},{"$$mdtype":"Tag","name":"LightboxImage","attributes":{"isLightbox":true},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/cloudflare-2.bc001cddffa872e000a1693508d3c956b138a9a441c25e2465f53252342c5d20.1ce25488.png","alt":"Cloudflare API Tokens page with Create Token button highlighted"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"step-3-select-custom-token","__idx":4},"children":["Step 3: Select custom token"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["On the token creation page, find the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Custom token"]}," section at the top and click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Get started"]}," next to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Custom Token"]},". This allows you to configure specific permissions for the integration."]},{"$$mdtype":"Tag","name":"LightboxImage","attributes":{"isLightbox":true},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/cloudflare-3.99a269f3b74c8adad779ca8fbd33b44fda1b15904a3763b4e6b61cf145944685.1ce25488.png","alt":"Create API Token page with Create Custom Token highlighted"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"step-4-configure-the-token","__idx":5},"children":["Step 4: Configure the token"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Set the following fields:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Token name"]}," - Enter a descriptive name such as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Frontegg Integration"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Permissions"]}," - Add the required permissions using the dropdowns. Select the resource type, permission, and access level for each entry. Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add more"]}," to add additional permissions."]}]},{"$$mdtype":"Tag","name":"LightboxImage","attributes":{"isLightbox":true},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/cloudflare-4.ac8a1e45eb43f9f9d97a438bd0a076453c72adb0f76f4ce5305065d46730a899.1ce25488.png","alt":"Custom token creation form with name and permissions"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"step-5-configure-permissions","__idx":6},"children":["Step 5: Configure permissions"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Add the following permissions by clicking ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add more"]}," for each additional row. Each permission requires three selections: resource type, permission name, and access level."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Resource"},"children":["Resource"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Permission"},"children":["Permission"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Access level"},"children":["Access level"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Zone"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Zone"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Read"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Zone"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["DNS"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Edit"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Zone"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Cache Purge"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Purge"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Zone"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Firewall Services"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Read"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Zone"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Page Rules"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Read"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Zone"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Analytics"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Read"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Zone"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Load Balancers"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Read"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Zone"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SSL and Certificates"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Read"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Account"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Account Settings"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Read"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["User"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["User Details"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Read"]}]}]}]}]},{"$$mdtype":"Tag","name":"Notification","attributes":{"title":"Minimum required permissions","type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For basic functionality, you need at least: Zone - Zone - Read and Zone - DNS - Read. Add additional permissions based on the features you plan to use."]}]},{"$$mdtype":"Tag","name":"LightboxImage","attributes":{"isLightbox":true},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/cloudflare-5.0c7526ec7738d2d82a7955c90c877f62f0c252d04240b1e6a52037c75cdc6276.1ce25488.png","alt":"Permissions configuration with Zone Read selected"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"step-6-set-zone-and-account-resources","__idx":7},"children":["Step 6: Set zone and account resources"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Under ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Zone Resources"]},", keep the default setting of ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Include"]}," → ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["All zones"]}," to grant the token access to all zones in your account. You can restrict access to specific zones if needed."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Under ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Account Resources"]},", keep the default setting of ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Include"]}," → ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["All accounts"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"step-7-create-the-token","__idx":8},"children":["Step 7: Create the token"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Leave the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client IP Address Filtering"]}," and ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["TTL"]}," sections at their default values unless you have specific security requirements. Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue to summary"]}," to review your token configuration, then click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Token"]},"."]},{"$$mdtype":"Tag","name":"Notification","attributes":{"title":"Save your API token","type":"attention"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["After creating the token, Cloudflare displays the token value ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["only once"]},". Copy it immediately and store it securely. You will not be able to view this token again."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"configure-the-frontegg-portal","__idx":9},"children":["Configure the Frontegg portal"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Once you have your ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["API Token"]}," from the steps above, enter it in the integration configuration page of the Frontegg portal:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Open the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Frontegg portal"]}," and navigate to your environment's ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations"]}," section."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Find ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Cloudflare"]}," and open its configuration page."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Enter the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["API Token"]}," in the corresponding field."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select the required ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["scopes"]}," for your integration."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Save"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"additional-resources","__idx":10},"children":["Additional resources"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://developers.cloudflare.com/fundamentals/api/get-started/create-token/"},"children":["Cloudflare API tokens documentation"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://developers.cloudflare.com/api/"},"children":["Cloudflare API reference"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://dash.cloudflare.com/"},"children":["Cloudflare dashboard"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/agen-for-work/connectors/redirect-url"},"children":["How to get your Redirect URL"]}]}]}]}]},"headings":[{"value":"Cloudflare integration","id":"cloudflare-integration","depth":2},{"value":"Connect Cloudflare","id":"connect-cloudflare","depth":3},{"value":"Step 1: Log in to the Cloudflare dashboard","id":"step-1-log-in-to-the-cloudflare-dashboard","depth":4},{"value":"Step 2: Open the API tokens page","id":"step-2-open-the-api-tokens-page","depth":4},{"value":"Step 3: Select custom token","id":"step-3-select-custom-token","depth":4},{"value":"Step 4: Configure the token","id":"step-4-configure-the-token","depth":4},{"value":"Step 5: Configure permissions","id":"step-5-configure-permissions","depth":4},{"value":"Step 6: Set zone and account resources","id":"step-6-set-zone-and-account-resources","depth":4},{"value":"Step 7: Create the token","id":"step-7-create-the-token","depth":4},{"value":"Configure the Frontegg portal","id":"configure-the-frontegg-portal","depth":3},{"value":"Additional resources","id":"additional-resources","depth":3}],"frontmatter":{"seo":{"title":"Cloudflare integration"}},"lastModified":"2026-05-01T18:45:25.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/agen-for-work/connectors/marketplace/cloudflare","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}