Scripts
List Workers
Search Workers
Download Worker
Upload Worker Module
Delete Worker
ModelsExpand Collapse
class Script: …
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[List[NamedHandler]]Named exports, such as Durable Object class implementations and named entrypoints.
Named exports, such as Durable Object class implementations and named entrypoints.
observability: Optional[Observability]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[ObservabilityLogs]Log settings for the Worker.
Log settings for the Worker.
Whether invocation logs are enabled for the Worker.
placement: Optional[Placement]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.
class PlacementUnionMember0: …
Enables Smart Placement.
The last time the script was analyzed for Smart Placement.
status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class PlacementUnionMember1: …
The last time the script was analyzed for Smart Placement.
status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class PlacementUnionMember2: …
The last time the script was analyzed for Smart Placement.
status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class PlacementUnionMember3: …
The last time the script was analyzed for Smart Placement.
status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class PlacementUnionMember4: …
The last time the script was analyzed for Smart Placement.
status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class PlacementUnionMember5: …
The last time the script was analyzed for Smart Placement.
status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class PlacementUnionMember6: …
The last time the script was analyzed for Smart Placement.
status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class PlacementUnionMember7: …
target: List[PlacementUnionMember7Target]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[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
Deprecatedplacement_mode: Optional[Literal["smart", "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[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class ScriptSetting: …
observability: Optional[Observability]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[ObservabilityLogs]Log settings for the Worker.
Log settings for the Worker.
Whether invocation logs are enabled for the Worker.
class ScriptListResponse: …
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[List[NamedHandler]]Named exports, such as Durable Object class implementations and named entrypoints.
Named exports, such as Durable Object class implementations and named entrypoints.
observability: Optional[Observability]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[ObservabilityLogs]Log settings for the Worker.
Log settings for the Worker.
Whether invocation logs are enabled for the Worker.
placement: Optional[Placement]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.
class PlacementUnionMember0: …
Enables Smart Placement.
The last time the script was analyzed for Smart Placement.
status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class PlacementUnionMember1: …
The last time the script was analyzed for Smart Placement.
status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class PlacementUnionMember2: …
The last time the script was analyzed for Smart Placement.
status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class PlacementUnionMember3: …
The last time the script was analyzed for Smart Placement.
status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class PlacementUnionMember4: …
The last time the script was analyzed for Smart Placement.
status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class PlacementUnionMember5: …
The last time the script was analyzed for Smart Placement.
status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class PlacementUnionMember6: …
The last time the script was analyzed for Smart Placement.
status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class PlacementUnionMember7: …
target: List[PlacementUnionMember7Target]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[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
Deprecatedplacement_status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]
routes: Optional[List[Route]]Routes associated with the Worker.
Routes associated with the Worker.
Pattern to match incoming requests against. Learn more.
class ScriptUpdateResponse: …
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[List[NamedHandler]]Named exports, such as Durable Object class implementations and named entrypoints.
Named exports, such as Durable Object class implementations and named entrypoints.
observability: Optional[Observability]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[ObservabilityLogs]Log settings for the Worker.
Log settings for the Worker.
Whether invocation logs are enabled for the Worker.
placement: Optional[Placement]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.
class PlacementUnionMember0: …
Enables Smart Placement.
The last time the script was analyzed for Smart Placement.
status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class PlacementUnionMember1: …
The last time the script was analyzed for Smart Placement.
status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class PlacementUnionMember2: …
The last time the script was analyzed for Smart Placement.
status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class PlacementUnionMember3: …
The last time the script was analyzed for Smart Placement.
status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class PlacementUnionMember4: …
The last time the script was analyzed for Smart Placement.
status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class PlacementUnionMember5: …
The last time the script was analyzed for Smart Placement.
status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class PlacementUnionMember6: …
The last time the script was analyzed for Smart Placement.
status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
class PlacementUnionMember7: …
target: List[PlacementUnionMember7Target]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[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]Status of Smart Placement.
Status of Smart Placement.
Deprecatedplacement_status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]]
ScriptsAssets
ScriptsAssetsUpload
Create Assets Upload Session
ScriptsSubdomain
Get Worker subdomain
Post Worker subdomain
Delete Worker subdomain
ModelsExpand Collapse
ScriptsSchedules
Get Cron Triggers
Update Cron Triggers
ScriptsTail
List Tails
Start Tail
Delete Tail
ScriptsContent
Get script content
Put script content
ScriptsSettings
Get Script Settings
Patch Script Settings
ScriptsDeployments
List Deployments
Create Deployment
Get Deployment
Delete Deployment
ScriptsVersions
List Versions
Get Version Detail
Upload Version
ModelsExpand Collapse
class VersionGetResponse: …
resources: Resources
bindings: Optional[List[ResourcesBinding]]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.
class ResourcesBindingWorkersBindingKindAISearch: …
class ResourcesBindingWorkersBindingKindAISearchNamespace: …
class ResourcesBindingWorkersBindingKindDispatchNamespace: …
class ResourcesBindingWorkersBindingKindInherit: …
class ResourcesBindingWorkersBindingKindRatelimit: …
class ResourcesBindingWorkersBindingKindR2Bucket: …
jurisdiction: Optional[Literal["eu", "fedramp", "fedramp-high"]]The jurisdiction of the R2 bucket.
The jurisdiction of the R2 bucket.
class ResourcesBindingWorkersBindingKindSecretKey: …
Algorithm-specific key parameters. Learn more.
format: Literal["raw", "pkcs8", "spki", "jwk"]Data format of the key. Learn more.
Data format of the key. Learn more.
usages: List[Literal["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".
class ResourcesBindingWorkersBindingKindWorkflow: …
script_runtime: Optional[ResourcesScriptRuntime]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.
class VersionCreateResponse: …
resources: Resources
bindings: Optional[List[ResourcesBinding]]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.
class ResourcesBindingWorkersBindingKindAISearch: …
class ResourcesBindingWorkersBindingKindAISearchNamespace: …
class ResourcesBindingWorkersBindingKindDispatchNamespace: …
class ResourcesBindingWorkersBindingKindInherit: …
class ResourcesBindingWorkersBindingKindRatelimit: …
class ResourcesBindingWorkersBindingKindR2Bucket: …
jurisdiction: Optional[Literal["eu", "fedramp", "fedramp-high"]]The jurisdiction of the R2 bucket.
The jurisdiction of the R2 bucket.
class ResourcesBindingWorkersBindingKindSecretKey: …
Algorithm-specific key parameters. Learn more.
format: Literal["raw", "pkcs8", "spki", "jwk"]Data format of the key. Learn more.
Data format of the key. Learn more.
usages: List[Literal["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".
class ResourcesBindingWorkersBindingKindWorkflow: …
script_runtime: Optional[ResourcesScriptRuntime]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.
ScriptsSecrets
List script secrets
Get secret binding
Add script secret
Delete script secret
ModelsExpand Collapse
A secret value accessible through a binding.
A secret value accessible through a binding.
class WorkersBindingKindSecretKey: …
Algorithm-specific key parameters. Learn more.
format: Literal["raw", "pkcs8", "spki", "jwk"]Data format of the key. Learn more.
Data format of the key. Learn more.
usages: List[Literal["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".
A secret value accessible through a binding.
A secret value accessible through a binding.
class WorkersBindingKindSecretKey: …
Algorithm-specific key parameters. Learn more.
format: Literal["raw", "pkcs8", "spki", "jwk"]Data format of the key. Learn more.
Data format of the key. Learn more.
usages: List[Literal["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".
A secret value accessible through a binding.
A secret value accessible through a binding.
class WorkersBindingKindSecretKey: …
Algorithm-specific key parameters. Learn more.
format: Literal["raw", "pkcs8", "spki", "jwk"]Data format of the key. Learn more.
Data format of the key. Learn more.
usages: List[Literal["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".
ScriptsScript And Version Settings
Get Settings
Patch Settings
ModelsExpand Collapse
class ScriptAndVersionSettingGetResponse: …
annotations: Optional[Annotations]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[List[Binding]]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.
class BindingWorkersBindingKindAISearch: …
class BindingWorkersBindingKindAISearchNamespace: …
class BindingWorkersBindingKindDispatchNamespace: …
class BindingWorkersBindingKindInherit: …
class BindingWorkersBindingKindRatelimit: …
class BindingWorkersBindingKindR2Bucket: …
jurisdiction: Optional[Literal["eu", "fedramp", "fedramp-high"]]The jurisdiction of the R2 bucket.
The jurisdiction of the R2 bucket.
class BindingWorkersBindingKindSecretKey: …
Algorithm-specific key parameters. Learn more.
format: Literal["raw", "pkcs8", "spki", "jwk"]Data format of the key. Learn more.
Data format of the key. Learn more.
usages: List[Literal["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".
class BindingWorkersBindingKindWorkflow: …
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[Migrations]Migrations to apply for Durable Objects associated with this Worker.
Migrations to apply for Durable Objects associated with this Worker.
class SingleStepMigration: …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.
class MigrationsWorkersMultipleStepMigrations: …
Tag used to verify against the latest migration tag for this Worker. If they don't match, the upload is rejected.
observability: Optional[Observability]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[ObservabilityLogs]Log settings for the Worker.
Log settings for the Worker.
Whether invocation logs are enabled for the Worker.
placement: Optional[Placement]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.
class PlacementMode: …
Enables Smart Placement.
class ScriptAndVersionSettingEditResponse: …
annotations: Optional[Annotations]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[List[Binding]]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.
class BindingWorkersBindingKindAISearch: …
class BindingWorkersBindingKindAISearchNamespace: …
class BindingWorkersBindingKindDispatchNamespace: …
class BindingWorkersBindingKindInherit: …
class BindingWorkersBindingKindRatelimit: …
class BindingWorkersBindingKindR2Bucket: …
jurisdiction: Optional[Literal["eu", "fedramp", "fedramp-high"]]The jurisdiction of the R2 bucket.
The jurisdiction of the R2 bucket.
class BindingWorkersBindingKindSecretKey: …
Algorithm-specific key parameters. Learn more.
format: Literal["raw", "pkcs8", "spki", "jwk"]Data format of the key. Learn more.
Data format of the key. Learn more.
usages: List[Literal["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".
class BindingWorkersBindingKindWorkflow: …
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[Migrations]Migrations to apply for Durable Objects associated with this Worker.
Migrations to apply for Durable Objects associated with this Worker.
class SingleStepMigration: …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.
class MigrationsWorkersMultipleStepMigrations: …
Tag used to verify against the latest migration tag for this Worker. If they don't match, the upload is rejected.
observability: Optional[Observability]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[ObservabilityLogs]Log settings for the Worker.
Log settings for the Worker.
Whether invocation logs are enabled for the Worker.
placement: Optional[Placement]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.
class PlacementMode: …
Enables Smart Placement.