Akamai · Capability

Akamai: EdgeWorkers API — Revisions

Akamai: EdgeWorkers API — Revisions. 9 operations. Lead operation: Akamai List Revisions. Self-contained Naftiko capability covering one Akamai business surface.

Run with Naftiko AkamaiRevisions

What You Can Do

GET
Getrevisions — Akamai List Revisions
/v1/ids/{edgeworkerid}/revisions
POST
Postrevisionactivations — Akamai Activate a Fallback Revision
/v1/ids/{edgeworkerid}/revisions/activations
GET
Getrevisionactivations — Akamai List Revision Activations
/v1/ids/{edgeworkerid}/revisions/activations
GET
Getrevision — Akamai Get a Revision
/v1/ids/{edgeworkerid}/revisions/{revisionid}
GET
Getrevisionbom — Akamai Get a Revision BOM
/v1/ids/{edgeworkerid}/revisions/{revisionid}/bom
POST
Postrevisioncompare — Akamai Compare Revisions
/v1/ids/{edgeworkerid}/revisions/{revisionid}/compare
GET
Getrevisioncontent — Akamai Download the Combined Code Bundle
/v1/ids/{edgeworkerid}/revisions/{revisionid}/content
POST
Postrevisionpin — Akamai Pin an Active Revision
/v1/ids/{edgeworkerid}/revisions/{revisionid}/pin
POST
Postrevisionunpin — Akamai Unpin an Active Revision
/v1/ids/{edgeworkerid}/revisions/{revisionid}/unpin

MCP Tools

akamai-list-revisions

Akamai List Revisions

read-only idempotent
akamai-activate-fallback-revision

Akamai Activate a Fallback Revision

akamai-list-revision-activations

Akamai List Revision Activations

read-only idempotent
akamai-get-revision

Akamai Get a Revision

read-only idempotent
akamai-get-revision-bom

Akamai Get a Revision BOM

read-only idempotent
akamai-compare-revisions

Akamai Compare Revisions

akamai-download-combined-code-bundle

Akamai Download the Combined Code Bundle

read-only idempotent
akamai-pin-active-revision

Akamai Pin an Active Revision

akamai-unpin-active-revision

Akamai Unpin an Active Revision

Capability Spec

edgeworkers-revisions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: 'Akamai: EdgeWorkers API — Revisions'
  description: 'Akamai: EdgeWorkers API — Revisions. 9 operations. Lead operation: Akamai List Revisions. Self-contained Naftiko
    capability covering one Akamai business surface.'
  tags:
  - Akamai
  - Revisions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AKAMAI_API_KEY: AKAMAI_API_KEY
