# List every name of a web hosting package

> Its domains and subdomains as full names - optionally only those for web or mail.

- Effect: Read - Changes nothing.
- Idempotent: yes
- Stability: beta
- MCP tool: `manitu_webhosting_fqdn_list` on https://mcp.manitu.de/mcp
- REST: `POST https://api.manitu.de/v1/webhosting/fqdn/list`
- Needs: `service_webhosting`
- Page: /reference/webhosting/fqdn/list/

## MCP tool

`manitu_webhosting_fqdn_list`

### Description for the model

Lists every full name (domain or subdomain, e.g. example.de, shop.example.de) a web hosting package of the manitu customer account this connection works in answers for, by its site_id from manitu_webhosting_list - with for web or mail only the names usable for that (a website, a mail address). Use it to pick a name; details: manitu_webhosting_domain_list, manitu_webhosting_subdomain_list. It changes nothing.

### Arguments

- `site_id` (integer | string, required) - The site_id from manitu_webhosting_list - never guess one. (pattern `"^[1-9][0-9]*$"`; minimum `1`)
- `for` (string) - web: only names usable for a website; mail: only names usable for mail addresses; left out: all. (one of `"web"`, `"mail"`)

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "manitu_webhosting_fqdn_list",
    "arguments": {
      "site_id": 12345
    }
  }
}
```

## REST

`POST https://api.manitu.de/v1/webhosting/fqdn/list`

### Authentication

One of `X-API-Key`, `Authorization: Bearer …` - never more than one in a request.

### Request body

JSON; unknown fields are refused.

- `site_id` (integer | string, required) - The site_id from manitu_webhosting_list - never guess one. (pattern `"^[1-9][0-9]*$"`; minimum `1`)
- `for` (string) - web: only names usable for a website; mail: only names usable for mail addresses; left out: all. (one of `"web"`, `"mail"`)

### Response

In `data`; the rest of the body as on every call.

- `fqdn_list` (array of object, required)
  - `fqdn_list[].fqdn` (string, required) - The full name, as the customer writes it.
  - `fqdn_list[].fqdn_ascii` (string, required) - The ASCII form (xn--...).
  - `fqdn_list[].type` (string, required) - (one of `"domain"`, `"subdomain"`)
  - `fqdn_list[].domain` (string, required) - The domain it is or is under.

### Statuses

- `200` Success.
- `400` The request does not match the declared input schema.
- `401` No credential was presented, or it was not recognised.
- `403` The credential is not permitted to use this operation.
- `500` The server failed. Nothing about the request was wrong. Whether a change took effect is not known - check before trying it again.
- `503` The channel this operation forwards through is unavailable.

### Example

```sh
curl -X POST 'https://api.manitu.de/v1/webhosting/fqdn/list' \
  -H 'X-API-Key: $API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"site_id":12345}'
```

## Example result

```json
{
  "fqdn_list": [
    {
      "fqdn": "example.com",
      "fqdn_ascii": "string",
      "type": "domain",
      "domain": "example.com"
    }
  ]
}
```
