> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://akamai.ferndocs.com/edge-workers/api/edge-workers-api/revisions/get-revisions/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://akamai.ferndocs.com/_mcp/server. # List revisions GET https://{hostname}/edgeworkers/v1/ids/{edgeWorkerId}/revisions __Beta__ View the list of revisions for an existing EdgeWorker based on ID. You can limit the results to a specific version or activation. To learn more about Flexible composition refer to the [EdgeWorkers guide](https://techdocs.akamai.com/edgeworkers/docs/flexible-composition). Reference: https://akamai.ferndocs.com/edge-workers/api/edge-workers-api/revisions/get-revisions ## Request ### Path parameters - `edgeWorkerId` (string, required) ### Query parameters - `version` (string, optional) — Unique identifier for a specific EdgeWorker version. - `activationId` (integer, optional) — Filters results to a specific activation. - `network` (enum, optional) — __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 the last property version activation occurred. - Allowed values: `STAGING`, `PRODUCTION` - `pinnedOnly` (boolean, optional) — When enabled, limits results to show only currently or previously pinned revisions. - `currentlyPinned` (boolean, optional) — When enabled, limits results to show only revisions that are currently pinned. - `accountSwitchKey` (string, optional) — 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). ## Response ### 200 This section describes a list of EdgeWorker revisions. - `revisions` (list of IdsEdgeWorkerIdRevisionsGetResponsesContentApplicationJsonSchemaRevisionsItems, required) — List of EdgeWorker revisions. ## Types ### IdsEdgeWorkerIdRevisionsGetResponsesContentApplicationJsonSchemaRevisionsItems - `accountId` (string, required) — Identifier for the account under which the EdgeWorker was created. - `activationId` (integer, required) — Unique identifier of the activation. - `createdTime` (datetime, required) — ISO 8601 timestamp indicating when the revision was created. - `edgeWorkerId` (integer, required) — Unique identifier of the EdgeWorker. - `lastModifiedTime` (datetime, required) — ISO 8601 timestamp indicating when the revision was most recently modified. - `network` (enum, required) — The network on which the revision is activated, either `PRODUCTION` or `STAGING`. - Allowed values: `STAGING`, `PRODUCTION` - `revisionActivationStatus` (enum, required) — The activation status of the EdgeWorker revision, either `PRESUBMIT`, `PENDING`, `IN_PROGRESS`, `COMPLETE`, `CANCELLED`, `ABORTED`, `ERROR`, `DELETED_BY_AKAMAI`, `EXPIRED`, or `INVALID_COMBINED_BUNDLE`. - Allowed values: `PRESUBMIT`, `PENDING`, `IN_PROGRESS`, `ABORTED`, `ERROR`, `COMPLETE`, `DELETED_BY_AKAMAI`, `EXPIRED`, `CANCELLED`, `INVALID_COMBINED_BUNDLE` - `revisionId` (string, required) — Unique identifier of the revision. - `version` (string, required) — Unique identifier of the version. - `note` (string, optional) — Note to explain why you're reactivating the revision. - `revisionActivatedBy` (string, optional) — Username of the person who reactivated the revision. - `revisionActivatedTime` (datetime, optional) — ISO 8601 timestamp indicating when the revision was most recently reactivated. - `validation` (IdsEdgeWorkerIdRevisionsGetResponsesContentApplicationJsonSchemaRevisionsItemsValidation, optional) — Validation result included if the revision activation status is `INVALID_COMBINED_BUNDLE`. ### IdsEdgeWorkerIdRevisionsGetResponsesContentApplicationJsonSchemaRevisionsItemsValidation Validation result included if the revision activation status is `INVALID_COMBINED_BUNDLE`. - `errors` (list of IdsEdgeWorkerIdRevisionsGetResponsesContentApplicationJsonSchemaRevisionsItemsValidationErrorsItems, required) — List of validation errors. ### IdsEdgeWorkerIdRevisionsGetResponsesContentApplicationJsonSchemaRevisionsItemsValidationErrorsItems Provides details for an EdgeWorker code bundle validation error. - `message` (string, required) — Message containing more details about the validation error. - `type` (enum, required) — The type of the validation error. See [Validation error types](https://techdocs.akamai.com/edgeworkers/reference/validation-types). - Allowed values: `ACCESS_TOKEN_EXPIRED`, `ACCESS_TOKEN_INVALID`, `ACCESS_TOKEN_MISSING`, `EDGEKV_FILE_MISSING`, `EDGEKV_TOKENS_FILE_MISSING`, `EMPTY_TARBALL`, `INVALID_EDGEKV_IMPORTS`, `INVALID_GZIP_FORMAT`, `INVALID_MANIFEST`, `INVALID_TAR_ARCHIVE`, `MAX_COMPRESSED_SIZE_EXCEEDED`, `MAX_UNCOMPRESSED_SIZE_EXCEEDED`, `MISSING_MANDATORY_FILES`, `STATIC_VALIDATION_FAILED`, `DEPENDENCY_NOT_FOUND`, `MISSING_MEGABUNDLE_JSON_FILE`, `MISSING_DEPENDENCIES_DIRECTORY`, `INVALID_MEGABUNDLE_JSON_FILE` ## Examples **Response** ```json { "revisions": [ { "accountId": "A-CCT3456", "activationId": 1, "createdTime": "2023-08-10T15:32:22Z", "edgeWorkerId": 42, "lastModifiedTime": "2023-08-10T15:41:20Z", "network": "PRODUCTION", "revisionActivationStatus": "COMPLETE", "revisionId": "1-2", "version": "0.7" }, { "accountId": "A-CCT5678", "activationId": 1, "createdTime": "2023-08-10T15:22:45Z", "edgeWorkerId": 42, "lastModifiedTime": "2023-08-10T15:27:01Z", "network": "PRODUCTION", "revisionActivationStatus": "COMPLETE", "revisionId": "1-1", "version": "0.7" } ] } ``` **SDK Code** ```python import requests url = "https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/revisions" querystring = {"version":"{{version}}","activationId":"3","network":"STAGING","pinnedOnly":"true","currentlyPinned":"true","accountSwitchKey":"{{accountSwitchKey}}"} response = requests.get(url, params=querystring) print(response.json()) ``` ```javascript const url = 'https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/revisions?version=%7B%7Bversion%7D%7D&activationId=3&network=STAGING&pinnedOnly=true¤tlyPinned=true&accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D'; const options = {method: 'GET'}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/revisions?version=%7B%7Bversion%7D%7D&activationId=3&network=STAGING&pinnedOnly=true¤tlyPinned=true&accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/revisions?version=%7B%7Bversion%7D%7D&activationId=3&network=STAGING&pinnedOnly=true¤tlyPinned=true&accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/revisions?version=%7B%7Bversion%7D%7D&activationId=3&network=STAGING&pinnedOnly=true¤tlyPinned=true&accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D") .asString(); ``` ```php request('GET', 'https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/revisions?version=%7B%7Bversion%7D%7D&activationId=3&network=STAGING&pinnedOnly=true¤tlyPinned=true&accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D'); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/revisions?version=%7B%7Bversion%7D%7D&activationId=3&network=STAGING&pinnedOnly=true¤tlyPinned=true&accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D"); var request = new RestRequest(Method.GET); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let request = NSMutableURLRequest(url: NSURL(string: "https://{hostname}/edgeworkers/v1/ids/edgeWorkerId/revisions?version=%7B%7Bversion%7D%7D&activationId=3&network=STAGING&pinnedOnly=true¤tlyPinned=true&accountSwitchKey=%7B%7BaccountSwitchKey%7D%7D")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```