Workflow steps

hosting.create

type: "hosting.create"

Creates a host — a site, an app or a function. It reserves an address; deploying is a separate step.

kind and label requiredno approvalcertificate may wait
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

kindstringrequired

site · app · function.

labelstringrequired

The name a person reads.

slugstring

The first part of the address. Derived from the label otherwise.

{ id: "host", type: "hosting.create", config: { kind: "site", label: "{{input.name}}" } }
{"id": "host", "type": "hosting.create", "config": {"kind": "site", "label": "{{input.name}}"}}

Output

{{steps.host.output.host}}          // the slug
{{steps.host.output.url}}
{{steps.host.output.certificate}}   // "none" | "pending" | "active"
"{{steps.host.output.host}}"          # the slug
"{{steps.host.output.url}}"
"{{steps.host.output.certificate}}"   # "none" | "pending" | "active"

An address that is not ready yet

A pending certificate means the address refuses connections

Not an outage — a wait. A chain that creates a host and immediately fetches it will fail. Put a wait step between them, or check the certificate before relying on the address.

Creating is not publishing

Nothing is online yet, so no approval is required here. hosting.deploy is the step that publishes, and that one needs a human upstream.

The plan decides how many

A plan with no hosting refuses the creation, naming the plan. Worth knowing before a chain is built around it.