Fastly · Arazzo Workflow

Fastly Bulk Purge Surrogate Keys

Version 1.0.0

Confirm a service exists, then purge up to 256 surrogate keys in one request.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub CDNEdge CloudEdge ComputeWebAssemblySecurityArtificial IntelligenceObservabilityAsyncAPIStreamingWebhookLoggingArazzoWorkflows

Provider

fastly

Workflows

bulk-purge-surrogate-keys
Validate a service and purge a batch of surrogate keys.
Reads the service to confirm it exists, then submits up to 256 surrogate keys to be purged in one batch request.
2 steps inputs: apiToken, serviceId, surrogateKeys outputs: purgeStatuses
1
getService
Confirm the service exists before issuing the bulk purge.
2
bulkPurge
Submit the batch of surrogate keys to purge in a single request.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Fastly Bulk Purge Surrogate Keys
  summary: Confirm a service exists, then purge up to 256 surrogate keys in one request.
  description: >-
    Invalidates many cache tags at once. The workflow confirms the target
    service exists and then submits a batch of surrogate keys to be purged in a
    single call, returning a map of each key to its purge status identifier.
    Every step spells out its request inline so the flow can be read and
    executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: purgingApi
  url: ../openapi/fastly-purging-api-openapi.yml
  type: openapi
- name: serviceApi
  url: ../openapi/fastly-service-api-openapi.yml
  type: openapi
workflows:
- workflowId: bulk-purge-surrogate-keys
  summary: Validate a service and purge a batch of surrogate keys.
  description: >-
    Reads the service to confirm it exists, then submits up to 256 surrogate
    keys to be purged in one batch request.
  inputs:
    type: object
    required:
    - apiToken
    - serviceId
    - surrogateKeys
    properties:
      apiToken:
        type: string
        description: The Fastly API token used to authenticate requests.
      serviceId:
        type: string
        description: The alphanumeric identifier of the service.
      surrogateKeys:
        type: array
        description: A list of surrogate key tags to purge (maximum 256).
        items:
          type: string
  steps:
  - stepId: getService
    description: Confirm the service exists before issuing the bulk purge.
    operationId: getService
    parameters:
    - name: Fastly-Key
      in: header
      value: $inputs.apiToken
    - name: service_id
      in: path
      value: $inputs.serviceId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      serviceId: $response.body#/id
  - stepId: bulkPurge
    description: Submit the batch of surrogate keys to purge in a single request.
    operationId: bulkPurgeBySurrogateKey
    parameters:
    - name: Fastly-Key
      in: header
      value: $inputs.apiToken
    - name: service_id
      in: path
      value: $inputs.serviceId
    requestBody:
      contentType: application/json
      payload:
        surrogate_keys: $inputs.surrogateKeys
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      purgeStatuses: $response.body#/purge_statuses
  outputs:
    purgeStatuses: $steps.bulkPurge.outputs.purgeStatuses

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/fastly-bulk-purge-surrogate-keys-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.