---
title: "Fastly No-Code Integration"
type: "guide"
url: "https://docs.spur.us/knowledgebase/guides/fastly-no-code-integration"
category: "Security Operations"
product: "monocle"
difficulty: "intermediate"
estimatedTime: "15 minutes"
publishedAt: "2026-09-04T00:00:00.000Z"
updatedAt: "2026-09-11T13:25:55Z"
---

# Fastly No-Code Integration

Connect Monocle to your Fastly service without writing any code. Monocle deploys and manages a Compute service that enforces your policy at the edge.

## Prerequisites

- A Fastly account, with a user who has the Engineer or Superuser role
- A Monocle application

## Outcomes

- Connect your Fastly account to Monocle
- Protect one or more domains through a Monocle-managed Fastly service
- Configure what blocked visitors see

## Step 1: Create a Fastly API token

In Fastly, go to Account > API tokens > Personal tokens and click Create Token. Give it these settings: Type: Automation, Scope: Global, Access: All services (or just the service you want to protect). Create the token while signed in as a user with the Engineer or Superuser role — other roles can produce a token that validates but can't actually deploy a service. Paste the token into Monocle to validate it; no changes are made to your Fastly account at this stage.

## Step 2: Choose the domain and origin

Add the domain(s) and path(s) you want to protect. Monocle checks whether a Fastly service already exists for that domain. If none is found, Monocle deploys a new one for you. If one is found, you'll be offered the option to chain alongside it instead of replacing it.

## Step 3: Optional: chain alongside an existing Fastly service

If you already run a Fastly service on the domain, chaining lets Monocle run alongside it rather than replacing it. For a VCL (Delivery) service, Monocle configures this automatically. For a Compute service, Monocle attaches an internal host and gives you a short code snippet to add to your own service, then verifies the connection once it's in place.

## Step 4: Configure the block response

Choose what a blocked visitor sees — a redirect to another URL, or a custom block page. This is the same block-response configuration used across Monocle's other integrations.

## Step 5: Deploy

Click Deploy Service. Monocle provisions everything it needs in your Fastly account under its own managed resources. You can update your protected domains or remove the integration at any time from your app's settings.