capability:
  consumes:
  - type: http
    namespace: edgeworkers-revisions
    baseUri: https://{hostname}/edgeworkers/v1
    description: 'Akamai: EdgeWorkers API — Revisions business capability. Self-contained, no shared references.'
    resources:
    - name: ids-edgeWorkerId-revisions
      path: /ids/{edgeWorkerId}/revisions
      operations:
      - name: getrevisions
        method: GET
        description: Akamai List Revisions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: version
          in: query
          type: string
          description: Unique identifier for a specific EdgeWorker version.
        - name: activationId
          in: query
          type: integer
          description: Filters results to a specific activation.
        - name: network
          in: query
          type: string
          description: __Enum__ The network on which to use this authentication token, either `STAGING` or `PRODUCTION`. If
            not specified, the token is created for the network where t
        - name: pinnedOnly
          in: query
          type: boolean
          description: When enabled, limits results to show only currently or previously pinned revisions.
        - name: currentlyPinned
          in: query
          type: boolean
          description: When enabled, limits results to show only revisions that are currently pinned.
        - name: accountSwitchKey
          in: query
          type: string
          description: For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-w
    - name: ids-edgeWorkerId-revisions-activations
      path: /ids/{edgeWorkerId}/revisions/activations
      operations:
      - name: postrevisionactivations
        method: POST
        description: Akamai Activate a Fallback Revision
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountSwitchKey
          in: query
          type: string
          description: For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-w
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: getrevisionactivations
        method: GET
        description: Akamai List Revision Activations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: version
          in: query
          type: string
          description: Unique identifier for a specific EdgeWorker version.
        - name: activationId
          in: query
          type: integer
          description: Filters results to a specific activation.
        - name: network
          in: query
          type: string
          description: __Enum__ The network on which to use this authentication token, either `STAGING` or `PRODUCTION`. If
            not specified, the token is created for the network where t
        - name: accountSwitchKey
          in: query
          type: string
          description: For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-w
    - name: ids-edgeWorkerId-revisions-revisionId
      path: /ids/{edgeWorkerId}/revisions/{revisionId}
      operations:
      - name: getrevision
        method: GET
        description: Akamai Get a Revision
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountSwitchKey
          in: query
          type: string
          description: For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-w
    - name: ids-edgeWorkerId-revisions-revisionId-bom
      path: /ids/{edgeWorkerId}/revisions/{revisionId}/bom
      operations:
      - name: getrevisionbom
        method: GET
        description: Akamai Get a Revision BOM
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: includeActiveVersions
          in: query
          type: boolean
          description: When enabled, limits results to show only active versions.
        - name: includePinnedRevisions
          in: query
          type: boolean
          description: When enabled, limits results to show only the pinned revisions when the BOM was created.
        - name: accountSwitchKey
          in: query
          type: string
          description: For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-w
    - name: ids-edgeWorkerId-revisions-revisionId-compare
      path: /ids/{edgeWorkerId}/revisions/{revisionId}/compare
      operations:
      - name: postrevisioncompare
        method: POST
        description: Akamai Compare Revisions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountSwitchKey
          in: query
          type: string
          description: For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-w
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: ids-edgeWorkerId-revisions-revisionId-content
      path: /ids/{edgeWorkerId}/revisions/{revisionId}/content
      operations:
      - name: getrevisioncontent
        method: GET
        description: Akamai Download the Combined Code Bundle
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountSwitchKey
          in: query
          type: string
          description: For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-w
    - name: ids-edgeWorkerId-revisions-revisionId-pin
      path: /ids/{edgeWorkerId}/revisions/{revisionId}/pin
      operations:
      - name: postrevisionpin
        method: POST
        description: Akamai Pin an Active Revision
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountSwitchKey
          in: query
          type: string
          description: For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-w
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: ids-edgeWorkerId-revisions-revisionId-unpin
      path: /ids/{edgeWorkerId}/revisions/{revisionId}/unpin
      operations:
      - name: postrevisionunpin
        method: POST
        description: Akamai Unpin an Active Revision
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountSwitchKey
          in: query
          type: string
          description: For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-w
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
  exposes:
  - type: rest
    namespace: edgeworkers-revisions-rest
    port: 8080
    description: 'REST adapter for Akamai: EdgeWorkers API — Revisions. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.'
    resources:
    - path: /v1/ids/{edgeworkerid}/revisions
      name: ids-edgeworkerid-revisions
      description: REST surface for ids-edgeWorkerId-revisions.
      operations:
      - method: GET
        name: getrevisions
        description: Akamai List Revisions
        call: edgeworkers-revisions.getrevisions
        with:
          version: rest.version
          activationId: rest.activationId
          network: rest.network
          pinnedOnly: rest.pinnedOnly
          currentlyPinned: rest.currentlyPinned
          accountSwitchKey: rest.accountSwitchKey
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/ids/{edgeworkerid}/revisions/activations
      name: ids-edgeworkerid-revisions-activations
      description: REST surface for ids-edgeWorkerId-revisions-activations.
      operations:
      - method: POST
        name: postrevisionactivations
        description: Akamai Activate a Fallback Revision
        call: edgeworkers-revisions.postrevisionactivations
        with:
          accountSwitchKey: rest.accountSwitchKey
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getrevisionactivations
        description: Akamai List Revision Activations
        call: edgeworkers-revisions.getrevisionactivations
        with:
          version: rest.version
          activationId: rest.activationId
          network: rest.network
          accountSwitchKey: rest.accountSwitchKey
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/ids/{edgeworkerid}/revisions/{revisionid}
      name: ids-edgeworkerid-revisions-revisionid
      description: REST surface for ids-edgeWorkerId-revisions-revisionId.
      operations:
      - method: GET
        name: getrevision
        description: Akamai Get a Revision
        call: edgeworkers-revisions.getrevision
        with:
          accountSwitchKey: rest.accountSwitchKey
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/ids/{edgeworkerid}/revisions/{revisionid}/bom
      name: ids-edgeworkerid-revisions-revisionid-bom
      description: REST surface for ids-edgeWorkerId-revisions-revisionId-bom.
      operations:
      - method: GET
        name: getrevisionbom
        description: Akamai Get a Revision BOM
        call: edgeworkers-revisions.getrevisionbom
        with:
          includeActiveVersions: rest.includeActiveVersions
          includePinnedRevisions: rest.includePinnedRevisions
          accountSwitchKey: rest.accountSwitchKey
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/ids/{edgeworkerid}/revisions/{revisionid}/compare
      name: ids-edgeworkerid-revisions-revisionid-compare
      description: REST surface for ids-edgeWorkerId-revisions-revisionId-compare.
      operations:
      - method: POST
        name: postrevisioncompare
        description: Akamai Compare Revisions
        call: edgeworkers-revisions.postrevisioncompare
        with:
          accountSwitchKey: rest.accountSwitchKey
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/ids/{edgeworkerid}/revisions/{revisionid}/content
      name: ids-edgeworkerid-revisions-revisionid-content
      description: REST surface for ids-edgeWorkerId-revisions-revisionId-content.
      operations:
      - method: GET
        name: getrevisioncontent
        description: Akamai Download the Combined Code Bundle
        call: edgeworkers-revisions.getrevisioncontent
        with:
          accountSwitchKey: rest.accountSwitchKey
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/ids/{edgeworkerid}/revisions/{revisionid}/pin
      name: ids-edgeworkerid-revisions-revisionid-pin
      description: REST surface for ids-edgeWorkerId-revisions-revisionId-pin.
      operations:
      - method: POST
        name: postrevisionpin
        description: Akamai Pin an Active Revision
        call: edgeworkers-revisions.postrevisionpin
        with:
          accountSwitchKey: rest.accountSwitchKey
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/ids/{edgeworkerid}/revisions/{revisionid}/unpin
      name: ids-edgeworkerid-revisions-revisionid-unpin
      description: REST surface for ids-edgeWorkerId-revisions-revisionId-unpin.
      operations:
      - method: POST
        name: postrevisionunpin
        description: Akamai Unpin an Active Revision
        call: edgeworkers-revisions.postrevisionunpin
        with:
          accountSwitchKey: rest.accountSwitchKey
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: edgeworkers-revisions-mcp
    port: 9090
    transport: http
    description: 'MCP adapter for Akamai: EdgeWorkers API — Revisions. One tool per consumed operation, routed inline through
      this capability''s consumes block.'
    tools:
    - name: akamai-list-revisions
      description: Akamai List Revisions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: edgeworkers-revisions.getrevisions
      with:
        version: tools.version
        activationId: tools.activationId
        network: tools.network
        pinnedOnly: tools.pinnedOnly
        currentlyPinned: tools.currentlyPinned
        accountSwitchKey: tools.accountSwitchKey
      outputParameters:
      - type: object
        mapping: $.
    - name: akamai-activate-fallback-revision
      description: Akamai Activate a Fallback Revision
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: edgeworkers-revisions.postrevisionactivations
      with:
        accountSwitchKey: tools.accountSwitchKey
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: akamai-list-revision-activations
      description: Akamai List Revision Activations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: edgeworkers-revisions.getrevisionactivations
      with:
        version: tools.version
        activationId: tools.activationId
        network: tools.network
        accountSwitchKey: tools.accountSwitchKey
      outputParameters:
      - type: object
        mapping: $.
    - name: akamai-get-revision
      description: Akamai Get a Revision
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: edgeworkers-revisions.getrevision
      with:
        accountSwitchKey: tools.accountSwitchKey
      outputParameters:
      - type: object
        mapping: $.
    - name: akamai-get-revision-bom
      description: Akamai Get a Revision BOM
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: edgeworkers-revisions.getrevisionbom
      with:
        includeActiveVersions: tools.includeActiveVersions
        includePinnedRevisions: tools.includePinnedRevisions
        accountSwitchKey: tools.accountSwitchKey
      outputParameters:
      - type: object
        mapping: $.
    - name: akamai-compare-revisions
      description: Akamai Compare Revisions
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: edgeworkers-revisions.postrevisioncompare
      with:
        accountSwitchKey: tools.accountSwitchKey
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: akamai-download-combined-code-bundle
      description: Akamai Download the Combined Code Bundle
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: edgeworkers-revisions.getrevisioncontent
      with:
        accountSwitchKey: tools.accountSwitchKey
      outputParameters:
      - type: object
        mapping: $.
    - name: akamai-pin-active-revision
      description: Akamai Pin an Active Revision
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: edgeworkers-revisions.postrevisionpin
      with:
        accountSwitchKey: tools.accountSwitchKey
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: akamai-unpin-active-revision
      description: Akamai Unpin an Active Revision
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: edgeworkers-revisions.postrevisionunpin
      with:
        accountSwitchKey: tools.accountSwitchKey
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.