Skip to content
Proud to collaborate with Microsoft for Startups

cloudflare.tunnel.create ​

Provision a Cloudflare tunnel (create on CF, persist DB, push ingress)

Create + persist + configure a Cloudflare tunnel.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-cloudflare
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
cloud_connection_uuiduuidYes—UUID of the backing Cloudflare CloudConnection
namestringYes—Tunnel name
tunnel_secretstringNo—Optional pre-generated tunnel secret
ingresslistNo—Initial ingress rules (DB-owned). PUT to CF after persist.
warp_routingdictNo—Optional WARP routing config
actorstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
cloud_connection_uuiduuidYes—UUID of the backing Cloudflare CloudConnection
namestringYes—Tunnel name
tunnel_secretstringNo—Optional pre-generated tunnel secret
ingresslistNo—Initial ingress rules (DB-owned). PUT to CF after persist.
warp_routingdictNo—Optional WARP routing config
actorstringNo——
cf_tunnel_uuiduuidNo——
tokenstringNo——
cloudflare_tunnel_uuiduuidNo——
created_atstringNo——
persisted_atstringNo——
configured_atstringNo——
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—createInputs accepted
configuringNoNo—completePushing ingress configuration to Cloudflare
creatingNoNo—persistCalling Cloudflare to create tunnel
persistingNoNo—configurePersisting tunnel row to DB
completedNoYesYes—Tunnel ready
failedNoYesNo—Create failed

State Diagram ​

Transitions ​

FromActionToDescription
initiatedcreatecreating—
creatingpersistpersisting—
persistingconfigureconfiguring—
configuringcompletecompleted—
* (any state)failfailed—

API Usage ​

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

{
  "workflow_type": "cloudflare.tunnel.create",
  "initial_data": {
    "organization_uuid": "value",
    "cloud_connection_uuid": "value",
    "name": "value"
  }
}