Skip to content
Proud to collaborate with Microsoft for Startups

cloudflare.worker.deploy ​

Upload + bind + route + persist a Cloudflare Worker

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-cloudflare
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
cloud_connection_uuiduuidYes——
script_namestringYes——
script_contentstringYes—Worker script source
script_hashstringNo——
kv_bindingslistNo——
r2_bindingslistNo——
secret_valuesdictNo—Map of secret_name -> plaintext value; vaulted by SensitiveDataMiddleware, never persisted in cleartext state_data
routeslistNo—List of
worker_urlstringNo——
actorstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
cloud_connection_uuiduuidYes——
script_namestringYes——
script_contentstringYes—Worker script source
script_hashstringNo——
kv_bindingslistNo——
r2_bindingslistNo——
secret_valuesdictNo—Map of secret_name -> plaintext value; vaulted by SensitiveDataMiddleware, never persisted in cleartext state_data
routeslistNo—List of
worker_urlstringNo——
actorstringNo——
uploaded_atstringNo——
bindings_applied_atstringNo——
routes_appliedlistNo——
persisted_atstringNo——
cloudflare_worker_uuiduuidNo——
completed_atstringNo——
failed_atstringNo——
failure_reasonstringNo—Engine-stamped human-readable failure reason
failed_at_statestringNo—Engine-stamped state when the workflow failed
failed_stepstringNo—Engine-stamped step name (DAG path)
failed_layerintegerNo—Engine-stamped layer index (DAG path)
errorstringNo—Engine-stamped exception message
error_typestringNo—Engine-stamped exception class name
failure_typestringNo—Engine-stamped failure category (atomic path)
failed_actionstringNo—Engine-stamped action method that raised (atomic path)

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—uploadInputs accepted
bindingNoNo—routeApplying secret values
persistingNoNo—completePersisting CloudflareWorker row
routingNoNo—persistApplying DNS records / zone routes
uploadingNoNo—bindUploading script + bindings
completedNoYesYes—Worker live
failedNoYesNo—Deploy failed

State Diagram ​

Transitions ​

FromActionToDescription
initiateduploaduploading—
uploadingbindbinding—
bindingrouterouting—
routingpersistpersisting—
persistingcompletecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "cloudflare.worker.deploy",
  "initial_data": {
    "organization_uuid": "value",
    "cloud_connection_uuid": "value",
    "script_name": "value",
    "script_content": "value"
  }
}