Workers
workers
Domain types
Account Settings
workers.account_settings
Methods
Fetches Worker account settings for an account.
Creates Worker account settings for an account.
Assets
workers.assets
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
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/.
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.
Rollback to provided deployment based on deployment ID. Request body will only parse a "message" part. You can learn more about deployments here.
Whether the API call was successful
Domain types
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.
Domain types
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.
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
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.