Fetch raw script content for your worker. Note this is the original script content, not JSON encoded.
/accounts/{account_identifier}/workers/scripts/{script_name}
get
Worker Script
worker-script-download-worker
null {
"enum": [
"com.cloudflare.edge.worker.script.read"
]
} [
{
"in": "path",
"name": "script_name",
"required": true,
"schema": {
"description": "Name of the script, used in URLs and route configuration.",
"example": "this-is_my_script-01",
"pattern": "^[a-z0-9_][a-z0-9-_]*$",
"type": "string"
}
},
{
"in": "path",
"name": "account_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": []
}
]