APIs.io Engineering Platform Cloudflare API — Worker Script

APIs.io Engineering Platform Cloudflare API — Worker Script. 12 operations. Lead operation: APIs.io Engineering Platform List Workers. Self-contained Naftiko capability covering one Engineering Platform business surface.

Run with Naftiko Engineering PlatformWorker Script

What You Can Do

GET
Workerscriptlistworkers — APIs.io Engineering Platform List Workers
/v1/accounts/{account-id}/workers/scripts
DELETE
Workerscriptdeleteworker — APIs.io Engineering Platform Delete Worker
/v1/accounts/{account-id}/workers/scripts/{script-name}
GET
Workerscriptdownloadworker — APIs.io Engineering Platform Download Worker
/v1/accounts/{account-id}/workers/scripts/{script-name}
PUT
Workerscriptuploadworkermodule — APIs.io Engineering Platform Upload Worker Module
/v1/accounts/{account-id}/workers/scripts/{script-name}
PUT
Workerscriptputcontent — APIs.io Engineering Platform Put script content
/v1/accounts/{account-id}/workers/scripts/{script-name}/content
GET
Workerscriptgetcontent — APIs.io Engineering Platform Get script content
/v1/accounts/{account-id}/workers/scripts/{script-name}/content/v2
GET
Workerscriptsettingsgetsettings — APIs.io Engineering Platform Get Script Settings
/v1/accounts/{account-id}/workers/scripts/{script-name}/script-settings
PATCH
Workerscriptsettingspatchsettings — APIs.io Engineering Platform Patch Script Settings
/v1/accounts/{account-id}/workers/scripts/{script-name}/script-settings
GET
Workerscriptgetsettings — APIs.io Engineering Platform Get Settings
/v1/accounts/{account-id}/workers/scripts/{script-name}/settings
PATCH
Workerscriptpatchsettings — APIs.io Engineering Platform Patch Settings
/v1/accounts/{account-id}/workers/scripts/{script-name}/settings
GET
Workerscriptfetchusagemodel — APIs.io Engineering Platform Fetch Usage Model
/v1/accounts/{account-id}/workers/scripts/{script-name}/usage-model
PUT
Workerscriptupdateusagemodel — APIs.io Engineering Platform Update Usage Model
/v1/accounts/{account-id}/workers/scripts/{script-name}/usage-model

MCP Tools

apis-io-engineering-platform-list-workers

APIs.io Engineering Platform List Workers

read-only idempotent
apis-io-engineering-platform-delete-worker

APIs.io Engineering Platform Delete Worker

idempotent
apis-io-engineering-platform-download-worker

APIs.io Engineering Platform Download Worker

read-only idempotent
apis-io-engineering-platform-upload-worker

APIs.io Engineering Platform Upload Worker Module

idempotent
apis-io-engineering-platform-put-script

APIs.io Engineering Platform Put script content

idempotent
apis-io-engineering-platform-get-script

APIs.io Engineering Platform Get script content

read-only idempotent
apis-io-engineering-platform-get-script-2

APIs.io Engineering Platform Get Script Settings

read-only idempotent
apis-io-engineering-platform-patch-script

APIs.io Engineering Platform Patch Script Settings

idempotent
apis-io-engineering-platform-get-settings

APIs.io Engineering Platform Get Settings

read-only idempotent
apis-io-engineering-platform-patch-settings

APIs.io Engineering Platform Patch Settings

idempotent
apis-io-engineering-platform-fetch-usage

APIs.io Engineering Platform Fetch Usage Model

read-only idempotent
apis-io-engineering-platform-update-usage

APIs.io Engineering Platform Update Usage Model

idempotent

Capability Spec

