Cloudflare · Schema

Cloudflare Worker Script

A Worker script object from the Cloudflare API, representing serverless code deployed to Cloudflare's global edge network with associated configuration, bindings, and deployment metadata.

AI GatewayAPI GatewayArtificial IntelligenceCDNCloudContainersDDoS ProtectionDNSEdgeEdge ComputingObject StoragePlatformReal-Time CommunicationSecurityServerlessWeb Performance

Properties

Name Type Description
id string The unique identifier of the Worker script, typically the script name.
tag string A unique tag for the Worker script used for caching and versioning.
etag string The entity tag for cache validation.
handlers array List of event handlers the Worker implements (e.g., fetch, scheduled, queue).
named_handlers array Named handlers for Durable Objects and other named event handling.
compatibility_date string The compatibility date for the Worker runtime.
compatibility_flags array Compatibility flags enabled for the Worker.
usage_model string The usage model for billing.
bindings array Environment bindings configured for the Worker.
routes array Routes that trigger this Worker.
logpush boolean Whether Logpush is enabled for the Worker.
placement object Smart placement configuration.
tail_consumers array Workers that receive tail events from this Worker.
created_on string When the Worker script was created.
modified_on string When the Worker script was last modified.
View JSON Schema on GitHub