# List domain endings

> The top level domains manitu registers under - for checking a name before an order.

- Effect: Read - Changes nothing.
- Idempotent: yes
- Stability: beta
- MCP tool: `manitu_domain_tld_list` on https://mcp.manitu.de/mcp
- REST: `POST https://api.manitu.de/v1/domain/tld/list`
- Page: /reference/domain/tld/list/

## MCP tool

`manitu_domain_tld_list`

### Description for the model

Lists the top level domains (.de, .com, ...) manitu registers domains under, with what the name before them may be (sld_regex). Without prices - manitu_domain_tld_get has them for one TLD. Read-only.

### Arguments

Takes no arguments.

### Example

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

## REST

`POST https://api.manitu.de/v1/domain/tld/list`

### Authentication

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

### Request body

JSON; unknown fields are refused.

No fields - send {} or no body.

### Response

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

- `tld_list` (array of object, required)
  - `tld_list[].tld` (string, required) - The TLD without dot, with international characters, e.g. de, com, köln.
  - `tld_list[].tld_ascii` (string, required) - The same in ASCII, e.g. xn--kln-sna.
  - `tld_list[].group` (string, required) - cctld: of a country; gtld: generic. (one of `"cctld"`, `"gtld"`)
  - `tld_list[].country_code` (string | null, required) - ISO 3166-1 alpha-2 of the country, for a ccTLD.
  - `tld_list[].sld_regex` (string, required) - What the name before the TLD may be - a PCRE with delimiters, on the lower case name.

### 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/domain/tld/list' \
  -H 'X-API-Key: $API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{}'
```

## Example result

```json
{
  "tld_list": [
    {
      "tld": "string",
      "tld_ascii": "string",
      "group": "cctld",
      "country_code": "string",
      "sld_regex": "string"
    }
  ]
}
```
