Cloudflare · Arazzo Workflow

Cloudflare Rotate Worker

Version 1.0.0

Create a Worker, read it back, then delete it.

1 workflow 1 source API 1 provider
View Spec View on GitHub AI GatewayAPI GatewayArtificial IntelligenceCDNCloudContainersDDoS ProtectionDNSEdgeEdge ComputingObject StoragePlatformReal-Time CommunicationSecurityServerlessWeb PerformanceArazzoWorkflows

Provider

cloudflare

Workflows

rotate-worker
Create, verify, and delete a Worker in a single lifecycle.
Provisions a Worker, reads it back by id to confirm it persisted, and then deletes it.
3 steps inputs: accountId, mainModule, workerName outputs: workerId, workerName
1
createWorker
Create a Worker in the account.
2
getWorker
Read the Worker back by id to confirm it persisted.
3
deleteWorker
Delete the Worker now that it has been verified.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Cloudflare Rotate Worker
  summary: Create a Worker, read it back, then delete it.
  description: >-
    A full lifecycle for a single Worker, useful for ephemeral or test
    deployments. The workflow creates a Worker, reads it back by id to confirm
    its configuration, and deletes it once verified, threading the Worker
    identifier from step to step. Each step inlines its request and asserts both
    the documented HTTP 200 status and, where the response carries one, the
    Cloudflare {success, result} envelope flag.
  version: 1.0.0
sourceDescriptions:
- name: workersApi
  url: ../openapi/cloudflare-workers-api-openapi.yml
  type: openapi
workflows:
- workflowId: rotate-worker
  summary: Create, verify, and delete a Worker in a single lifecycle.
  description: >-
    Provisions a Worker, reads it back by id to confirm it persisted, and then
    deletes it.
  inputs:
    type: object
    required:
    - accountId
    - workerName
    - mainModule
    properties:
      accountId:
        type: string
        description: The unique identifier of the Cloudflare account.
      workerName:
        type: string
        description: The name of the Worker to create.
      mainModule:
        type: string
        description: The entry point module for the Worker.
  steps:
  - stepId: createWorker
    description: Create a Worker in the account.
    operationId: createWorker
    parameters:
    - name: account_id
      in: path
      value: $inputs.accountId
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.workerName
        main_module: $inputs.mainModule
    successCriteria:
    - condition: $statusCode == 200
    - context: $response.body
      condition: $.success == true
      type: jsonpath
    outputs:
      workerId: $response.body#/result/id
  - stepId: getWorker
    description: Read the Worker back by id to confirm it persisted.
    operationId: getWorker
    parameters:
    - name: account_id
      in: path
      value: $inputs.accountId
    - name: worker_id
      in: path
      value: $steps.createWorker.outputs.workerId
    successCriteria:
    - condition: $statusCode == 200
    - context: $response.body
      condition: $.success == true
      type: jsonpath
    outputs:
      workerName: $response.body#/result/name
  - stepId: deleteWorker
    description: Delete the Worker now that it has been verified.
    operationId: deleteWorker
    parameters:
    - name: account_id
      in: path
      value: $inputs.accountId
    - name: worker_id
      in: path
      value: $steps.createWorker.outputs.workerId
    successCriteria:
    - condition: $statusCode == 200
  outputs:
    workerId: $steps.createWorker.outputs.workerId
    workerName: $steps.getWorker.outputs.workerName

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/cloudflare-rotate-worker-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.