WorkerWorkers for Platforms

Worker Details (Workers for Platforms)

GET
Fetch information about a script uploaded to a Workers for Platforms namespace.

Path parameters

account_identifierstringRequired
Identifier
dispatch_namespacestringRequired
Name of the Workers for Platforms dispatch namespace.
script_namestringRequired
Name of the script, used in URLs and route configuration.

Response

This endpoint returns an object
created_on
datetimeOptional
When the script was created.
dispatch_namespace
stringOptional
Name of the Workers for Platforms dispatch namespace.
modified_on
datetimeOptional
When the script was last modified.
script
objectOptional
GET
1curl https://api.cloudflare.com/client/v4/accounts/023e105f4ecef8ad9ca31a8372d0c353/workers/dispatch/namespaces/my-dispatch-namespace/scripts/this-is_my_script-01 \
2 -H "Authorization: Bearer <token>"
200Retrieved
1{
2 "created_on": "2017-01-01T00:00:00Z",
3 "dispatch_namespace": "my-dispatch-namespace",
4 "modified_on": "2017-01-01T00:00:00Z",
5 "script": {
6 "created_on": "2017-01-01T00:00:00Z",
7 "etag": "ea95132c15732412d22c1476fa83f27a",
8 "id": "my-workers-script",
9 "logpush": false,
10 "modified_on": "2017-01-01T00:00:00Z",
11 "pipeline_hash": "ea95132c15732412d22c1476fa83f27a",
12 "placement_mode": "smart",
13 "tail_consumers": [
14 {
15 "service": "my-log-consumer",
16 "environment": "production",
17 "namespace": "my-namespace"
18 }
19 ],
20 "usage_model": "unbound"
21 }
22}