# hosting.create

Canonical URL: https://developers.iagenify.com/sdk/workflows/steps/hosting-create/
Language: en

`type: "hosting.create"`

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

Status: kind and label required · no approval · certificate may wait

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `kind` | string | required | `site` · `app` · `function`. |
| `label` | string | required | The name a person reads. |
| `slug` | string |  | The first part of the address. Derived from the label otherwise. |

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

## Output {#output}

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

## An address that is not ready yet {#certificate}

> **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 {#no-approval}

Nothing is online yet, so no approval is required here. [hosting.deploy](/sdk/workflows/steps/hosting-deploy) is the step that publishes, and that one needs a human upstream.

## The plan decides how many {#plan}

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

- [hosting.deploy](/sdk/workflows/steps/hosting-deploy): Putting something on it.
- [api.hosts](/sdk/ref/hosts): From code.
- [Workflow steps](/sdk/workflows/steps): The 23 types.

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

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