# domains.list()

Canonical URL: https://developers.iagenify.com/sdk/ref/host/domains/list/
Language: en

`host.domains.list() → Promise<Domain[]>`

The customer domains served by this host, re-read from the platform.

Status: GET · free · fresher than the field

```javascript
const domains = await host.domains.list();
// [{ name: "www.example.com", status, certificate }]
```

## Against host.domains_ {#versus-field}

|  | domains_ | domains.list() |
| --- | --- | --- |
| Is | What the object was built with | A fresh read |
| Costs | nothing | one request |
| Use it | to render immediately | after attaching, or to follow a certificate |

> **After attaching, read it rather than the field**
>
> The object was built before the attachment. The field is a snapshot; this is the state.

## Each name has its own certificate {#certificate}

A name just attached is pending for a moment while the one attached yesterday is active — which is why the state is per domain rather than per host.

## An empty list {#empty}

The host serves only at its own address. That is a complete, working state — a custom domain is an addition, not a requirement.

- [domains.attach()](/sdk/ref/host/domains/attach): Adding one.
- [domains.detach()](/sdk/ref/host/domains/detach): Removing one.

```python
domains = host.domains.list()
# [{"name": "www.example.com", "status", "certificate"}]
```
