## Fastly integration Fastly is an edge cloud platform that delivers content, applications, and APIs through a global CDN with real-time caching, purging, and security controls. The Fastly integration allows your application to connect to Fastly through Frontegg, enabling users to list and inspect services, read account information, and purge cached content — all through a secure API token connection. Prerequisites - A Fastly account with access to the services you want to manage - Permission to create personal API tokens (required for the account you are signed in with) ### Connect Fastly #### Step 1: Open the personal API tokens page Sign in to the Fastly control panel at [manage.fastly.com](https://manage.fastly.com/) and navigate to **Account → API tokens → Personal tokens**, or go directly to [manage.fastly.com/account/personal/tokens](https://manage.fastly.com/account/personal/tokens). Click **Create Token** to begin creating a new personal API token. ![Fastly personal API tokens page with Create Token highlighted](/assets/fastly-1.6acfef6a64c5b5dc8106b9227e4b0395159b0cbf50ea709c726d2ee0e9bc54ad.1ce25488.png) Re-authentication required Fastly asks you to re-enter your password (sudo mode) before you can create a token. Complete the prompt with the same account you used to sign in. #### Step 2: Configure the token Fill in the **Create a Token** form with the following values: 1. **Name** — enter a descriptive name such as `Frontegg Integration`. 2. **Type** — keep **User token** selected. 3. **Scope** — select the scopes listed in the table below. 4. **Access** — keep **All services on your customer account** selected, or restrict to specific services if needed. 5. **Expiration** — set an expiration date (recommended) or choose **Never expire**. Select the following scopes: | Scope | Description | | --- | --- | | `global` | Read/write access across users, services, current user, and tokens | | `global:read` | Read-only access across account resources | | `purge_all` | Purge all cached content for a service | | `purge_select` | Purge cached content by URL or surrogate key | Minimum required scopes For basic read-only functionality you need `global:read`. Add `global` for full service and account access, and `purge_all` / `purge_select` if the integration should purge cached content. ![Fastly Create a Token form with name and scopes filled in](/assets/fastly-2.53840e9104d1352de186d570fe74eaf503bc9be5a0271c2a10819aa39e638fa3.1ce25488.png) #### Step 3: Create and copy the token Click **Create Token**. Fastly displays the token value in a modal **only once** — copy it immediately and store it securely. Save your token now The raw token value is shown only once. If you close the dialog without copying it, you will have to delete the token and create a new one. ![Fastly new token created modal with the token value](/assets/fastly-3.c3afc386741ad32329e32ed9889578dbe3b80ced646f5cc16dd6b828ce4fe4c9.1ce25488.png) ### Configure the Frontegg portal Once you have your Fastly **API token** from the steps above, enter it in the integration configuration page of the Frontegg portal: 1. Open the **Frontegg portal** and navigate to your environment's **Integrations** section. 2. Find **Fastly** and open its configuration page. 3. Enter the **API token** in the corresponding field. 4. Select the required **scopes** for your integration. 5. Click **Save**. Keep your token secure Never share or commit your Fastly API token to version control. Tokens inherit the permissions of the user who created them and cannot be programmatically refreshed. ### Additional resources - [Fastly API tokens guide](https://www.fastly.com/documentation/guides/account-info/account-management/using-api-tokens/) - [Fastly API reference](https://www.fastly.com/documentation/reference/api/) - [Fastly control panel](https://manage.fastly.com/) - [How to get your Redirect URL](/agen-for-work/connectors/redirect-url)