Fetch raw script content for your worker. Note this is the original script content, not JSON encoded.
/zones/{zone_identifier}/workers/script
get
Worker Script (Deprecated)
worker-script-(-deprecated)-download-worker
null null [
{
"in": "path",
"name": "zone_identifier",
"required": true,
"schema": {
"description": "Identifier",
"example": "023e105f4ecef8ad9ca31a8372d0c353",
"maxLength": 32,
"readOnly": true,
"type": "string"
}
}
] null {
"200": {
"content": {
"undefined": {
"schema": {
"example": "addEventListener('fetch', event => { event.respondWith(fetch(event.request)) })"
}
}
},
"description": "Download Worker response"
},
"4XX": {
"content": {
"undefined": {
"schema": {
"example": "addEventListener('fetch', event => { event.respondWith(fetch(event.request)) })"
}
}
},
"description": "Download Worker response failure"
}
} [
{
"api_token": []
},
{
"api_email": [],
"api_key": []
}
]