# kinds()

Canonical URL: https://developers.iagenify.com/sdk/ref/hosts/kinds/
Language: en

`api.hosts.kinds() → Promise<Kind[]>`

Which kinds exist, which are available, and why the others are not. Read it instead of writing a list into a page.

Status: free · availability per kind · suffixes come from here

```javascript
const kinds = await api.hosts.kinds();
// [{ kind: "site", hostSuffix: "…", deploy: "files", available: true, reason: null }, …]

const usable = kinds.filter((k) => k.available);
```

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `kind` | string |  | The identifier to pass to `create()`. |
| `hostSuffix` | string |  | The address level this kind is served on. |
| `deploy` | string |  | What a deploy takes — files, or code. |
| `available` | boolean |  | Whether it can be created. |
| `reason` | string|null |  | Why not, when it cannot. |

## Why availability is a field {#why}

> **A kind that cannot serve is refused at creation**
>
> Never created « for now »: an address that does not answer reads as an outage. This list is what lets an interface show only what works, and say why about the rest — without the day it changes requiring a page to change.

## Do not hardcode the suffix {#suffix}

One level per kind is deliberate — it is what stops a customer ever taking a name the platform itself answers for. The suffixes are returned here precisely so no page repeats them.

## Building a picker {#picker}

```javascript
for (const k of await api.hosts.kinds()) {
  render({ value: k.kind, label: k.kind, hint: k.hostSuffix, disabled: !k.available, why: k.reason });
}
```

- [create()](/sdk/ref/hosts/create): Using one.
- [usage()](/sdk/ref/hosts/usage): How many you may have.

```python
kinds = api.hosts.kinds()
# [{"kind": "site", "hostSuffix": "…", "deploy": "files", "available": True, "reason": None}, …]

usable = [k for k in kinds if k["available"]]
```

```python
for k in api.hosts.kinds():
    render(value=k["kind"], label=k["kind"], hint=k.get("hostSuffix"), disabled=not k["available"], why=k.get("reason"))
```
