Skip to content
Proud to collaborate with Microsoft for Startups

spad.cloudflare.site-creation-finalize ​

Finalize Cloudflare site creation - mark site active

Mark the site as active once all Cloudflare resources are provisioned.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-spad
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
site_uuidstringYes—SpadSite.id to mark active
slugstringNo—Site slug propagated from input
cloud_connection_uuidstringNo—Cloudflare CloudConnection.id
r2_bucket_namestringNo—Provisioned R2 bucket name
r2_domainstringNo—R2 public endpoint URL
worker_script_namestringNo—Deployed Worker script name
worker_urlstringNo—Deployed Worker URL
deployed_atstringNo—ISO8601 timestamp when the Worker was deployed
organization_uuidstringNo—Organization that owns the site
workflow_run_idstringNo——
workflow_run_uuidstringNo—Parent workflow run ID stamped by the DAG engine (legacy alias)

Output Schema ​

FieldTypeRequiredDefaultDescription
site_uuidstringYes—Site marked active
statusstringYes—'active' once the workflow reaches COMPLETED
completed_atstringNo—ISO8601 timestamp when finalize completed
failed_atstringNo—ISO8601 timestamp when the step reached FAILED
workflow_run_idstringNo——
slugstringNo—Site slug propagated from input
cloud_connection_uuidstringNo—Cloudflare CloudConnection.id
r2_bucket_namestringNo—Provisioned R2 bucket name
r2_domainstringNo—R2 public endpoint URL
worker_script_namestringNo—Deployed Worker script name
worker_urlstringNo—Deployed Worker URL
deployed_atstringNo—ISO8601 timestamp when the Worker was deployed
organization_uuidstringNo—Organization that owns the site
workflow_run_uuidstringNo—Parent workflow run ID stamped by the DAG engine (legacy alias)
errorstringNo—Engine-stamped failure metadata
error_typestringNo—Engine-stamped failure metadata
failed_at_statejsonNo—Engine-stamped failure metadata
failed_layerjsonNo—Engine-stamped failure metadata
failed_stepjsonNo—Engine-stamped failure metadata
failure_reasonstringNo—Engine-stamped failure metadata

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—runFinalize step accepted
runNoNo—completeMarking site active
completedNoYesYes—Site marked active
failedNoYesNo—Finalize failed

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrunStart finalize
runcompletecompletedMark finalize completed
* (any state)failfailedMark finalize failed

API Usage ​

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

{
  "workflow_type": "spad.cloudflare.site-creation-finalize",
  "initial_data": {
    "site_uuid": "value"
  }
}