Skip to content
Proud to collaborate with Microsoft for Startups

spad.infrastructure-reconciliation-cloudflare ​

Verifies Cloudflare R2 and Worker for a SPAD site

Verifies Cloudflare infrastructure (R2 bucket, Worker) and updates site status.

Input fields: site_id, organization_id

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-spad
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
site_uuidstringYes—SpadSite.id whose Cloudflare infrastructure should be verified
organization_uuidstringNo—Organization that owns the site

Output Schema ​

FieldTypeRequiredDefaultDescription
site_uuidstringYes—Site that was reconciled
organization_uuidstringNo—Organization that owns the site
slugstringYes—Site slug
cloud_connection_uuidstringNo—Cloudflare CloudConnection.id
check_resultsdictYes—Per-resource check results (empty when the site has no cloud connection)
infra_readybooleanYes—True when every Cloudflare resource the site expects was found
initiated_atstringYes—ISO8601 timestamp when the workflow was initiated
initiated_bystringNo—Actor id that initiated the workflow
checked_atstringYes—ISO8601 timestamp when the reconciliation check completed
completed_atstringNo—ISO8601 timestamp when the workflow reached COMPLETED
failed_atstringNo—ISO8601 timestamp when the workflow reached FAILED
failure_reasonstringNo—Reason recorded on the failure path
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

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—check_infrastructure—
checkingNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedcheck_infrastructurechecking—
checkingcompletecompleted—
* (any state)failfailed—

API Usage ​

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

{
  "workflow_type": "spad.infrastructure-reconciliation-cloudflare",
  "initial_data": {
    "site_uuid": "value"
  }
}