# manage_addon_domains

> List, create or update the additional (addon) domains hosted inside a DirectAdmin account.

- Tier: W
- Required scope: read:hosting
- Annotations: none
- Docs: https://api.inleed.com/tools/manage-addon-domains

## Description

List, create or update the additional (addon) domains hosted inside a DirectAdmin account. `action=list` returns each domain `{domain, isPrimary, isSuspended, features}` and needs only read access; `create` adds a new `domain` to the account (optional `php`/`cgi`/`ssl`, default on); `update` toggles `php`/`cgi`/`ssl` on an existing `domain`. `create` and `update` require the `write:hosting` scope. This manages the account's own hosted domains, not the registrar — to buy, transfer or renew a domain use `register_domain` / `list_domains`; for subdomains use `create_subdomain`; for aliases/parked domains use the pointer tools.

## Input schema

- `input` — string (required). The hosting account to act on — its username, its service id, or any domain already hosted on it. Never the new domain being created: that goes in domain, and does not resolve here because the account does not own it yet.
- `action` — enum (required). list the account's domains, create a new addon domain, or update an existing one's features. create/update require write:hosting. One of list, create, update.
- `domain` — string. The addon domain name (e.g. shop.example).
- `php` — boolean. Whether PHP is enabled for the domain. Defaults to on for create; on update only the flags you send change.
- `cgi` — boolean. Whether cgi is enabled for the domain. Defaults to on for create.
- `ssl` — boolean. Whether SSL is enabled for the domain. Defaults to on for create.

## Example call

```json
{
  "name": "manage_addon_domains",
  "arguments": {
    "input": "example.se",
    "action": "list"
  }
}
```