cloudflare-worker-script.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: APIs.io Engineering Platform Cloudflare API — Worker Script
  description: 'APIs.io Engineering Platform Cloudflare API — Worker Script. 12 operations. Lead operation: APIs.io Engineering
    Platform List Workers. Self-contained Naftiko capability covering one Engineering Platform business surface.'
  tags:
  - Engineering Platform
  - Worker Script
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ENGINEERING_PLATFORM_API_KEY: ENGINEERING_PLATFORM_API_KEY
capability:
  consumes:
  - type: http
    namespace: cloudflare-worker-script
    baseUri: ''
    description: APIs.io Engineering Platform Cloudflare API — Worker Script business capability. Self-contained, no shared
      references.
    resources:
    - name: accounts-account_id-workers-scripts
      path: /accounts/{account_id}/workers/scripts
      operations:
      - name: workerscriptlistworkers
        method: GET
        description: APIs.io Engineering Platform List Workers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
    - name: accounts-account_id-workers-scripts-script_name
      path: /accounts/{account_id}/workers/scripts/{script_name}
      operations:
      - name: workerscriptdeleteworker
        method: DELETE
        description: APIs.io Engineering Platform Delete Worker
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: script_name
          in: path
          type: string
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: force
          in: query
          type: boolean
          description: If set to true, delete will not be stopped by associated service binding, durable object, or other
            binding. Any of these associated bindings/durable objects wil
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: workerscriptdownloadworker
        method: GET
        description: APIs.io Engineering Platform Download Worker
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: script_name
          in: path
          type: string
          required: true
        - name: account_id
          in: path
          type: string
          required: true
      - name: workerscriptuploadworkermodule
        method: PUT
        description: APIs.io Engineering Platform Upload Worker Module
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: script_name
          in: path
          type: string
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: rollback_to
          in: query
          type: string
          description: Rollback to provided deployment based on deployment ID. Request body will only parse a "message" part.
            You can learn more about deployments [here](https://devel
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: accounts-account_id-workers-scripts-script_name-content
      path: /accounts/{account_id}/workers/scripts/{script_name}/content
      operations:
      - name: workerscriptputcontent
        method: PUT
        description: APIs.io Engineering Platform Put script content
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: script_name
          in: path
          type: string
          required: true
        - name: CF-WORKER-BODY-PART
          in: header
          type: string
          description: The multipart name of a script upload part containing script content in service worker format. Alternative
            to including in a metadata part.
        - name: CF-WORKER-MAIN-MODULE-PART
          in: header
          type: string
          description: The multipart name of a script upload part containing script content in es module format. Alternative
            to including in a metadata part.
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: accounts-account_id-workers-scripts-script_name-content-v2
      path: /accounts/{account_id}/workers/scripts/{script_name}/content/v2
      operations:
      - name: workerscriptgetcontent
        method: GET
        description: APIs.io Engineering Platform Get script content
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: script_name
          in: path
          type: string
          required: true
    - name: accounts-account_id-workers-scripts-script_name-script-settings
      path: /accounts/{account_id}/workers/scripts/{script_name}/script-settings
      operations:
      - name: workerscriptsettingsgetsettings
        method: GET
        description: APIs.io Engineering Platform Get Script Settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: script_name
          in: path
          type: string
          required: true
      - name: workerscriptsettingspatchsettings
        method: PATCH
        description: APIs.io Engineering Platform Patch Script Settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: script_name
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: accounts-account_id-workers-scripts-script_name-settings
      path: /accounts/{account_id}/workers/scripts/{script_name}/settings
      operations:
      - name: workerscriptgetsettings
        method: GET
        description: APIs.io Engineering Platform Get Settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: script_name
          in: path
          type: string
          required: true
      - name: workerscriptpatchsettings
        method: PATCH
        description: APIs.io Engineering Platform Patch Settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: script_name
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: accounts-account_id-workers-scripts-script_name-usage-model
      path: /accounts/{account_id}/workers/scripts/{script_name}/usage-model
      operations:
      - name: workerscriptfetchusagemodel
        method: GET
        description: APIs.io Engineering Platform Fetch Usage Model
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: script_name
          in: path
          type: string
          required: true
        - name: account_id
          in: path
          type: string
          required: true
      - name: workerscriptupdateusagemodel
        method: PUT
        description: APIs.io Engineering Platform Update Usage Model
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: script_name
          in: path
          type: string
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.ENGINEERING_PLATFORM_API_KEY}}'
  exposes:
  - type: rest
    namespace: cloudflare-worker-script-rest
    port: 8080
    description: REST adapter for APIs.io Engineering Platform Cloudflare API — Worker Script. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/accounts/{account-id}/workers/scripts
      name: accounts-account-id-workers-scripts
      description: REST surface for accounts-account_id-workers-scripts.
      operations:
      - method: GET
        name: workerscriptlistworkers
        description: APIs.io Engineering Platform List Workers
        call: cloudflare-worker-script.workerscriptlistworkers
        with:
          account_id: rest.account_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/workers/scripts/{script-name}
      name: accounts-account-id-workers-scripts-script-name
      description: REST surface for accounts-account_id-workers-scripts-script_name.
      operations:
      - method: DELETE
        name: workerscriptdeleteworker
        description: APIs.io Engineering Platform Delete Worker
        call: cloudflare-worker-script.workerscriptdeleteworker
        with:
          script_name: rest.script_name
          account_id: rest.account_id
          force: rest.force
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: workerscriptdownloadworker
        description: APIs.io Engineering Platform Download Worker
        call: cloudflare-worker-script.workerscriptdownloadworker
        with:
          script_name: rest.script_name
          account_id: rest.account_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: workerscriptuploadworkermodule
        description: APIs.io Engineering Platform Upload Worker Module
        call: cloudflare-worker-script.workerscriptuploadworkermodule
        with:
          script_name: rest.script_name
          account_id: rest.account_id
          rollback_to: rest.rollback_to
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/workers/scripts/{script-name}/content
      name: accounts-account-id-workers-scripts-script-name-content
      description: REST surface for accounts-account_id-workers-scripts-script_name-content.
      operations:
      - method: PUT
        name: workerscriptputcontent
        description: APIs.io Engineering Platform Put script content
        call: cloudflare-worker-script.workerscriptputcontent
        with:
          account_id: rest.account_id
          script_name: rest.script_name
          CF-WORKER-BODY-PART: rest.CF-WORKER-BODY-PART
          CF-WORKER-MAIN-MODULE-PART: rest.CF-WORKER-MAIN-MODULE-PART
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/workers/scripts/{script-name}/content/v2
      name: accounts-account-id-workers-scripts-script-name-content-v2
      description: REST surface for accounts-account_id-workers-scripts-script_name-content-v2.
      operations:
      - method: GET
        name: workerscriptgetcontent
        description: APIs.io Engineering Platform Get script content
        call: cloudflare-worker-script.workerscriptgetcontent
        with:
          account_id: rest.account_id
          script_name: rest.script_name
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/workers/scripts/{script-name}/script-settings
      name: accounts-account-id-workers-scripts-script-name-script-settings
      description: REST surface for accounts-account_id-workers-scripts-script_name-script-settings.
      operations:
      - method: GET
        name: workerscriptsettingsgetsettings
        description: APIs.io Engineering Platform Get Script Settings
        call: cloudflare-worker-script.workerscriptsettingsgetsettings
        with:
          account_id: rest.account_id
          script_name: rest.script_name
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: workerscriptsettingspatchsettings
        description: APIs.io Engineering Platform Patch Script Settings
        call: cloudflare-worker-script.workerscriptsettingspatchsettings
        with:
          account_id: rest.account_id
          script_name: rest.script_name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/workers/scripts/{script-name}/settings
      name: accounts-account-id-workers-scripts-script-name-settings
      description: REST surface for accounts-account_id-workers-scripts-script_name-settings.
      operations:
      - method: GET
        name: workerscriptgetsettings
        description: APIs.io Engineering Platform Get Settings
        call: cloudflare-worker-script.workerscriptgetsettings
        with:
          account_id: rest.account_id
          script_name: rest.script_name
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: workerscriptpatchsettings
        description: APIs.io Engineering Platform Patch Settings
        call: cloudflare-worker-script.workerscriptpatchsettings
        with:
          account_id: rest.account_id
          script_name: rest.script_name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{account-id}/workers/scripts/{script-name}/usage-model
      name: accounts-account-id-workers-scripts-script-name-usage-model
      description: REST surface for accounts-account_id-workers-scripts-script_name-usage-model.
      operations:
      - method: GET
        name: workerscriptfetchusagemodel
        description: APIs.io Engineering Platform Fetch Usage Model
        call: cloudflare-worker-script.workerscriptfetchusagemodel
        with:
          script_name: rest.script_name
          account_id: rest.account_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: workerscriptupdateusagemodel
        description: APIs.io Engineering Platform Update Usage Model
        call: cloudflare-worker-script.workerscriptupdateusagemodel
        with:
          script_name: rest.script_name
          account_id: rest.account_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cloudflare-worker-script-mcp
    port: 9090
    transport: http
    description: MCP adapter for APIs.io Engineering Platform Cloudflare API — Worker Script. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: apis-io-engineering-platform-list-workers
      description: APIs.io Engineering Platform List Workers
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloudflare-worker-script.workerscriptlistworkers
      with:
        account_id: tools.account_id
      outputParameters:
      - type: object
        mapping: $.
    - name: apis-io-engineering-platform-delete-worker
      description: APIs.io Engineering Platform Delete Worker
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: cloudflare-worker-script.workerscriptdeleteworker
      with:
        script_name: tools.script_name
        account_id: tools.account_id
        force: tools.force
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apis-io-engineering-platform-download-worker
      description: APIs.io Engineering Platform Download Worker
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloudflare-worker-script.workerscriptdownloadworker
      with:
        script_name: tools.script_name
        account_id: tools.account_id
      outputParameters:
      - type: object
        mapping: $.
    - name: apis-io-engineering-platform-upload-worker
      description: APIs.io Engineering Platform Upload Worker Module
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: cloudflare-worker-script.workerscriptuploadworkermodule
      with:
        script_name: tools.script_name
        account_id: tools.account_id
        rollback_to: tools.rollback_to
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apis-io-engineering-platform-put-script
      description: APIs.io Engineering Platform Put script content
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: cloudflare-worker-script.workerscriptputcontent
      with:
        account_id: tools.account_id
        script_name: tools.script_name
        CF-WORKER-BODY-PART: tools.CF-WORKER-BODY-PART
        CF-WORKER-MAIN-MODULE-PART: tools.CF-WORKER-MAIN-MODULE-PART
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apis-io-engineering-platform-get-script
      description: APIs.io Engineering Platform Get script content
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloudflare-worker-script.workerscriptgetcontent
      with:
        account_id: tools.account_id
        script_name: tools.script_name
      outputParameters:
      - type: object
        mapping: $.
    - name: apis-io-engineering-platform-get-script-2
      description: APIs.io Engineering Platform Get Script Settings
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloudflare-worker-script.workerscriptsettingsgetsettings
      with:
        account_id: tools.account_id
        script_name: tools.script_name
      outputParameters:
      - type: object
        mapping: $.
    - name: apis-io-engineering-platform-patch-script
      description: APIs.io Engineering Platform Patch Script Settings
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: cloudflare-worker-script.workerscriptsettingspatchsettings
      with:
        account_id: tools.account_id
        script_name: tools.script_name
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apis-io-engineering-platform-get-settings
      description: APIs.io Engineering Platform Get Settings
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloudflare-worker-script.workerscriptgetsettings
      with:
        account_id: tools.account_id
        script_name: tools.script_name
      outputParameters:
      - type: object
        mapping: $.
    - name: apis-io-engineering-platform-patch-settings
      description: APIs.io Engineering Platform Patch Settings
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: cloudflare-worker-script.workerscriptpatchsettings
      with:
        account_id: tools.account_id
        script_name: tools.script_name
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apis-io-engineering-platform-fetch-usage
      description: APIs.io Engineering Platform Fetch Usage Model
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloudflare-worker-script.workerscriptfetchusagemodel
      with:
        script_name: tools.script_name
        account_id: tools.account_id
      outputParameters:
      - type: object
        mapping: $.
    - name: apis-io-engineering-platform-update-usage
      description: APIs.io Engineering Platform Update Usage Model
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: cloudflare-worker-script.workerscriptupdateusagemodel
      with:
        script_name: tools.script_name
        account_id: tools.account_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.