---
updatedAt: 2026-08-10T14:18:56.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/edgeworkers/llms.txt
---

# Download an EdgeWorkers code bundle

Download the bundle containing the code the EdgeWorker executes.

# OpenAPI definition

```json
{
  "externalDocs": {
    "description": "See documentation for Akamai's EdgeWorkers API",
    "url": "https://techdocs.akamai.com/edgeworkers/reference"
  },
  "info": {
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "EdgeWorker IDs",
    "version": "v1"
  },
  "openapi": "3.0.0",
  "paths": {
    "/ids/{edgeWorkerId}/versions/{version}/content": {
      "get": {
        "description": "Download the bundle containing the code the EdgeWorker executes.",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's EdgeWorkers API",
          "url": "https://techdocs.akamai.com/edgeworkers/reference/get-version-content"
        },
        "operationId": "get-version-content",
        "parameters": [
          {
            "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-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).",
            "in": "query",
            "name": "accountSwitchKey",
            "required": false,
            "schema": {
              "example": "1-5C0YLB:1-8BYUX",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/gzip": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              }
            },
            "description": "Downloaded EdgeWorkers code bundle."
          }
        },
        "summary": "Download an EdgeWorkers code bundle",
        "tags": [
          "Versions"
        ]
      },
      "parameters": [
        {
          "description": "Unique identifier for an EdgeWorker version.",
          "in": "path",
          "name": "version",
          "required": true,
          "schema": {
            "example": 5,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/version-path.yaml"
          }
        },
        {
          "description": "Unique identifier for an EdgeWorker.",
          "in": "path",
          "name": "edgeWorkerId",
          "required": true,
          "schema": {
            "example": 42,
            "minimum": 1,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/edge-worker-id-path.yaml"
          }
        }
      ]
    }
  },
  "servers": [
    {
      "url": "https://{hostname}/edgeworkers/v1"
    }
  ],
  "tags": [
    {
      "description": "Manage your EdgeWorkers versions.",
      "name": "Versions"
    }
  ],
  "x-akamai": {
    "auth-type": "EDGE_GRID",
    "file-path": "ids.yaml"
  },
  "x-readme": {
    "explorer-enabled": false,
    "samples-languages": [
      "curl",
      "python",
      "node"
    ]
  }
}
```

# Sibling pages

* [Create a new version](https://techdocs.akamai.com/edgeworkers/reference/post-versions.md)
* [List versions](https://techdocs.akamai.com/edgeworkers/reference/get-versions.md)
* [Get version details](https://techdocs.akamai.com/edgeworkers/reference/get-version.md)
* [Delete version](https://techdocs.akamai.com/edgeworkers/reference/delete-version.md)