Workers
ModelsExpand Collapse
MigrationStep object { deleted_classes, new_classes, new_sqlite_classes, 2 more }
A list of classes to delete Durable Object namespaces from.
A list of classes to create Durable Object namespaces with SQLite from.
SingleStepMigration object { deleted_classes, new_classes, new_sqlite_classes, 4 more } A single set of migrations to apply.
A single set of migrations to apply.
A list of classes to delete Durable Object namespaces from.
A list of classes to create Durable Object namespaces with SQLite from.
Tag used to verify against the latest migration tag for this Worker. If they don’t match, the upload is rejected.
WorkerMetadata object { body_part, main_module } JSON-encoded metadata about the uploaded parts and Worker configuration.
JSON-encoded metadata about the uploaded parts and Worker configuration.
WorkersBeta
WorkersBetaWorkers
List Workers
Get Worker
Create Worker
Update Worker
Edit Worker
Delete Worker
ModelsExpand Collapse
Worker object { id, created_on, logpush, 8 more }
observability: object { enabled, head_sampling_rate, logs, traces } Observability settings for the Worker.
Observability settings for the Worker.
The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
logs: optional object { destinations, enabled, head_sampling_rate, 2 more } Log settings for the Worker.
Log settings for the Worker.
Whether invocation logs are enabled for the Worker.
references: object { dispatch_namespace_outbounds, domains, durable_objects, 2 more } Other resources that reference the Worker and depend on it existing.
Other resources that reference the Worker and depend on it existing.
dispatch_namespace_outbounds: array of object { namespace_id, namespace_name, worker_id, worker_name } Other Workers that reference the Worker as an outbound for a dispatch namespace.
Other Workers that reference the Worker as an outbound for a dispatch namespace.
domains: array of object { id, certificate_id, hostname, 2 more } Custom domains connected to the Worker.
Custom domains connected to the Worker.
durable_objects: array of object { namespace_id, namespace_name, worker_id, worker_name } Other Workers that reference Durable Object classes implemented by the Worker.
Other Workers that reference Durable Object classes implemented by the Worker.
queues: array of object { queue_consumer_id, queue_id, queue_name } Queues that send messages to the Worker.
Queues that send messages to the Worker.
workers: array of object { id, name } Other Workers that reference the Worker using service bindings.
Other Workers that reference the Worker using service bindings.
subdomain: object { enabled, previews_enabled } Subdomain settings for the Worker.
Subdomain settings for the Worker.
Whether preview URLs are enabled for the Worker.
WorkersBetaWorkersVersions
List Versions
Get Version
Create Version
Delete Version
ModelsExpand Collapse
Version object { id, created_on, number, 16 more }
All routable URLs that always point to this version. Does not include alias URLs, since aliases can be updated to point to a different version.
annotations: optional object { "workers/message", "workers/tag", "workers/triggered_by" } Metadata about the version.
Metadata about the version.
assets: optional object { config, jwt } Configuration for assets within a Worker.
_headers and
_redirects files should be
included as modules named _headers and _redirects with content type text/plain.
Configuration for assets within a Worker.
_headers and
_redirects files should be
included as modules named _headers and _redirects with content type text/plain.
config: optional object { html_handling, not_found_handling, run_worker_first } Configuration for assets within a Worker.
Configuration for assets within a Worker.
html_handling: optional "auto-trailing-slash" or "force-trailing-slash" or "drop-trailing-slash" or "none"Determines the redirects and rewrites of requests for HTML content.
Determines the redirects and rewrites of requests for HTML content.
not_found_handling: optional "none" or "404-page" or "single-page-application"Determines the response when a request does not match a static asset, and there is no Worker script.
Determines the response when a request does not match a static asset, and there is no Worker script.
run_worker_first: optional array of string or booleanContains a list path rules to control routing to either the Worker or assets. Glob (*) and negative (!) rules are supported. Rules must start with either ’/’ or ’!/’. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.
Contains a list path rules to control routing to either the Worker or assets. Glob (*) and negative (!) rules are supported. Rules must start with either ’/’ or ’!/’. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.
bindings: optional array of object { name, type } or object { instance_name, name, type, namespace } or object { name, namespace, type } or 32 moreList of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
AISearch object { instance_name, name, type, namespace }
AISearchNamespace object { name, namespace, type }
DispatchNamespace object { name, namespace, type, outbound }
Inherit object { name, type, old_name, version_id }
Ratelimit object { name, namespace_id, simple, type }
R2Bucket object { bucket_name, name, type, jurisdiction }
jurisdiction: optional "eu" or "fedramp" or "fedramp-high"The jurisdiction of the R2 bucket.
The jurisdiction of the R2 bucket.
SecretKey object { algorithm, format, name, 4 more }
Algorithm-specific key parameters. Learn more.
format: "raw" or "pkcs8" or "spki" or "jwk"Data format of the key. Learn more.
Data format of the key. Learn more.
usages: array of "encrypt" or "decrypt" or "sign" or 5 moreAllowed operations with the key. Learn more.
Allowed operations with the key. Learn more.
Base64-encoded key data. Required if format is “raw”, “pkcs8”, or “spki”.
Key data in JSON Web Key format. Required if format is “jwk”.
Workflow object { name, type, workflow_name, 2 more }
Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a compatibility_date.
containers: optional array of object { class_name } List of containers attached to a Worker. Containers can only be attached to Durable Object classes of this Worker script.
List of containers attached to a Worker. Containers can only be attached to Durable Object classes of this Worker script.
The name of the main module in the modules array (e.g. the name of the module that exports a fetch handler).
Durable Object migration tag. Set when the version is deployed. Omitted if the version has not been deployed or the Worker does not use Durable Objects.
migrations: optional SingleStepMigration { deleted_classes, new_classes, new_sqlite_classes, 4 more } or object { new_tag, old_tag, steps } Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.
SingleStepMigration object { deleted_classes, new_classes, new_sqlite_classes, 4 more } A single set of migrations to apply.
A single set of migrations to apply.
A list of classes to delete Durable Object namespaces from.
A list of classes to create Durable Object namespaces with SQLite from.
Tag used to verify against the latest migration tag for this Worker. If they don’t match, the upload is rejected.
WorkersMultipleStepMigrations object { new_tag, old_tag, steps }
Tag used to verify against the latest migration tag for this Worker. If they don’t match, the upload is rejected.
Migrations to apply in order.
Migrations to apply in order.
A list of classes to delete Durable Object namespaces from.
A list of classes to create Durable Object namespaces with SQLite from.
modules: optional array of object { content_base64, content_type, name } Code, sourcemaps, and other content used at runtime.
This includes _headers and
_redirects files used to configure
Static Assets. _headers and _redirects files should be
included as modules named _headers and _redirects with content type text/plain.
Code, sourcemaps, and other content used at runtime.
This includes _headers and
_redirects files used to configure
Static Assets. _headers and _redirects files should be
included as modules named _headers and _redirects with content type text/plain.
placement: optional object { mode } or object { region } or object { hostname } or 5 moreConfiguration for Smart Placement. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.
Configuration for Smart Placement. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.
Mode object { mode }
Enables Smart Placement.
Time in milliseconds spent on Worker startup.
WorkersRoutes
List Routes
Get Route
Create Route
Update Route
Delete Route
ModelsExpand Collapse
RouteListResponse object { id, pattern, script }
Pattern to match incoming requests against. Learn more.
RouteGetResponse object { id, pattern, script }
Pattern to match incoming requests against. Learn more.
RouteCreateResponse object { id, pattern, script }
Pattern to match incoming requests against. Learn more.
RouteUpdateResponse object { id, pattern, script }
Pattern to match incoming requests against. Learn more.
WorkersAssets
WorkersAssetsUpload
Upload Assets
WorkersScripts
List Workers
Search Workers
Download Worker
Upload Worker Module
Delete Worker
ModelsExpand Collapse
Script object { id, compatibility_date, compatibility_flags, 18 more }
Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a compatibility_date.
The tag of the Durable Object migration that was most recently applied for this Worker.
named_handlers: optional array of object { handlers, name } Named exports, such as Durable Object class implementations and named entrypoints.
Named exports, such as Durable Object class implementations and named entrypoints.
observability: optional object { enabled, head_sampling_rate, logs, traces } Observability settings for the Worker.
Observability settings for the Worker.
The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
logs: optional object { enabled, invocation_logs, destinations, 2 more } Log settings for the Worker.
Log settings for the Worker.
Whether invocation logs are enabled for the Worker.
placement: optional object { mode, last_analyzed_at, status } or object { region, last_analyzed_at, status } or object { hostname, last_analyzed_at, status } or 5 moreConfiguration for Smart Placement. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.
Configuration for Smart Placement. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.
object { mode, last_analyzed_at, status }
Enables Smart Placement.
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
object { region, last_analyzed_at, status }
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
object { hostname, last_analyzed_at, status }
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
object { host, last_analyzed_at, status }
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
object { mode, region, last_analyzed_at, status }
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
object { hostname, mode, last_analyzed_at, status }
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
object { host, mode, last_analyzed_at, status }
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
object { mode, target, last_analyzed_at, status }
target: array of object { region } or object { hostname } or object { host } Array of placement targets (currently limited to single target).
Array of placement targets (currently limited to single target).
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
Deprecatedplacement_mode: optional "smart" or "targeted"Configuration for Smart Placement. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.
Configuration for Smart Placement. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.
Deprecatedplacement_status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
ScriptSetting object { logpush, observability, tags, tail_consumers }
observability: optional object { enabled, head_sampling_rate, logs, traces } Observability settings for the Worker.
Observability settings for the Worker.
The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
logs: optional object { enabled, invocation_logs, destinations, 2 more } Log settings for the Worker.
Log settings for the Worker.
Whether invocation logs are enabled for the Worker.
ScriptListResponse object { id, compatibility_date, compatibility_flags, 19 more }
Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a compatibility_date.
The tag of the Durable Object migration that was most recently applied for this Worker.
named_handlers: optional array of object { handlers, name } Named exports, such as Durable Object class implementations and named entrypoints.
Named exports, such as Durable Object class implementations and named entrypoints.
observability: optional object { enabled, head_sampling_rate, logs, traces } Observability settings for the Worker.
Observability settings for the Worker.
The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
logs: optional object { enabled, invocation_logs, destinations, 2 more } Log settings for the Worker.
Log settings for the Worker.
Whether invocation logs are enabled for the Worker.
placement: optional object { mode, last_analyzed_at, status } or object { region, last_analyzed_at, status } or object { hostname, last_analyzed_at, status } or 5 moreConfiguration for Smart Placement. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.
Configuration for Smart Placement. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.
object { mode, last_analyzed_at, status }
Enables Smart Placement.
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
object { region, last_analyzed_at, status }
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
object { hostname, last_analyzed_at, status }
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
object { host, last_analyzed_at, status }
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
object { mode, region, last_analyzed_at, status }
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
object { hostname, mode, last_analyzed_at, status }
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
object { host, mode, last_analyzed_at, status }
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
object { mode, target, last_analyzed_at, status }
target: array of object { region } or object { hostname } or object { host } Array of placement targets (currently limited to single target).
Array of placement targets (currently limited to single target).
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
Deprecatedplacement_status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"
routes: optional array of object { id, pattern, script } Routes associated with the Worker.
Routes associated with the Worker.
Pattern to match incoming requests against. Learn more.
ScriptUpdateResponse object { startup_time_ms, id, compatibility_date, 20 more }
Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a compatibility_date.
The tag of the Durable Object migration that was most recently applied for this Worker.
named_handlers: optional array of object { handlers, name } Named exports, such as Durable Object class implementations and named entrypoints.
Named exports, such as Durable Object class implementations and named entrypoints.
observability: optional object { enabled, head_sampling_rate, logs, traces } Observability settings for the Worker.
Observability settings for the Worker.
The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
logs: optional object { enabled, invocation_logs, destinations, 2 more } Log settings for the Worker.
Log settings for the Worker.
Whether invocation logs are enabled for the Worker.
placement: optional object { mode, last_analyzed_at, status } or object { region, last_analyzed_at, status } or object { hostname, last_analyzed_at, status } or 5 moreConfiguration for Smart Placement. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.
Configuration for Smart Placement. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.
object { mode, last_analyzed_at, status }
Enables Smart Placement.
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
object { region, last_analyzed_at, status }
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
object { hostname, last_analyzed_at, status }
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
object { host, last_analyzed_at, status }
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
object { mode, region, last_analyzed_at, status }
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
object { hostname, mode, last_analyzed_at, status }
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
object { host, mode, last_analyzed_at, status }
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
object { mode, target, last_analyzed_at, status }
target: array of object { region } or object { hostname } or object { host } Array of placement targets (currently limited to single target).
Array of placement targets (currently limited to single target).
The last time the script was analyzed for Smart Placement.
status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
Deprecatedplacement_status: optional "SUCCESS" or "UNSUPPORTED_APPLICATION" or "INSUFFICIENT_INVOCATIONS"
WorkersScriptsAssets
WorkersScriptsAssetsUpload
Create Assets Upload Session
WorkersScriptsSubdomain
Get Worker subdomain
Post Worker subdomain
Delete Worker subdomain
ModelsExpand Collapse
WorkersScriptsSchedules
Get Cron Triggers
Update Cron Triggers
ModelsExpand Collapse
WorkersScriptsTail
List Tails
Start Tail
Delete Tail
ModelsExpand Collapse
WorkersScriptsContent
Get script content
Put script content
WorkersScriptsSettings
Get Script Settings
Patch Script Settings
WorkersScriptsDeployments
List Deployments
Create Deployment
Get Deployment
Delete Deployment
ModelsExpand Collapse
WorkersScriptsVersions
List Versions
Get Version Detail
Upload Version
ModelsExpand Collapse
VersionGetResponse object { resources, id, metadata, number }
resources: object { bindings, script, script_runtime }
bindings: optional array of object { name, type } or object { instance_name, name, type, namespace } or object { name, namespace, type } or 32 moreList of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
AISearch object { instance_name, name, type, namespace }
AISearchNamespace object { name, namespace, type }
DispatchNamespace object { name, namespace, type, outbound }
Inherit object { name, type, old_name, version_id }
Ratelimit object { name, namespace_id, simple, type }
R2Bucket object { bucket_name, name, type, jurisdiction }
jurisdiction: optional "eu" or "fedramp" or "fedramp-high"The jurisdiction of the R2 bucket.
The jurisdiction of the R2 bucket.
SecretKey object { algorithm, format, name, 4 more }
Algorithm-specific key parameters. Learn more.
format: "raw" or "pkcs8" or "spki" or "jwk"Data format of the key. Learn more.
Data format of the key. Learn more.
usages: array of "encrypt" or "decrypt" or "sign" or 5 moreAllowed operations with the key. Learn more.
Allowed operations with the key. Learn more.
Base64-encoded key data. Required if format is “raw”, “pkcs8”, or “spki”.
Key data in JSON Web Key format. Required if format is “jwk”.
Workflow object { name, type, workflow_name, 2 more }
script: optional object { etag, handlers, last_deployed_from, named_handlers }
script_runtime: optional object { compatibility_date, compatibility_flags, limits, 2 more } Runtime configuration for the Worker.
Runtime configuration for the Worker.
Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
Flags that enable or disable certain features in the Workers runtime.
VersionCreateResponse object { resources, id, metadata, 2 more }
resources: object { bindings, script, script_runtime }
bindings: optional array of object { name, type } or object { instance_name, name, type, namespace } or object { name, namespace, type } or 32 moreList of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
AISearch object { instance_name, name, type, namespace }
AISearchNamespace object { name, namespace, type }
DispatchNamespace object { name, namespace, type, outbound }
Inherit object { name, type, old_name, version_id }
Ratelimit object { name, namespace_id, simple, type }
R2Bucket object { bucket_name, name, type, jurisdiction }
jurisdiction: optional "eu" or "fedramp" or "fedramp-high"The jurisdiction of the R2 bucket.
The jurisdiction of the R2 bucket.
SecretKey object { algorithm, format, name, 4 more }
Algorithm-specific key parameters. Learn more.
format: "raw" or "pkcs8" or "spki" or "jwk"Data format of the key. Learn more.
Data format of the key. Learn more.
usages: array of "encrypt" or "decrypt" or "sign" or 5 moreAllowed operations with the key. Learn more.
Allowed operations with the key. Learn more.
Base64-encoded key data. Required if format is “raw”, “pkcs8”, or “spki”.
Key data in JSON Web Key format. Required if format is “jwk”.
Workflow object { name, type, workflow_name, 2 more }
script: optional object { etag, handlers, last_deployed_from, named_handlers }
script_runtime: optional object { compatibility_date, compatibility_flags, limits, 2 more } Runtime configuration for the Worker.
Runtime configuration for the Worker.
Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
Flags that enable or disable certain features in the Workers runtime.
Time in milliseconds spent on Worker startup.
WorkersScriptsSecrets
List script secrets
Get secret binding
Add script secret
Delete script secret
ModelsExpand Collapse
SecretListResponse = object { name, text, type } or object { algorithm, format, name, 4 more } A secret value accessible through a binding.
A secret value accessible through a binding.
SecretKey object { algorithm, format, name, 4 more }
Algorithm-specific key parameters. Learn more.
format: "raw" or "pkcs8" or "spki" or "jwk"Data format of the key. Learn more.
Data format of the key. Learn more.
usages: array of "encrypt" or "decrypt" or "sign" or 5 moreAllowed operations with the key. Learn more.
Allowed operations with the key. Learn more.
Base64-encoded key data. Required if format is “raw”, “pkcs8”, or “spki”.
Key data in JSON Web Key format. Required if format is “jwk”.
SecretGetResponse = object { name, text, type } or object { algorithm, format, name, 4 more } A secret value accessible through a binding.
A secret value accessible through a binding.
SecretKey object { algorithm, format, name, 4 more }
Algorithm-specific key parameters. Learn more.
format: "raw" or "pkcs8" or "spki" or "jwk"Data format of the key. Learn more.
Data format of the key. Learn more.
usages: array of "encrypt" or "decrypt" or "sign" or 5 moreAllowed operations with the key. Learn more.
Allowed operations with the key. Learn more.
Base64-encoded key data. Required if format is “raw”, “pkcs8”, or “spki”.
Key data in JSON Web Key format. Required if format is “jwk”.
SecretUpdateResponse = object { name, text, type } or object { algorithm, format, name, 4 more } A secret value accessible through a binding.
A secret value accessible through a binding.
SecretKey object { algorithm, format, name, 4 more }
Algorithm-specific key parameters. Learn more.
format: "raw" or "pkcs8" or "spki" or "jwk"Data format of the key. Learn more.
Data format of the key. Learn more.
usages: array of "encrypt" or "decrypt" or "sign" or 5 moreAllowed operations with the key. Learn more.
Allowed operations with the key. Learn more.
Base64-encoded key data. Required if format is “raw”, “pkcs8”, or “spki”.
Key data in JSON Web Key format. Required if format is “jwk”.
WorkersScriptsScript And Version Settings
Get Settings
Patch Settings
ModelsExpand Collapse
ScriptAndVersionSettingGetResponse object { annotations, bindings, compatibility_date, 9 more }
annotations: optional object { "workers/message", "workers/tag", "workers/triggered_by" } Annotations for the Worker version. Annotations are not inherited across settings updates; omitting this field means the new version will have no annotations.
Annotations for the Worker version. Annotations are not inherited across settings updates; omitting this field means the new version will have no annotations.
bindings: optional array of object { name, type } or object { instance_name, name, type, namespace } or object { name, namespace, type } or 32 moreList of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
AISearch object { instance_name, name, type, namespace }
AISearchNamespace object { name, namespace, type }
DispatchNamespace object { name, namespace, type, outbound }
Inherit object { name, type, old_name, version_id }
Ratelimit object { name, namespace_id, simple, type }
R2Bucket object { bucket_name, name, type, jurisdiction }
jurisdiction: optional "eu" or "fedramp" or "fedramp-high"The jurisdiction of the R2 bucket.
The jurisdiction of the R2 bucket.
SecretKey object { algorithm, format, name, 4 more }
Algorithm-specific key parameters. Learn more.
format: "raw" or "pkcs8" or "spki" or "jwk"Data format of the key. Learn more.
Data format of the key. Learn more.
usages: array of "encrypt" or "decrypt" or "sign" or 5 moreAllowed operations with the key. Learn more.
Allowed operations with the key. Learn more.
Base64-encoded key data. Required if format is “raw”, “pkcs8”, or “spki”.
Key data in JSON Web Key format. Required if format is “jwk”.
Workflow object { name, type, workflow_name, 2 more }
Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a compatibility_date.
migrations: optional SingleStepMigration { deleted_classes, new_classes, new_sqlite_classes, 4 more } or object { new_tag, old_tag, steps } Migrations to apply for Durable Objects associated with this Worker.
Migrations to apply for Durable Objects associated with this Worker.
SingleStepMigration object { deleted_classes, new_classes, new_sqlite_classes, 4 more } A single set of migrations to apply.
A single set of migrations to apply.
A list of classes to delete Durable Object namespaces from.
A list of classes to create Durable Object namespaces with SQLite from.
Tag used to verify against the latest migration tag for this Worker. If they don’t match, the upload is rejected.
WorkersMultipleStepMigrations object { new_tag, old_tag, steps }
Tag used to verify against the latest migration tag for this Worker. If they don’t match, the upload is rejected.
Migrations to apply in order.
Migrations to apply in order.
A list of classes to delete Durable Object namespaces from.
A list of classes to create Durable Object namespaces with SQLite from.
observability: optional object { enabled, head_sampling_rate, logs, traces } Observability settings for the Worker.
Observability settings for the Worker.
The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
logs: optional object { enabled, invocation_logs, destinations, 2 more } Log settings for the Worker.
Log settings for the Worker.
Whether invocation logs are enabled for the Worker.
placement: optional object { mode } or object { region } or object { hostname } or 5 moreConfiguration for Smart Placement. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.
Configuration for Smart Placement. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.
Mode object { mode }
Enables Smart Placement.
ScriptAndVersionSettingEditResponse object { annotations, bindings, compatibility_date, 9 more }
annotations: optional object { "workers/message", "workers/tag", "workers/triggered_by" } Annotations for the Worker version. Annotations are not inherited across settings updates; omitting this field means the new version will have no annotations.
Annotations for the Worker version. Annotations are not inherited across settings updates; omitting this field means the new version will have no annotations.
bindings: optional array of object { name, type } or object { instance_name, name, type, namespace } or object { name, namespace, type } or 32 moreList of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
AISearch object { instance_name, name, type, namespace }
AISearchNamespace object { name, namespace, type }
DispatchNamespace object { name, namespace, type, outbound }
Inherit object { name, type, old_name, version_id }
Ratelimit object { name, namespace_id, simple, type }
R2Bucket object { bucket_name, name, type, jurisdiction }
jurisdiction: optional "eu" or "fedramp" or "fedramp-high"The jurisdiction of the R2 bucket.
The jurisdiction of the R2 bucket.
SecretKey object { algorithm, format, name, 4 more }
Algorithm-specific key parameters. Learn more.
format: "raw" or "pkcs8" or "spki" or "jwk"Data format of the key. Learn more.
Data format of the key. Learn more.
usages: array of "encrypt" or "decrypt" or "sign" or 5 moreAllowed operations with the key. Learn more.
Allowed operations with the key. Learn more.
Base64-encoded key data. Required if format is “raw”, “pkcs8”, or “spki”.
Key data in JSON Web Key format. Required if format is “jwk”.
Workflow object { name, type, workflow_name, 2 more }
Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a compatibility_date.
migrations: optional SingleStepMigration { deleted_classes, new_classes, new_sqlite_classes, 4 more } or object { new_tag, old_tag, steps } Migrations to apply for Durable Objects associated with this Worker.
Migrations to apply for Durable Objects associated with this Worker.
SingleStepMigration object { deleted_classes, new_classes, new_sqlite_classes, 4 more } A single set of migrations to apply.
A single set of migrations to apply.
A list of classes to delete Durable Object namespaces from.
A list of classes to create Durable Object namespaces with SQLite from.
Tag used to verify against the latest migration tag for this Worker. If they don’t match, the upload is rejected.
WorkersMultipleStepMigrations object { new_tag, old_tag, steps }
Tag used to verify against the latest migration tag for this Worker. If they don’t match, the upload is rejected.
Migrations to apply in order.
Migrations to apply in order.
A list of classes to delete Durable Object namespaces from.
A list of classes to create Durable Object namespaces with SQLite from.
observability: optional object { enabled, head_sampling_rate, logs, traces } Observability settings for the Worker.
Observability settings for the Worker.
The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
logs: optional object { enabled, invocation_logs, destinations, 2 more } Log settings for the Worker.
Log settings for the Worker.
Whether invocation logs are enabled for the Worker.
placement: optional object { mode } or object { region } or object { hostname } or 5 moreConfiguration for Smart Placement. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.
Configuration for Smart Placement. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.
Mode object { mode }
Enables Smart Placement.
WorkersAccount Settings
Fetch Worker Account Settings
Create Worker Account Settings
ModelsExpand Collapse
WorkersDomains
List Domains
Get Domain
Attach Domain
Detach Domain
ModelsExpand Collapse
DomainListResponse object { id, cert_id, environment, 4 more }
DomainGetResponse object { id, cert_id, environment, 4 more }
DomainUpdateResponse object { id, cert_id, environment, 4 more }
WorkersSubdomains
Get Subdomain
Create Subdomain
Delete Subdomain
WorkersObservability
WorkersObservabilityTelemetry
List keys
Run a query
List values
ModelsExpand Collapse
TelemetryQueryResponse object { run, statistics, agents, 5 more }
run: object { id, accountId, dry, 8 more } A Workers Observability Query Object
A Workers Observability Query Object
query: object { id, adhoc, created, 6 more }
parameters: object { calculations, datasets, filterCombination, 6 more }
calculations: optional array of object { operator, alias, key, keyType } Create Calculations to compute as part of the query.
Create Calculations to compute as part of the query.
Set the Datasets to query. Leave it empty to query all the datasets.
filterCombination: optional "and" or "or" or "AND" or "OR"Set a Flag to describe how to combine the filters on the query.
Set a Flag to describe how to combine the filters on the query.
filters: optional array of object { filterCombination, filters, kind } or object { key, operation, type, 2 more } Configure the Filters to apply to the query. Supports nested groups via kind: ‘group’.
Configure the Filters to apply to the query. Supports nested groups via kind: ‘group’.
WorkersObservabilityFilterLeaf object { key, operation, type, 2 more } Filtering best practices: use observability_keys and observability_values to confirm available fields and values. If searching for errors, filter for $metadata.error exists.
Filtering best practices: use observability_keys and observability_values to confirm available fields and values. If searching for errors, filter for $metadata.error exists.
Filter field name. IMPORTANT: do not guess keys. Always use verified keys from previous query results or the observability_keys response. Preferred keys: $metadata.service, $metadata.origin, $metadata.trigger, $metadata.message, $metadata.error.
value: optional string or number or booleanFilter comparison value. IMPORTANT: must match actual values in your logs. Verify using previous query results or the /values endpoint. Ensure value type matches the field type. String comparisons are case-sensitive unless using specific operations. Regex uses ClickHouse RE2 syntax (no lookaheads/lookbehinds); examples: ^5\d{2}$ for HTTP 5xx, \bERROR\b for word boundary.
Filter comparison value. IMPORTANT: must match actual values in your logs. Verify using previous query results or the /values endpoint. Ensure value type matches the field type. String comparisons are case-sensitive unless using specific operations. Regex uses ClickHouse RE2 syntax (no lookaheads/lookbehinds); examples: ^5\d{2}$ for HTTP 5xx, \bERROR\b for word boundary.
havings: optional array of object { key, operation, value } Configure the Having clauses that filter on calculations in the query result.
Configure the Having clauses that filter on calculations in the query result.
Set a limit on the number of results / records returned by the query
statistics: object { bytes_read, elapsed, rows_read, abr_level } The statistics object contains information about query performance from the database, it does not include any network latency
The statistics object contains information about query performance from the database, it does not include any network latency
calculations: optional array of object { aggregates, calculation, series, alias }
compare: optional array of object { aggregates, calculation, series, alias }
events: optional object { count, events, fields, series }
events: optional array of object { "$metadata", dataset, source, 3 more }
Cloudflare Containers event information enriches your logs so you can easily identify and debug issues.
"$workers": optional object { eventType, requestId, scriptName, 7 more } or object { cpuTimeMs, eventType, outcome, 11 more } Cloudflare Workers event information enriches your logs so you can easily identify and debug issues.
Cloudflare Workers event information enriches your logs so you can easily identify and debug issues.
object { eventType, requestId, scriptName, 7 more }
invocations: optional map[array of object { "$metadata", dataset, source, 3 more } ]
Cloudflare Containers event information enriches your logs so you can easily identify and debug issues.
"$workers": optional object { eventType, requestId, scriptName, 7 more } or object { cpuTimeMs, eventType, outcome, 11 more } Cloudflare Workers event information enriches your logs so you can easily identify and debug issues.
Cloudflare Workers event information enriches your logs so you can easily identify and debug issues.