Workers
workers
Domain types
A single set of migrations to apply.
JSON encoded metadata about the uploaded parts and Worker configuration.
Account Settings
workers.account_settings
Methods
Fetches Worker account settings for an account.
Creates Worker account settings for an account.
Assets
workers.assets
Methods
Upload assets ahead of creating a Worker version. To learn more about the direct uploads of assets, see https://developers.cloudflare.com/workers/static-assets/direct-upload/.
Domains
workers.domains
Methods
Detaches a Worker from a zone and hostname.
Gets a Worker domain.
Lists all Worker Domains for an account.
Attaches a Worker to a zone and hostname.
Domain types
Observability
workers.observability
workers.observability.telemetry
Methods
List all the keys in your telemetry events.
Runs a temporary or saved query
List unique values found in your events
Routes
workers.routes
Methods
Creates a route that maps a URL pattern to a Worker.
Deletes a route.
Returns information about a route, including URL pattern and Worker.
Returns routes for a zone.
Updates the URL pattern or Worker associated with a route.
Scripts
workers.scripts
Methods
Delete your worker. This call has no response body on a successful delete.
Fetch raw script content for your worker. Note this is the original script content, not JSON encoded.
Fetch a list of uploaded workers.
Upload a worker module. You can find more about the multipart metadata on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/.
Domain types
Methods
Start uploading a collection of assets for use in a Worker version. To learn more about the direct uploads of assets, see https://developers.cloudflare.com/workers/static-assets/direct-upload/.
Methods
Fetch script content only.
Put script content without touching config or metadata.
Methods
Deployments configure how Worker Versions are deployed to traffic. A deployment can consist of one or two versions of a Worker.
List of Worker Deployments. The first deployment in the list is the latest deployment actively serving traffic.
Domain types
Methods
Fetches Cron Triggers for a Worker.
Updates Cron Triggers for a Worker.
Methods
Patch metadata or config, such as bindings or usage model.
Get metadata and config, such as bindings or usage model.
Methods
Remove a secret from a script.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Workers Scripts Write
Identifier.
Name of the script, used in URLs and route configuration.
A JavaScript variable name for the secret binding.
Whether the API call was successful.
Get a given secret binding (value omitted) on a script.
List secrets bound to a script.
Add a secret to a script.
Methods
Patch script-level settings when using Worker Versions. Including but not limited to Logpush and Tail Consumers.
Get script-level settings when using Worker Versions. Includes Logpush and Tail Consumers.
Methods
Enable or disable the Worker on the workers.dev subdomain.
Disable all workers.dev subdomains for a Worker.
Get if the Worker is available on the workers.dev subdomain.
Methods
Starts a tail that receives logs and exception from a Worker.
Deletes a tail from a Worker.
Get list of tails currently deployed on a Worker.
Domain types
A reference to a script that will consume logs from the attached Worker.
Methods
Upload a Worker Version without deploying to Cloudflare's network. You can find more about the multipart metadata on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/.
Get Version Detail
List of Worker Versions. The first version in the list is the latest version.
Subdomains
workers.subdomains
Methods
Returns a Workers subdomain for an account.
Creates a Workers subdomain for an account.