Workers For Platforms
Workers For PlatformsDispatch
Workers For PlatformsDispatchNamespaces
List dispatch namespaces
Get dispatch namespace
Create dispatch namespace
Delete dispatch namespace
ModelsExpand Collapse
NamespaceListResponse { created_by, created_on, modified_by, 5 more }
Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the request.cf object on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, and request.cf is undefined. By default, Workers in a namespace are "untrusted".
NamespaceGetResponse { created_by, created_on, modified_by, 5 more }
Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the request.cf object on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, and request.cf is undefined. By default, Workers in a namespace are "untrusted".
NamespaceCreateResponse { created_by, created_on, modified_by, 5 more }
Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the request.cf object on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, and request.cf is undefined. By default, Workers in a namespace are "untrusted".
Workers For PlatformsDispatchNamespacesScripts
Worker Details
Upload Worker Module
Delete Worker
ModelsExpand Collapse
ScriptUpdateResponse { 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?: Array<NamedHandler>Named exports, such as Durable Object class implementations and named entrypoints.
Named exports, such as Durable Object class implementations and named entrypoints.
observability?: Observability { 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?: Logs | nullLog settings for the Worker.
Log settings for the Worker.
Whether invocation logs are enabled for the Worker.
placement?: UnionMember0 { mode, last_analyzed_at, status } | UnionMember1 { region, last_analyzed_at, status } | UnionMember2 { hostname, last_analyzed_at, status } | 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.
UnionMember0 { mode, last_analyzed_at, status }
Enables Smart Placement.
status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
UnionMember1 { region, last_analyzed_at, status }
status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
UnionMember2 { hostname, last_analyzed_at, status }
status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
UnionMember3 { host, last_analyzed_at, status }
status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
UnionMember4 { mode, region, last_analyzed_at, status }
status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
UnionMember5 { hostname, mode, last_analyzed_at, status }
status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
UnionMember6 { host, mode, last_analyzed_at, status }
status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
UnionMember7 { mode, target, last_analyzed_at, status }
target: Array<Region { region } | Hostname { hostname } | Host { host } >Array of placement targets (currently limited to single target).
Array of placement targets (currently limited to single target).
status?: "SUCCESS" | "UNSUPPORTED_APPLICATION" | "INSUFFICIENT_INVOCATIONS"Status of Smart Placement.
Status of Smart Placement.
Workers For PlatformsDispatchNamespacesScriptsAsset Upload
Create Assets Upload Session
Workers For PlatformsDispatchNamespacesScriptsContent
Get Script Content
Put Script Content
Workers For PlatformsDispatchNamespacesScriptsSettings
Get Script Settings
Patch Script Settings
ModelsExpand Collapse
SettingGetResponse { bindings, compatibility_date, compatibility_flags, 8 more } Script and version settings for Workers for Platforms namespace scripts. Same as script-and-version-settings-item but without annotations, which are not supported for namespace scripts.
Script and version settings for Workers for Platforms namespace scripts. Same as script-and-version-settings-item but without annotations, which are not supported for namespace scripts.
bindings?: Array<WorkersBindingKindAI { name, type } | WorkersBindingKindAISearch { instance_name, name, type, namespace } | WorkersBindingKindAISearchNamespace { name, namespace, type } | 31 more>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.
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.
WorkersBindingKindAISearch { instance_name, name, type, namespace }
WorkersBindingKindAISearchNamespace { name, namespace, type }
WorkersBindingKindDispatchNamespace { name, namespace, type, outbound }
WorkersBindingKindInherit { name, type, old_name, version_id }
WorkersBindingKindRatelimit { name, namespace_id, simple, type }
WorkersBindingKindR2Bucket { bucket_name, name, type, jurisdiction }
jurisdiction?: "eu" | "fedramp" | "fedramp-high"The jurisdiction of the R2 bucket.
The jurisdiction of the R2 bucket.
WorkersBindingKindSecretKey { algorithm, format, name, 4 more }
Algorithm-specific key parameters. Learn more.
format: "raw" | "pkcs8" | "spki" | "jwk"Data format of the key. Learn more.
Data format of the key. Learn more.
usages: Array<"encrypt" | "decrypt" | "sign" | 5 more>Allowed operations with the key. Learn more.
Allowed operations with the key. Learn more.
Key data in JSON Web Key format. Required if format is "jwk".
WorkersBindingKindWorkflow { 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?: SingleStepMigration { deleted_classes, new_classes, new_sqlite_classes, 4 more } | WorkersMultipleStepMigrations { 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 { 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 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 { 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.
observability?: Observability { 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?: Logs | nullLog settings for the Worker.
Log settings for the Worker.
Whether invocation logs are enabled for the Worker.
placement?: Mode { mode } | Region { region } | Hostname { hostname } | 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 { mode }
Enables Smart Placement.
SettingEditResponse { bindings, compatibility_date, compatibility_flags, 8 more } Script and version settings for Workers for Platforms namespace scripts. Same as script-and-version-settings-item but without annotations, which are not supported for namespace scripts.
Script and version settings for Workers for Platforms namespace scripts. Same as script-and-version-settings-item but without annotations, which are not supported for namespace scripts.
bindings?: Array<WorkersBindingKindAI { name, type } | WorkersBindingKindAISearch { instance_name, name, type, namespace } | WorkersBindingKindAISearchNamespace { name, namespace, type } | 31 more>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.
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.
WorkersBindingKindAISearch { instance_name, name, type, namespace }
WorkersBindingKindAISearchNamespace { name, namespace, type }
WorkersBindingKindDispatchNamespace { name, namespace, type, outbound }
WorkersBindingKindInherit { name, type, old_name, version_id }
WorkersBindingKindRatelimit { name, namespace_id, simple, type }
WorkersBindingKindR2Bucket { bucket_name, name, type, jurisdiction }
jurisdiction?: "eu" | "fedramp" | "fedramp-high"The jurisdiction of the R2 bucket.
The jurisdiction of the R2 bucket.
WorkersBindingKindSecretKey { algorithm, format, name, 4 more }
Algorithm-specific key parameters. Learn more.
format: "raw" | "pkcs8" | "spki" | "jwk"Data format of the key. Learn more.
Data format of the key. Learn more.
usages: Array<"encrypt" | "decrypt" | "sign" | 5 more>Allowed operations with the key. Learn more.
Allowed operations with the key. Learn more.
Key data in JSON Web Key format. Required if format is "jwk".
WorkersBindingKindWorkflow { 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?: SingleStepMigration { deleted_classes, new_classes, new_sqlite_classes, 4 more } | WorkersMultipleStepMigrations { 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 { 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 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 { 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.
observability?: Observability { 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?: Logs | nullLog settings for the Worker.
Log settings for the Worker.
Whether invocation logs are enabled for the Worker.
placement?: Mode { mode } | Region { region } | Hostname { hostname } | 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 { mode }
Enables Smart Placement.
Workers For PlatformsDispatchNamespacesScriptsBindings
Get Script Bindings
ModelsExpand Collapse
BindingGetResponse = WorkersBindingKindAI { name, type } | WorkersBindingKindAISearch { instance_name, name, type, namespace } | WorkersBindingKindAISearchNamespace { name, namespace, type } | 31 moreA binding to allow the Worker to communicate with resources.
A binding to allow the Worker to communicate with resources.
WorkersBindingKindAISearch { instance_name, name, type, namespace }
WorkersBindingKindAISearchNamespace { name, namespace, type }
WorkersBindingKindDispatchNamespace { name, namespace, type, outbound }
WorkersBindingKindInherit { name, type, old_name, version_id }
WorkersBindingKindRatelimit { name, namespace_id, simple, type }
WorkersBindingKindR2Bucket { bucket_name, name, type, jurisdiction }
jurisdiction?: "eu" | "fedramp" | "fedramp-high"The jurisdiction of the R2 bucket.
The jurisdiction of the R2 bucket.
WorkersBindingKindSecretKey { algorithm, format, name, 4 more }
Algorithm-specific key parameters. Learn more.
format: "raw" | "pkcs8" | "spki" | "jwk"Data format of the key. Learn more.
Data format of the key. Learn more.
usages: Array<"encrypt" | "decrypt" | "sign" | 5 more>Allowed operations with the key. Learn more.
Allowed operations with the key. Learn more.
Key data in JSON Web Key format. Required if format is "jwk".
WorkersBindingKindWorkflow { name, type, workflow_name, 2 more }
Workers For PlatformsDispatchNamespacesScriptsSecrets
List Script Secrets
Get secret binding
Add script secret
Delete script secret
ModelsExpand Collapse
SecretListResponse = WorkersBindingKindSecretText { name, text, type } | WorkersBindingKindSecretKey { algorithm, format, name, 4 more } A secret value accessible through a binding.
A secret value accessible through a binding.
WorkersBindingKindSecretKey { algorithm, format, name, 4 more }
Algorithm-specific key parameters. Learn more.
format: "raw" | "pkcs8" | "spki" | "jwk"Data format of the key. Learn more.
Data format of the key. Learn more.
usages: Array<"encrypt" | "decrypt" | "sign" | 5 more>Allowed operations with the key. Learn more.
Allowed operations with the key. Learn more.
Key data in JSON Web Key format. Required if format is "jwk".
SecretGetResponse = WorkersBindingKindSecretText { name, text, type } | WorkersBindingKindSecretKey { algorithm, format, name, 4 more } A secret value accessible through a binding.
A secret value accessible through a binding.
WorkersBindingKindSecretKey { algorithm, format, name, 4 more }
Algorithm-specific key parameters. Learn more.
format: "raw" | "pkcs8" | "spki" | "jwk"Data format of the key. Learn more.
Data format of the key. Learn more.
usages: Array<"encrypt" | "decrypt" | "sign" | 5 more>Allowed operations with the key. Learn more.
Allowed operations with the key. Learn more.
Key data in JSON Web Key format. Required if format is "jwk".
SecretUpdateResponse = WorkersBindingKindSecretText { name, text, type } | WorkersBindingKindSecretKey { algorithm, format, name, 4 more } A secret value accessible through a binding.
A secret value accessible through a binding.
WorkersBindingKindSecretKey { algorithm, format, name, 4 more }
Algorithm-specific key parameters. Learn more.
format: "raw" | "pkcs8" | "spki" | "jwk"Data format of the key. Learn more.
Data format of the key. Learn more.
usages: Array<"encrypt" | "decrypt" | "sign" | 5 more>Allowed operations with the key. Learn more.
Allowed operations with the key. Learn more.
Key data in JSON Web Key format. Required if format is "jwk".