Skip to content
Last updated

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 and navigate to Account → API tokens → Personal tokens, or go directly to 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

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:

ScopeDescription
globalRead/write access across users, services, current user, and tokens
global:readRead-only access across account resources
purge_allPurge all cached content for a service
purge_selectPurge 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

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

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